I just submitted the patch. I was able to make
setDefaultFormProcessing(boolean) a virtual field that just sets
isBinding(boolean) and isValidating(boolean) at the same time. One
problem I ran into though, was that the javadoc didn't actually
reflect how the processing actually occured. The comments suggested
that the form's onSubmit() was always called after the button, but
that's not the case. I went ahead and duplicated what actually happens
rather then what was commented and modified the comment. So, long
story short, the processing should be exactly the same and the API
didn't change, but now you can exactly specify if binding or
validation happens.

On 9/6/05, Ralf Ebert <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> not sure about this. I would like to have a enum like thing with
> NOTHING, VALIDATION_ONLY and VALIDATION_AND_UPDATE. I also like the
> way in which it is done right now, so I get validation and model
> updating automatically and if I don't want that, I have to call the
> methods myself.
> I also think a (convenient) way is needed to submit a form and losing
> no form data without validation and without model updating. This is
> needed for example if there is a file upload button within a form.
> You need to submit the form for uploading the file but that doesn't
> mean you want to update the model as well in every case.
> 
> Regards,
> Ralf
> 
> 
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> Wicket-develop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-develop
>


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to