Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-3269

Selecting the empty item from the choices of an optional parameter throws exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-M9
    • 2.0.0-RC1
    • Viewer Wicket
    • 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");
      } 

      Attachments

        Activity

          People

            hobrom Andi Huber
            zermelo Zermelo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: