Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.0-M9
-
None
Description
In wicket viewer, selecting the empty (none) item from the select box (choices) of an optional action parameter throws an exception. I experience it both with Enum parameters and String parameters.
To test it, you can add this snippet to SimpleObjects.java in SimpleApp.
public enum SomeOption {A, B, C} @Action public void a1(@Parameter(optionality = Optionality.OPTIONAL) SomeOption someOption) { } @Action public void a2(@Parameter(optionality = Optionality.OPTIONAL) String someOption) { } @MemberSupport public List<String> choices0A2() { return Arrays.asList("A", "B", "C"); }