Re: Syntax for multiple validators

2007-04-02 Thread Hugo Palma
That worked. Thanks.. On 4/2/07, Sam Gendler <[EMAIL PROTECTED]> wrote: My suspicion is that you can get a reference to the validator in Java code, , get a reference to the Bean in java code, then write a method that returns a collection containing both, and then call that method via ognl or p

Re: Syntax for multiple validators

2007-04-02 Thread Sam Gendler
My suspicion is that you can get a reference to the validator in Java code, , get a reference to the Bean in java code, then write a method that returns a collection containing both, and then call that method via ognl or prop and pass it to the validators binding. I don't think you can combine be

Re: Syntax for multiple validators

2007-04-02 Thread Hugo Palma
It's possible to inject page beans because the following works just fine: I just can't inject the required validator also. On 4/2/07, Martino Piccinato <[EMAIL PROTECTED]> wrote: I think you can inject some also in the "validators" name binding syntax. Like you do for min/max validators and

Re: Syntax for multiple validators

2007-04-02 Thread Martino Piccinato
I think you can inject some also in the "validators" name binding syntax. Like you do for min/max validators and such. Don't know if it's possible to inject page beans as you would like. I'm curious too then :-) On 4/2/07, Hugo Palma <[EMAIL PROTECTED]> wrote: I'm pretty sure i can use the bean

Re: Syntax for multiple validators

2007-04-02 Thread Hugo Palma
I'm pretty sure i can use the bean directly without contributing it to the application validators. I don't want to contribute because i want to inject some properties into the validator bean in the page descriptor. I can assign each validator on it's own, i just can't assign both... On 4/2/07, Ma

Re: Syntax for multiple validators

2007-04-02 Thread Martino Piccinato
You have to define your validators beans in the hivemodule tapestry contribution Then you can use the bean name directly in the binding as you do with other tapestry default validators. On 4/2/07, Hugo Palma <[EMAIL PROTECTED]> wrote: Hi all, i would like to use two validators