On Fri, 06 Jun 2014 10:20:28 -0300, George Christman
<gchrist...@cardaddy.com> wrote:
Hi guys, I'm wondering if there is a way to record an error to a specific
field within a loop and provide css markup to that field. I know this is
really simple to do with a non looping field, just not sure if it's
possible within a loop. Validate="" is not going to be an option in this
case for me do to backend business logic being needed.
Actually, depending on what the logic is, you can. You need to write your
own org.apache.tapestry5.Validator and contribute it to
FieldValidatorSource, so you can use it in validate="". You'll probably
need to have your validator receive some parameter containing the context
for the validation.
--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org