[jboss-user] [JBoss Seam] - Re: How to redirect flow between two beans?
shasho
do-not-reply at jboss.com
Tue Jul 11 21:51:17 EDT 2006
Following seam booking demo program
Let?s say that after a successful login we want to perform an automated search that shows all the available hotels
In the file LoginAction.java under the login function in case of successful login
?..
user = results.get(0);
| Contexts.getSessionContext().set("loggedIn", true);
| FacesMessages.instance().add("Welcome, #{user.name}");
| // here I want to redirect to hotel search instead of displaying the main page
| // need to call HotelSearchingAction.find
| return "main";
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957206#3957206
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957206
More information about the jboss-user
mailing list