Hello everyone,
 
I have a little specification question. How can you set a different Lifecycle to be used by the default FacesServlet? The specification (section 10.2.6.2) says that you can define a javax.faces.LIFECYCLE_ID context-param in web.xml.
 
Then the question become when can you register the lifecycle instance for the defined new id since FacesServlet is executed on startup and get a cahed version of the Lifecycle in its init() method?
 
I guess I could use another servlet to init it given it's started earlier in the startup sequence, but that not too good looking. The other way I see is creating a new LifecycleFactory, but then I'll either lose the link to the default lifecycle or I'll link the application to a specific implementation by using the Impl class in my custom factory... Both solutions look quite bad, is there something I'm missing?
 
 
Regards,
 
~ Simon

Reply via email to