• Post Reply Bookmark Topic Watch Topic
  • New Topic

Invoking JSF PhaseListener in JSR-168 Portlets  RSS feed

Prasanna Chennupati
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am currently attempting to implement Ajax in a JSF Portlet (JSR-168 specification) by using a PhaseListener but I'm having problems implementing it. What I'm seeing is that, since the JSF is contained in a portlet, the Faces Servlet has been replaced by the FacesGenericPortlet. Originally, you could explicitly invoke the PhaseListener by calling the Faces Servlet directly (ie. by setting the url like this: '<%=renderRequest.getContextPath()%>/faces/action=changeIncident&incidentId='+requestString) and that would kick off the PhaseListener. With the FacesGenericPortlet, however, I can't call it in the same way. Does anyone know how to invoke the PhaseListener in such a scenario? I need to explicitly invoke the PhaseListener so that JSF doesn't take control and refresh the page. Any help is appreciated. Thanks!
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!