Keep and validate project type selection when creating/editing application periods #47
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "project-type-lost-application-period-creation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If you have FormComponents in a ListView you need to call setReuseItems(true) on the ListView. Otherwise the ListItems will be recreated before rendering which results in them losing their "converted input" (what Wicket calls the submitted value).
Instead of simply calling setReuseItems(true) on the ListView, which would've solved the problem, it was instead replaced by a proper FormComponent for dealing with this exact case (a CheckboxMultipleChoice component). This reduces the amount of code required and more clearly communicates intent. The change required some minor test refactoring.
Fixes #33
Now requires at least one project type to be selected before saving.
Fixes #34
How to test
d2e490bdd8
todb0ea51ed9
Fix project type selection being lost on validation error while creating application periodsto Keep and validate project type selection when creating/editing application periods👍