This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSF and the fly likes Invoking JSF PhaseListener in JSR-168 Portlets Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Invoking JSF PhaseListener in JSR-168 Portlets" Watch "Invoking JSF PhaseListener in JSR-168 Portlets" New topic
Author

Invoking JSF PhaseListener in JSR-168 Portlets

Prasanna Chennupati
Ranch Hand

Joined: Feb 09, 2006
Posts: 38
Hi,

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!


Thanks,<br />Prasanna<br />SCJP1.4,SCWCD1.4,SCBCD1.3,SCDJWS,SCEA-1<br />IBM Certified Solution Developer -- WebSphere Portal V5.1(got 100%)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Invoking JSF PhaseListener in JSR-168 Portlets
 
Similar Threads
HOw to get session variables between portlets ?
Designing a job portal System
URLs in a Portlet
how to redirect to another servlet in a jsf+portal project
What we need to build portlet application?