Kadhiravan
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...
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...
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
how your going to new page while submiting ?
JSp--->java class---->new JSP
JSP---->new Jsp
JSp--->java class---->new JSP
JSP---->new Jsp
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Gd work kadhiravan ..... vaazthukal
ASKER
I myself have tried for various fixes and the mentioned simple code change helped me achieve the expected result.
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 !!