i dont know if what you pasted is your compete source or not, but if there is a validation error then the model is not updated. add a feedbackpanel to the page and see if it gets any errors.
further setobject() will not be called on your model, the actuall call performed will be model.getobject().setselected(true) -igor On Fri, Oct 31, 2008 at 12:34 PM, ds26680 <[EMAIL PROTECTED]> wrote: > > Thanks for the help so far. > > I have fixed the Serialization issue but the problem remains. > > My selected variable (domain model) is always false. I have noticed the the > getObject() method of the PropertyModel gets called but the setModel() > method (which I believe sets the domain model variable) never gets called. I > think this is the reason why the selected variable never gets set to true > when the checkbox is checked and the form is submitted. > > I also tried using a CompoundPropertyModel, adding this to the form and > removed the PropertyModel from checkbox constructor but the domain model > variable (selected) still does not get set to true. > > I tried the suggested change (new PropertyModel(this, > "checkBoxModel.selected")); ) but this also did not make any difference. > > I am sure I am missing something fundamental here but I not totally confused > and not sure what to try next. Does anyone else have any ideas what is > wrong? > > Thanks in advance for your help. > -- > View this message in context: > http://www.nabble.com/Help-with-simple-CheckBox-example-tp20267081p20272791.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]