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

[Wicket Viewer] Validation messages for textfield throw IAE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Resolved
    • 2.0.0-M7
    • 2.0.0-M8
    • Viewer Wicket
    • None

    Description

      When creating a new entity from a menuaction and one of the mandatory parameters based on a TEXTfield is left empty, ISIS will throw an exception:

       

       

      java.lang.IllegalArgumentException: Parameter message can't be null
          at org.apache.wicket.feedback.FeedbackMessage.<init>(FeedbackMessage.java:123) ~[wicket-core-8.13.0.jar:8.13.0]
          at org.apache.wicket.feedback.FeedbackMessages.error(FeedbackMessages.java:151) ~[wicket-core-8.13.0.jar:8.13.0]
          at org.apache.wicket.Component.error(Component.java:1214) ~[wicket-core-8.13.0.jar:8.13.0]
          at org.apache.isis.viewer.wicket.ui.util.Wkt$18.error(Wkt.java:592) ~[isis-viewer-wicket-ui-2.0.0-M7.jar:2.0.0-M7]
      

       

       

      Rootcause org.apache.isis.viewer.wicket.ui.util.Wkt calls the wrong error method (from Component instead of FormComponent) for both textFieldWithConverter and passwordFieldWithConverter. Provided a fix.

      Attachments

        Issue Links

          Activity

            People

              hobrom Andi Huber
              ppjdeenen Patrick Deenen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: