Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-13484

JSF - submitting empty fields does not work

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate Issue
    • 19.1.0.Final
    • 20.0.1.Final
    • JSF
    • None
    • Migration, Compatibility/Configuration, User Experience

    Description

      A simple JSF webapp with an input field

      <p:inputMask value="#{myCtrl.num}" mask="?9999" slotChar="" size="4" maxlength="4"/>

      and in the controller

      private Short num; // + getter/setter

      When the input field is empty, the setter is never called on submit.

      The same webapp under WildFly 19.0.0 works as expected, in this case the setter is called with a null value.

      Attachments

        Issue Links

          Activity

            People

              chaowan@redhat.com Chao Wang
              fheldt Frank Heldt
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: