Hi

I have a problem when submitting a form that has a ListView with a group of
Check components. Everything seems to work fine (checkgroupselector, the
selected collection model gets updated) - but when I submit the form that
contains the checkgroup (in my case, jump between a tab in a TabbedPanel and
go back to the first tab) all Check components appear selected.



...

protected void populateItem(ListItem item) {


final MyClass object = item.getModelObject();

IModel objectModel = item.getModel();


Check check = new Check("check", *objectModel*);

item.add(check);

...




I believe this has something to do with the *objectModel* being added to the
Check component - when submitting somehow the model for selected items sees
the attaching to the Check as a selection behavior.

Does anyone has any directions?

--
Nuno Faria


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Check-component-onSubmit-behavior-selects-all-tp4650124.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to