Ultra-simple JSF question


Web tier: servlets, JSP, Web frameworks: Ultra-simple JSF question

  1. Ultra-simple JSF question (1 messages)

    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?

  2. Ultra-simple JSF question[ Go to top ]

    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.