Maintain project selection on validation failure
This commit is contained in:
parent
de18f200a7
commit
f3e21e0ebd
@ -59,6 +59,11 @@ public class EditGroupPanel extends Panel {
|
||||
});
|
||||
add(
|
||||
new ListView<>("available_projects", availableProjects) {
|
||||
{
|
||||
// must re-use list items to maintain form component (checkboxes) state
|
||||
setReuseItems(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void populateItem(ListItem<Project> item) {
|
||||
CheckBox checkbox = new CheckBox("selected", new SelectProjectModel(model, item.getModel()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user