You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Daniel Keir Haywood (Jira)" <ji...@apache.org> on 2022/11/03 15:35:00 UTC
[jira] [Updated] (ISIS-3269) Selecting the empty item from the choices of an optional parameter throws exception
[ https://issues.apache.org/jira/browse/ISIS-3269?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Keir Haywood updated ISIS-3269:
--------------------------------------
Fix Version/s: 2.0.0-RC1
> 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
> Priority: Major
> Fix For: 2.0.0-RC1
>
> 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)