[Wicket-user] Form.updateFormComponentModels() doesn't seem to be working

2006-09-07 Thread Jerry Smith
Ive 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

Re: [Wicket-user] Form.updateFormComponentModels() doesn't seem to be working

2006-09-07 Thread Johan Compagner
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?johanOn 9/7/06, Jerry Smith

Re: [Wicket-user] Form.updateFormComponentModels() doesn't seem to be working

2006-09-07 Thread Igor Vaynberg
if thats all it is then just override isrequired() on the components and in the button call form.process()-IgorOn 9/7/06, Johan Compagner [EMAIL PROTECTED] wrote:you should call :validateConversion() first before calling updateFormComponentModels()Because first the conversion has to be done