Re: [Wicket-user] Why form validators are private?
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] 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=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- a href=http://www.thebeststuffintheworld.com/vote_for/wicket;Vote/a for a href=http://www.thebeststuffintheworld.com/stuff/wicket;Wicket/a at the a href=http://www.thebeststuffintheworld.com/;Best Stuff in the World!/a - 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=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Why form validators are private?
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] 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=lnkkid=120709bid=263057dat=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=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Why form validators are private?
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] 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] 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=lnkkid=120709bid=263057dat=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 easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://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=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Why form validators are private?
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=lnkkid=120709bid=263057dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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=lnkkid=120709bid=263057dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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=lnkkid=120709bid=263057dat=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=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Why form validators are private?
Please add a feature request in JIRA so that we don't forget about it. Eelco On 10/27/06, Alberto Bueno [EMAIL PROTECTED] wrote: It would be a very good idea. ;) - 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=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user