Hi Lorenzo,

The proposed fix can be found here:

http://markmail.org/message/2slptgc6uhb7xpte

Hopefully that should address the concerns.

Kind regards

Bob

On 11/11/2010 01:57, Lorenzo Simionato wrote:
> Hi,
> I'm new to Click and i can not understand how to validate a form properly.
> I except the code of my listener method for the submit to be something like 
> this:
> 
> public boolean onSubmit() {
>    if (form.isValid()) {
>       // All ok, process data
>    }
>    return true;
> }
> But isValid returns true even if validation was bypassed, by setting the 
> hidden field
> bypass_validation to true.
> So the question is how can i be sure that the form is valid before processing 
> the data?
> 
> Thanks.
> 
> --
> Lorenzo Simionato

Reply via email to