aspose file tools
The moose likes JSF and the fly likes Phase listener question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Phase listener question" Watch "Phase listener question" New topic
Author

Phase listener question

Lonnie Lewis
Greenhorn

Joined: Mar 30, 2009
Posts: 8
I am having a problem getting my page beans' "init", "preprocess" and "prerender" methods to fire. My page beans are inherited from "com.sun.jsfcl.app.AbstractPageBean" which do have these methods defined. From what I've found, it appears that my problem is a lack of a "phase-listener" in my faces-config.xml file. How should this be configured? If I put in:

<lifecycle>
<phase-listener>com.sun.jsfcl.app.AbstractPageBean</phase-listener>
</lifecycle>

I get an error that the phase listener can't be instantiated. How do I configure my application so that the "init", "preprocess" and "prerender" methods fire?

Thanks,
Lonnie
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Phase listener question
 
Similar Threads
How can i write in the response through viewhandler? Or even another solution...
Page Load - is this doable?
richfaces: prerender method in backing bean
JSF Portlet and instance variables
Icefaces woes converting 1.7 VWP app to 1.8 non-vwp