Re: [Wicket-user] Set required to false on button press

2006-08-31 Thread Igor Vaynberg
try thisinstead of calling setrequired, override isRequired() to return false based on some varthen make preview button .setdefaultformprocessing(false)and in onsubmit call form.process() yourself-Igor
On 8/31/06, Rüdiger Schulz <[EMAIL PROTECTED]> wrote:
Hello everbody,I have a nice working form with multiple FormComponents. Now ourclient wants to have a "preview button", where you can save a recordwithout entering all normally required data.
So I'm asking where to call setRequired(false) for all the formcomponents? The form should be submitted after that just like with theother button, so that the data can be saved in the database.Thanks for your attention :)
--greetings from Berlin,Rüdiger Schulz-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=lnk&kid=120709&bid=263057&dat=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=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Set required to false on button press

2006-08-31 Thread Johan Compagner
that preview button should set the:setDefaultFormProcessing(boolean defaultFormProcessing)to false. So that no default processing is done (validation)johanOn 8/31/06, 
Rüdiger Schulz <[EMAIL PROTECTED]> wrote:
Hello everbody,I have a nice working form with multiple FormComponents. Now ourclient wants to have a "preview button", where you can save a recordwithout entering all normally required data.
So I'm asking where to call setRequired(false) for all the formcomponents? The form should be submitted after that just like with theother button, so that the data can be saved in the database.Thanks for your attention :)
--greetings from Berlin,Rüdiger Schulz-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=lnk&kid=120709&bid=263057&dat=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=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user