html - jsf previous button with immediate=true looses entered data -
I have a JSF web application in which the customer has three pages of information gathering.
Once the customer completes the first page that is stored, validated and stored in the managed bean. On the second page the customer completes half of the questions and clicks my previous page button, which is the JSF command button, which is set to the correct attribute, which leaves verification and form submissions. I have this issue that half the questions on the second page are now lost, when the customer returns to Page 2 to return to the page, the questions he has given will be empty.
Is there a standard way in JSF structured? I had used Stresses earlier that handled this behavior.
Thanks
Tom
In each page load, JSF makes views with current controller values if you do not save these values in the controller bean, they will be easily lost.
- To avoid sending the form to your button, just send the data back to the input controller using the Ajax on the Onchange event.
Comments
Post a Comment