Zermelo created ISIS-3269:
-----------------------------

             Summary: Selecting the empty item from the choices of an optional 
parameter throws exception
                 Key: ISIS-3269
                 URL: https://issues.apache.org/jira/browse/ISIS-3269
             Project: Isis
          Issue Type: Bug
          Components: Isis Viewer Wicket
    Affects Versions: 2.0.0-M9
            Reporter: Zermelo
         Attachments: SelectingNoneThrowsAnException.mov

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.


{code:java}
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");
} {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to