RE: getInput and getDefaultModelObject and validation

2011-07-29 Thread Brown, Berlin [GCG-PFS]
ilto:toriv...@arrive.no] Sent: Friday, July 29, 2011 5:04 AM To: users@wicket.apache.org Subject: RE: getInput and getDefaultModelObject and validation > Is there a way to force a modelobject update on each individual field > and then do my form validation. It seems you want to use getConverte

RE: getInput and getDefaultModelObject and validation

2011-07-29 Thread Wilhelmsen Tor Iver
> Is there a way to force a modelobject update on each individual field > and then do my form validation. It seems you want to use getConvertedInput(). Going via the model to get the converted value is just a detour when you are in a validator. If you push data to the model and then decide it is

RE: getInput and getDefaultModelObject and validation

2011-07-29 Thread Brown, Berlin [GCG-PFS]
hout my desired type. -Original Message- From: Wilhelmsen Tor Iver [mailto:toriv...@arrive.no] Sent: Friday, July 29, 2011 3:20 AM To: users@wicket.apache.org Subject: RE: getInput and getDefaultModelObject and validation > If I am using some form validator, I notice that getDefaultModel

RE: getInput and getDefaultModelObject and validation

2011-07-29 Thread Wilhelmsen Tor Iver
> If I am using some form validator, I notice that getDefaultModelObject > does not have the value from the getInput. I am assume this > intentional. Is there a way to force wicket to update the modelObject? Yes, form component models are not updated until they pass validation, that is very int

getInput and getDefaultModelObject and validation

2011-07-28 Thread Brown, Berlin [GCG-PFS]
If I am using some form validator, I notice that getDefaultModelObject does not have the value from the getInput. I am assume this intentional. Is there a way to force wicket to update the modelObject? How and when does the modelobject get updated. myForm.add(new AbstractFormValidator() {