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
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 getDefaultModelObject
does
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
, 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 getConvertedInput(). Going via the model to get