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]
