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

JSF - submitting empty fields does not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • 20.0.1.Final
    • 19.1.0.Final
    • JSF
    • None
    • Migration, Compatibility/Configuration, User Experience

      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.

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

                Created:
                Updated:
                Resolved: