Hi!
I'm working on the development for a web application using Java Server Faces for a group project. The majority of us have experience using request-based frameworks in PHP and we are having problems getting into the event-based (?) mindset of JSF-development.
In PHP you would generally have a front controller (like the Faces Servlet) that dispatches requests to other controllers (unlike the Faces Servlet). The point is that you have full control of the requests from you controllers. This control is something that seems to be lacking in JSF, since the beans are basically just business logic that is not necessarily run when accessing URLs (i.e. by entering the URL for a .xhtml file it will be loaded without the involvement of any beans).
My question is if there is a way to make all requests be handled by managed beans without using a framework such as Spring or Struts (which from I understand are request-based)? This would make the beans more like controllers and, in turn, enable us to manage such things as authentication/authorization, redirects, etc. in a more familiar way.
I hope this makes sense.. Anyhow, me and my group would be very grateful if someone could help us out!
Best regards, Erik