It's not a secret anymore!
The moose likes JSF and the fly likes confirmation page in jsf Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "confirmation page in jsf" Watch "confirmation page in jsf" New topic
Author

confirmation page in jsf

AshkaN Kia
Greenhorn

Joined: Sep 23, 2008
Posts: 3
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??
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14480
    
    7

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.
AshkaN Kia
Greenhorn

Joined: Sep 23, 2008
Posts: 3
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)
Benedikt Z�nnchen
Greenhorn

Joined: Oct 06, 2008
Posts: 1
You should use the security constrain in your DD! Let the Servletcontainer do this job!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: confirmation page in jsf
 
Similar Threads
How to stop user entering a record twice?
Two clients, same button. Only the first one wins?
How to call a page in a different War file?
how to render one xhtml page's panel from the popup window
Query in Action Form