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 IModel<Boolean> modelForAgree = new > Model<Boolean>("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 an older version of modelForAgree? > > Berlin Brown > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org