Re: [t5] Validator question

2008-03-25 Thread Julian Wood
Actually, I was able to get this done. I had to contributeValidationMessagesSource to get the messages. And to get to the current page component from within the Validator, I was able to do this: public static void contributeFieldValidatorSource (MappedConfiguration configuration,

Re: [t5] Validator question

2008-03-25 Thread Julian Wood
Ok no worries. On a related note, where do you put the messages file for a custom validator? In the example below, which looks for a key called 'confirm', I have tried Confirm.properties (in same package as validator called Confirm.java), Signup.properties (the page using the validator) a

Re: [t5] Validator question

2008-03-25 Thread Howard Lewis Ship
Sorry, those APIs are not in place yet. I have JIRA issue add optional validators, which is a loose, general term for what you are aiming for ("password is required if userName is given"). I think some relationships may not be expressable using the @Validate annotation, i.e., the string represent

Re: [t5] Validator question

2008-03-25 Thread Julian Wood
Not possible? Sometimes a validator needs to look at input from another field to see if it is valid (ie password/confirmPassword). I know it's easy to do in onValidateForm, but I'd like to see how to do it in a nice modular Validator. I'm looking for something like: public void valida

[t5] Validator question

2008-03-24 Thread Julian Wood
How can you get access to an arbitrary Field from inside a Validator, given its id? In t4 it was relatively easy to grab the form and from there grab a field. Thanks, J - To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: T5 validator question

2008-03-12 Thread Riccardo Ruffilli
ause I need to obtain > myown FieldValidatorImpl > instance. > > Any ideas about that ? > > Many thanks in advance. > > -Rick > > > > -- View this message in context: http://www.nabble.com/T5-validator-question-tp16001442p16001764.html Sent from the Tapestry - User

T5 validator question

2008-03-12 Thread Riccardo Ruffilli
View this message in context: http://www.nabble.com/T5-validator-question-tp16001442p16001442.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]