Re: [T5] BeanEditForm validations

2007-11-18 Thread Francois Armand
Kevin Menard wrote: This is an interesting approach, but way more overhead that I was hoping for. I guess I would have liked to see a way to do this via the PropertyConduit or something. So, I could do model.add("new_prop").addValidator("required"); I guess I'll file a JIRA for that. Hello

Re: [T5] BeanEditForm validations

2007-11-13 Thread Hugo Palma
You can do your validations in the onSuccess method in your page class like what is described here http://tapestry.apache.org/tapestry5/tapestry-core/guide/validation.html All you do is access the edited object instance and use the BeanEditForm object to register the errors. Hope this helps.

Re: [T5] BeanEditForm validations

2007-11-13 Thread Kevin Menard
Hello Francois, On 11/12/07 3:28 AM, in article [EMAIL PROTECTED], "Francois Armand" <[EMAIL PROTECTED]> wrote: > I see at least two other way, one simple and one other a little more > complicate. > > The first one is to use the "validate" parameter in a property editor > override in the BeanEdi

Re: [T5] BeanEditForm validations

2007-11-12 Thread Francois Armand
Kevin Menard wrote: Hi, Hello, Is there anyway to configure validation for a BeanEditForm other than with the Validate annotation? I'd like to have validation, but really can't apply the annotations because I'm working with classes coming out of a library. I see at least two other way, o

[T5] BeanEditForm validations

2007-11-09 Thread Kevin Menard
Hi, Is there anyway to configure validation for a BeanEditForm other than with the Validate annotation? I'd like to have validation, but really can't apply the annotations because I'm working with classes coming out of a library. I was hoping to be able to do this via the BeanModel, but I can't