you should call :validateConversion() first before calling updateFormComponentModels()

Because first the conversion has to be done before anything can be updated.

I guess that button you press with no default form processing you just want to by pase the required flag?

johan

On 9/7/06, Jerry Smith <[EMAIL PROTECTED]> wrote:

I've got a simple Form with TextField("tf", new PropertyModel(myObj, "text").setRequired(true).  I have one non-Wicket submit button, and a wicket Button, with setDefaultFormProcessing set to false.  In the onSubmit() of the Wicket button I call updateFormComponentModels().  If I put text in the field, and press the Wicket button, myObj.getText() returns null instead of the text I've entered.  I'm basically trying to circumvent the validation but still update the model for a form when certain buttons are pressed.

 

Any input is appreciated, thanks!

 

-Jerry

 


-------------------------------------------------------------------------
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