Keep and validate project type selection when creating/editing application periods #47

Merged
niat8586 merged 3 commits from project-type-lost-application-period-creation into develop 2024-12-16 13:23:38 +01:00

3 Commits

Author SHA1 Message Date
809c427214 Merge branch 'develop' into project-type-lost-application-period-creation
All checks were successful
Build and test / build-and-test (push) Successful in 7m19s
2024-12-16 13:00:30 +01:00
d387e8002e Require at least one project type to be selected when creating/editing application periods
All checks were successful
Build and test / build-and-test (push) Successful in 7m14s
2024-12-02 15:02:58 +01:00
db0ea51ed9 Fix project type selection being lost on validation error while creating application periods
All checks were successful
Build and test / build-and-test (push) Successful in 7m41s
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.
2024-12-02 14:20:01 +01:00