You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ryan Pan <pa...@gmail.com> on 2006/03/14 11:04:58 UTC

Question about Validation in Tapestry

Hi all,
    I have a question in validation function of tapestry.
    When I store the error message through "delegate.record()" method,there
will be always one error record stored in delegate,so I wanna how to store
all validation error into delegate?
    Is there anyone can help me?

Thanks,
Ryan.

Re: Question about Validation in Tapestry

Posted by Kent Tong <ke...@cpttm.org.mo>.
Ryan Pan <panteng820320 <at> gmail.com> writes:

>     I have a question in validation function of tapestry.
>     When I store the error message through "delegate.record()" method,there
> will be always one error record stored in delegate,so I wanna how to store
> all validation error into delegate?

You can't have two errors for a single field. To have an error
for another field, make sure to call setFormComponent() first
before calling record().

--
Author of a book for learning Tapestry (www.agileskills2.org/EWDT)


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