That's because Component#setDefaultModelObject is called internally. It
uses an IModelComparator to check whether the model object needs to be
changed. The default implementation uses an Object#equals() check. So if
the new value is equal to the old value it ignores the call.
If you want another behavior (e.g. reference equality or to change it
every time) then override Component#getModelComparator in your component
to provide an appropriate IModelComparator.
Christoph
albgentius (2012-04-28 15:41):
I've noticed that only when one of the component has changed value in the UI
of a form, then wicket calls updateFormComponentModels.
I was wondering if there is any way to force an update to the model of the
components even if none of the form components has changed value.
Thank you,
Greg
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/force-model-update-on-a-wicket-form-tp4594765p4594765.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org