Faces portlets based on the IBM® portlet framework support portlet messaging for direct, inter-portlet communication.
FacesContext facesContext = FacesContext.getCurrentInstance(); PortletMessage message = new DefaultPortletMessage( "/jsp/MyView.jsp?MyForm&MyForm:MyCommand&MyForm:MyInput=MyValue"); PortletContext context = (PortletContext)facesContext.getExternalContext().getContext(); try { context.send(null, message); } catch (AccessDeniedException e) { // exception handling code }
Note that trigger and parameter IDs must be qualified with the form ID (MyForm).