[jboss-jira] [JBoss JIRA] (WFLY-13484) JSF - submitting empty fields does not work

Frank Heldt (Jira) issues at jboss.org
Mon May 18 05:02:41 EDT 2020


     [ https://issues.redhat.com/browse/WFLY-13484?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Frank Heldt updated WFLY-13484:
-------------------------------
    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.




  was:
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.






> JSF - submitting empty fields does not work
> -------------------------------------------
>
>                 Key: WFLY-13484
>                 URL: https://issues.redhat.com/browse/WFLY-13484
>             Project: WildFly
>          Issue Type: Bug
>          Components: JSF
>    Affects Versions: 19.1.0.Final
>            Reporter: Frank Heldt
>            Assignee: Farah Juma
>            Priority: Major
>
> 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.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list