I've just delved into JSF, after realizing I needed an MVC framwork with more muscles than the one I used. Here's my question: Where are all the servlets? Action controllers and event listeners are all implemented as beans. Do I simply put all the logic I had in my servlets (such as calls to a facade layer) into these beans?
- Posted by: Johan Fredrik Varen
- Posted on: April 15 2005 13:50 EDT
Yup pretty much - however, you'll find that you need to plug stuff into the JSF lifecyle as well using the listener mechanisms as obviously not everything can be done as a response to a user action.
You might want to check out Shale (currently incubating under Struts) at http://wiki.apache.org/struts/StrutsShale which makes things like initialisation of state for a page a more intuitive task.
You may also find yourself using Servlet filters a bit more.