@Override public void processEvent(EventRequest eventRequest, EventResponse eventResponse) throws PortletException, IOException { // If events are to be auto-dispatched to the bridge, then invoke the bridge implementation's handling of the // EVENT_PHASE. if (isAutoDispatchEvents()) { Bridge bridge = getFacesBridge(eventRequest, eventResponse); bridge.doFacesRequest(eventRequest, eventResponse); } // Otherwise, call the superclass method in GenericPortlet in order to let subclasses of GenericFacesPortlet // take advantage of the @ProcessEvent Portlet API annotation if desired. else { super.processEvent(eventRequest, eventResponse); } }
@Override public void processEvent(EventRequest request, EventResponse response) throws PortletException, IOException { if (isAutoDispatchEvents()) { if (log.isLoggable(Level.FINE)) { log.fine("Process event request for portlet " + getPortletName()); } try { getFacesBridge(request, response).doFacesRequest(request, response); } catch (BridgeException e) { throw new PortletException("Error process faces request", e); } } else { super.processEvent(request, response); } }
/** * Delegates to {@link Bridge#doFacesRequest(EventRequest, EventResponse)}. * * @param eventRequest The current event request. * @param eventResponse The current event response. * * @throws PortletException - if an error occurs during event request/response processing. * @throws IOException - if an error occurs during event response processing. */ @Override public void processEvent(EventRequest eventRequest, EventResponse eventResponse) throws PortletException, IOException { // If events are to be auto-dispatched to the bridge, then invoke the bridge implementation's handling of the // EVENT_PHASE. if (isAutoDispatchEvents()) { Bridge bridge = getFacesBridge(eventRequest, eventResponse); bridge.doFacesRequest(eventRequest, eventResponse); } // Otherwise, call the superclass method in GenericPortlet in order to let subclasses of GenericFacesPortlet // take advantage of the @ProcessEvent Portlet API annotation if desired. else { super.processEvent(eventRequest, eventResponse); } }
public void processEvent(EventRequest request, EventResponse response) throws PortletException, java.io.IOException { if (isAutoDispatchEvents()) { try { getFacesBridge(request, response).doFacesRequest(request, response); } catch (BridgeException e) { throw new PortletException("doBridgeDispatch failed: error from Bridge in executing the request", e); } } else { super.processEvent(request, response); } }