[jboss-user] [JBoss Seam] - prevent access to page

dan.j.allen do-not-reply at jboss.com
Mon Nov 20 01:25:22 EST 2006


One of the troubles I come across when working with JSF applications is the inability to verify that a user should even be on the page that is requested.  I am wondering if Seam helps out in this area in any way.

Let me give an example scenario.

In the hotel booking application, a request for /hotel.seam or /book.seam without a conversation id renders a partially broken page (empty hotel data).  Some of the logic in the backing bean could assume that a valid hotel is available, but in this case it is not.  While the booking application doesn't trip on this, it is very likely that another application could (depending on what is going on in those backing bean getter methods).  From the standpoint of a user, I would expect the application to redirect me to a start page if I attempt to access the application somewhere in the middle of a flow.

Is there any place I can perform validation logic before PhaseId.RENDER_VIEW?  If the conversation is not valid or a certain variable is not present, I would like to redirect the user somewhere else.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987216#3987216

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987216



More information about the jboss-user mailing list