It would be a very good idea. ;)

> we could make the protected final so that you can add your own method 
> that calls the validation methods you do want.
>
>
> On 10/27/06, *Alberto Bueno* < [EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     My problem is that the only validation that I don't want to do is the
>     requiredValidation. I want to to the rest of the process.
>
>     > button.setDefaultFormProcessing(false)
>     >
>     > public class Button extends FormComponent {
>     >
>     >       /**
>     >        * Sets the defaultFormProcessing property. When false
>     (default is true),
>     >        * all validation and formupdating is bypassed and the
>     onSubmit method of
>     >        * that button is called directly, and the onSubmit method
>     of the parent
>     >        * form is not called. A common use for this is to create
>     a cancel button.
>     >        *
>     >        * @param defaultFormProcessing
>     >        *            defaultFormProcessing
>     >        * @return This
>     >        */
>     >       public final Button setDefaultFormProcessing(boolean
>     defaultFormProcessing)
>     >
>     > }
>     >
>     >
>     > Martijn
>     >
>     > On 10/27/06, Alberto Bueno <[EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>> wrote:
>     >
>     >> I'm trying to overwrite the validateRequired of the Form, but this
>     >> method is private.
>     >> My problem is that I have two submit buttons: the first button
>     is to
>     >> insert the data into the database, and this button need to
>     check the
>     >> required fields. The another button is a confirm button that
>     need to do
>     >> the submit but I don't need to do the check for the required
>     fields.
>     >> The idea is to overwrite the validateRequired to control what
>     button is
>     >> clicked and to know if the fields have to be validated.
>     >> Now the solution is to overwrite all fields of the form and
>     overwrite
>     >> the isRequired method.
>     >>
>     >> Do you know another idea to do this?
>     >>
>     >> Thanks
>     >>
>     >>
>     -------------------------------------------------------------------------
>     >> Using Tomcat but need to do more? Need to support web services,
>     security?
>     >> Get stuff done quickly with pre-integrated technology to make
>     your job easier
>     >> Download IBM WebSphere Application Server v.1.0.1 based on
>     Apache Geronimo
>     >>
>     http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>     >> _______________________________________________
>     >> Wicket-user mailing list
>     >> Wicket-user@lists.sourceforge.net
>     <mailto:Wicket-user@lists.sourceforge.net>
>     >> https://lists.sourceforge.net/lists/listinfo/wicket-user
>     >>
>     >>
>     >
>     >
>     >
>
>
>     -------------------------------------------------------------------------
>     Using Tomcat but need to do more? Need to support web services,
>     security?
>     Get stuff done quickly with pre-integrated technology to make your
>     job easier
>     Download IBM WebSphere Application Server v.1.0.1 based on Apache
>     Geronimo
>     http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>     _______________________________________________
>     Wicket-user mailing list
>     Wicket-user@lists.sourceforge.net
>     <mailto:Wicket-user@lists.sourceforge.net>
>     https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ------------------------------------------------------------------------
>
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>   


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to