You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Anton de Vries (JIRA)" <ji...@apache.org> on 2010/04/06 11:33:33 UTC
[jira] Created: (WICKET-2823) CheckBox ouside CheckGroup makes
CheckGroup lose selection
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.
[jira] Resolved: (WICKET-2823) CheckBox ouside CheckGroup makes
CheckGroup lose selection
Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2823?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Vaynberg resolved WICKET-2823.
-----------------------------------
Resolution: Invalid
Assignee: Igor Vaynberg
call ListView.setReuseItems(true)
> 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
> Assignee: Igor Vaynberg
>
> 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.