Tuesday, October 26, 2010

Blogger Templates Study Abroad

JSF 2 - model update after a failed validation

While experimenting JSF 2, I came across the following problem:
If a form submitted and the validation fails, appropriate error messages - ok. If you reject it with another button, the previous user input will and will update the form with a backend model are the last correct-values submitted in the form and not the values of the updated back-end models.
Unfortunately I have not a clean solution of how to approach the problem ...
I've posted the problem with stack overflow times with sample code:
http://stackoverflow.com/questions/3933786/jsf-2-bean-validation-validation-failed-empty-values-are-replaced-with-last
One possible solution I have to Posted - but is not really nice. I would be happy for any tip about the problem, of course, animal!

0 comments:

Post a Comment