CheckBox ouside CheckGroup makes CheckGroup lose selection
----------------------------------------------------------
Key: WICKET-2823
URL: https://issues.apache.org/jira/browse/WICKET-2823
Project: Wicket
Issue Type: Bug
Components: wicket
Environment: Jetty web container
Reporter: Anton de Vries
I have a CheckGroup with a ListView on a Page. To the ListView I add
Check-Components.
CheckGroup<Role> group = new CheckGroup<Role>( "roles" );
ListView<Role> role = new ListView<Role>( "rolesItems", Arrays.asList(
Role.values() ) )
{
@Override
protected void populateItem( final ListItem<Role> item )
{
item.add( new Check<Role>( "checkbox", item.getModel() ) );
item.add( new Label( "name", item.getModelObject().name() ) );
}
};
group.add( role );
On the same page there is a different checkbox.
form.add( new CheckBox( "checkBoxValue" )
{
@Override
public void onSelectionChanged()
{
System.out.println( "2" );
};
@Override
protected boolean wantOnSelectionChangedNotifications()
{
System.out.println( "1" );
return true;
}
} );
when i click this checkbox the checkgroup loses his selection. which I think it
shoudn't.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.