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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...