[prev in list] [next in list] [prev in thread] [next in thread]
List: tapestry-user
Subject: Re: Returning a FieldValidator to a TextField
From: "Thiago H. de Paula Figueiredo" <thiagohp () gmail ! com>
Date: 2010-01-29 17:47:51
Message-ID: op.u7a2d11b18r83n () arsmachina
[Download RAW message or body]
On Fri, 29 Jan 2010 10:33:10 -0200, Nuno Ferreira <nuno.nysmo@gmail.com>
wrote:
> Hello all,
Hi!
> My idea was to use the already existing FieldValidators like required,
> regexp, min, etc...
Inject FieldValidatorSource and use its FieldValidator
createValidators(Field field, String specification) method to generate a
FieldValidator. Then create a FieldValidator getValidator() method using
createValidators() and add t:validate="prop:validator" to your TextField.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da
Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
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