This content has been marked as final.
Show 3 replies
-
1. Re: Rerender after validation errors
ilya_shaikovsky Nov 13, 2007 7:56 AM (in response to dencel)Sorry but not sure that understand your clearly.
As I understood - if you press a button - validation fails - so no new value will be applied and old one will be shown. It's right.
If I miss something - describe detailed step by step what you need to see and what happened. -
2. Re: Rerender after validation errors
dencel Nov 13, 2007 8:34 AM (in response to dencel)"ilya_shaikovsky" wrote:
As I understood - if you press a button - validation fails - so no new value will be applied and old one will be shown. It's right.
I am sorry, you are missing a key part.public void doTest() { this.test="you are now valid"; }
Situation 1: you type something in field 1 and field2 shows "you are now valid"
Situation 2: button gets clicked, validation fails, you type something in field 1, the model gets updated, but field 2 remains blank.
I've solved this by itterating through the viewroot and setting the submittedvalues of UIInput elements to null. But I don't think this is a nice solution. -
3. Re: Rerender after validation errors
marinew Dec 27, 2007 4:40 AM (in response to dencel)Hello,
I had the same problem, and found a cleanre solution, I think. See my post here : http://jboss.com/index.html?module=bb&op=viewtopic&p=4115655#4115655