Re: T5 form field validation, component injection

2007-09-29 Thread Marc A. Donis
: "lasitha" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Saturday, September 29, 2007 19:40 Subject: Re: T5 form field validation, component injection Hello Marc, I think you want the @Component annotation instead of @InjectComponent. The latter is "Used exclusively i

Re: T5 form field validation, component injection

2007-09-29 Thread lasitha
Hello Marc, I think you want the @Component annotation instead of @InjectComponent. The latter is "Used exclusively inside a mixin to connect the mixin to the component to which it is attached."[1] I haven't tested whether this will solve your problem, but it seems likely. A good starting point

T5 form field validation, component injection

2007-09-29 Thread Marc A. Donis
Hi all, I am trying to understand how to implement custom validation of form fields. Here's what I've got so far: CreateAccount.java: public class CreateAccount { @InjectComponent private Form createAccountForm; @OnEvent(value = "validate", component = "createAccountForm") void v