1 Reply Latest reply on Feb 26, 2009 10:26 AM by wesleyhales

    Portlet 2.0 Event from RichFaces (ajax) request

    ameo

      Use: Faceslets, Richfaces 3.0.0.GA, Portletbridge 1.0.0.6, portal 2.7.1

      Hello,

      I want to send an Event to another portlet by using the portlet 2.0 API. And I want to send the Event within an ajax-request. So I use a <a4j:commandButton> instead of a <h:commandButton> -Komponent.

      a4j :commandButton performs the following method:

      public void fire() {
       FacesContext facesContext = FacesContext.getCurrentInstance();
       ExternalContext externalContext = facesContext.getExternalContext();
       Object responseObject = externalContext.getResponse();
       if (responseObject != null && responseObject instanceof ActionResponse) {
       ActionResponse actionResponse = (ActionResponse) responseObject;
       actionResponse.set...
       }
       }
      

      here I geht responseObject of type org.ajax4jsf.webapp.FilterServletResponseWrapper instead of an javax.portlet.ActionRequest.


      How can I geht the ActionRequest/Response ??