[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tapestry-user
Subject:    T5: Why value of CheckBox get lost at validation result page
From:       jeffrey ai <jf.jeffreyai () gmail ! com>
Date:       2007-11-26 18:49:30
Message-ID: 13954998.post () talk ! nabble ! com
[Download RAW message or body]


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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic