You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by jeffrey ai <jf...@gmail.com> on 2007/11/26 19:49:30 UTC

T5: Why value of CheckBox get lost at validation result page

Hi Folks,

I have a form with some TextField and CheckBox.
I add the onValidate() method into the page to do my own page page
validation like below:
===
	void onValidate()
	{
		if ( .... )
			_tracker.recordError( "validation error..." );
	}
===

The data in the action request get correctly validated, and the validation
error message shows up in the result page.
However, all values of CheckBox get lost, at the mean time, all values of
TextField are still there. 

The way I found to get around this problem is make all CheckBox fields
Persist("flash").

The same problem applies to Select component too.

Is this a problem? Why it's happening? Is my walk-around of this problem
good?

Thanks,
Jeffrey Ai
-- 
View this message in context: http://www.nabble.com/T5%3A-Why-value-of-CheckBox-get-lost-at-validation-result-page-tf4876723.html#a13954998
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org