Link to home
Start Free TrialLog in
Avatar of Kadhiravan
KadhiravanFlag for India

asked on

How to submit a page without submitting the values in JSF?

I have a JSF application running on a Weblogic Server.

In a form, the user can enter some inputs and submits the page. He will be taken to a review screen, where the user can review the inputs he had entered in the previous page. In the review screen, there is an option to edit the inputs. On selecting the "Edit" button the user will be taken back to the input screen. If the user made some changes to the inputs but wishes to cancel the changes, he will be taken back to the review screen again.

In this case, I'm seeing the newly entered values being updated in the view object and the same is displayed on the review screen. How we can avoid updating the new value on canceling the changes in JSF?

Note: The edited values should be updated only on selecting the Submit button.


Any suggestions please...
Avatar of Sathish David  Kumar N
Sathish David Kumar N
Flag of India image

Take that values as request and put in ur  preview screen !!

eg ; I have enter the first name as sathish  and last name kumar the n you can submit the form and redirect to new page that page (review page)
<input type="text " name="firstName" value="${fName}"}
fName the values is u can set the value of the 1st page request !!
SOLUTION
Avatar of Kadhiravan
Kadhiravan
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
how your going to new page while submiting ?

JSp--->java class---->new JSP

JSP---->new Jsp
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Gd work kadhiravan ..... vaazthukal
Avatar of Kadhiravan

ASKER

I myself have tried for various fixes and the mentioned simple code change helped me achieve the expected result.