Re: ValidationException constructor arguments

2011-01-18 Thread Nicolas Barrera
Just returning void after recording various errors.., worked fine... thanks Nicolás.- On Tue, Jan 18, 2011 at 4:12 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Tue, 18 Jan 2011 16:43:24 -0200, Nicolas Barrera > wrote: > > So I thought.., if I can't have a return value

Re: ValidationException constructor arguments

2011-01-18 Thread Thiago H. de Paula Figueiredo
On Tue, 18 Jan 2011 16:43:24 -0200, Nicolas Barrera wrote: So I thought.., if I can't have a return value and the only way to inform that form is invalid is through raising a ValidationException... then I thought it was not possible to inform many errors in one response... while it's construc

Re: ValidationException constructor arguments

2011-01-18 Thread Nicolas Barrera
Thiago..., thanks for answering, that's what i was doing, I implemented an event handler like this: public void onValidateFormFromExample() throws ValidationException { > I think I misread some information at this page: http://tapestry.apache.org/input-validation.html > Now, what if you want

Re: ValidationException constructor arguments

2011-01-18 Thread Thiago H. de Paula Figueiredo
On Tue, 18 Jan 2011 14:21:31 -0200, Nicolas Barrera wrote: Hi, Hi! why do you think ValidationException only accepts a String as it's constructor argument? Methods handling the validate event from form fields components are meant to validate a single field independent of other fields.

ValidationException constructor arguments

2011-01-18 Thread Nicolas Barrera
Hi, I wanted to ask as a design question... why do you think ValidationException only accepts a String as it's constructor argument? Right now I 'm working on a form's validation, validation of a field value depends upon other field's value so I thought the only way to do that would be on server