Of James Carman
Sent: Monday, October 04, 2010 9:13 AM
To: users@wicket.apache.org
Subject: Re: Understanding the model, initial/default value
You're not binding your model to the agree property, really. So, if the
value changes, it won't update your model. If you want to bind it, use
Panel.java:
...
final IModelBoolean modelForAgree = new
ModelBoolean(yes.equalsIgnoreCase(obj.getAgree(;
form.add(modelForAgree);
...
In this code, how can I ensure that modelForAgree has the right default
value when the panel loads. Is it possible that the Panel gets
deserialized with
You're not binding your model to the agree property, really. So, if
the value changes, it won't update your model. If you want to bind
it, use a PropertyModel.
On Mon, Oct 4, 2010 at 9:06 AM, Brown, Berlin [GCG-PFS]
berlin.br...@primerica.com wrote:
Panel.java:
...
final IModelBoolean