File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes JSF Page Navigation Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF Page Navigation Problem" Watch "JSF Page Navigation Problem" New topic

JSF Page Navigation Problem

A Dev

Joined: Dec 17, 2010
Posts: 5

I have a problem in Page Navigation.

I have 4 pages... login page, forgotpassword page, reset password page and main page(After login,it should go to main page). All are JSP pages.

I am using rave commands:

In Login Page:

two buttons(Login and Forgot password)
one Text field(Username)
one password field(Password)
one Panel grid(to maintain Allignment)
one message(to generate error message)

In forgot password page:

Two Text fields(Username and Email id)
one button(Reset password button)
one Panel grid(to maintain Allignment)
one message(to generate error message)

In reset password page:

Two Text fields(newpassword and confirm password)
one button(submit password button)
one Panel grid(to maintain Allignment)
one message(to generate error message)

1) In forgot password page, After validating username and Email id I should be able to enter Reset password page.
2) In Login page, After clicking on forgot password button i should be able to enter forgotpassword page.

After clicking on forgot password button in login page i am able to enter forgot password page.
But, After clicking on reset password button in forgot password page, I am unable to enter reset password page.

Navigation rules are properly set...
Managed beans are properly set...

The code is :

Reset password Button:

public String buttonResetPassword_action() {
UserDetails userDetails = getXBean().getUserDetails();
UserInfo userInfo = XDataHelper.getInstance().getUserInfo(userDetails);
if(userInfo.getIsUserValid()) {
return "forgotSuccess";
error(message1,"Invalid User Id and Email Combination");
return "failure";

Navigation rules:


Managed Bean


Please help me as soon as possible...

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16895


There's a "Code" button on your message editor. You can use it to wrap Java code, XML, and other formatted text and make it easier to read.

Navigation is done to view IDs, not files, so unless you have your URL mapping in web.xml done in an unconventional way, the IDs you're coding in the "to-view-id" elements are incorrect.

Beyond that, I'll just make my standard observation that a webapp that contains its own login code is a website that can be hacked.

Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link:
subject: JSF Page Navigation Problem
jQuery in Action, 3rd edition