You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Josh Penza <jo...@gmail.com> on 2007/09/25 12:38:19 UTC
T5, Customized Validation
I have a question about validation in Tapestry 5
My page contains two components. A textfield and a select.
These components are related and only one of them has to be filled in.
When the textfield has a value, then the select value is ignored. And when
the select has a value, then the textfield is ignored.
How can I validate this?
Re: T5, Customized Validation
Posted by Ted Steen <te...@gmail.com>.
This should be done in onValidate() i think.
see http://tapestry.apache.org/tapestry5/tapestry-core/guide/validation.html
for the rest of the validation.
Unfortunately the onValidate is not explained there.
2007/9/25, Josh Penza <jo...@gmail.com>:
> I have a question about validation in Tapestry 5
>
> My page contains two components. A textfield and a select.
>
> These components are related and only one of them has to be filled in.
> When the textfield has a value, then the select value is ignored. And when
> the select has a value, then the textfield is ignored.
>
> How can I validate this?
>
--
/ted
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org