Hi i have two page with two form, in first form i submit values and second page is confirmation of first page that get password ,in this way i want to check session before direct access to second page if the backingbean of first page exist in FacesContext i want to show second page otherwise i want to redirect it to first page, i dont want to use filter , any jsf solution for navigational form??
DISCLAIMER: The more "do it yourself" security systems I see in J2EE, the more convinced I become that do-it-yourself security is one of the worst things anyone can do. I won't go over the whole list - it's getting too long, but I HIGHLY recommend using the security system that comes with J2EE. It's almost always more secure (most DIY systems have at least one hole you can drive an articulated lorry through), it costs less to code and maintain, and it's easier to adapt to new environments like SSO and portals.
JSF doesn't link to pages. Bean action processors return navigational info. that the framework uses to link to pages. If the bean on your first page doesn't like the submitted data, it can simply refuse to return the navigational token that causes JSF to display the second page. No need to go around mucking in the guts of arcane service classes or JSF-specific code. It's just a straight Javabean function.
Customer surveys are for companies who didn't pay proper attention to begin with.
Joined: Sep 23, 2008
hi can you explain how? i can set some permission for page access in acegi security.xml but ,i cant handle sequential or navigational form ,in direct access to second page i want to check first page validation and then let user to see it or not(redirect to first page)