I have a form (jsf / primefaces) where a value
of type BigDecimal
, can be submitted without value. In this case, the value of it should be null
. However, when set, it will be 0
. There is an argument that is passed to vm
by JBOSS
which makes the value set to null
but this solution is not interesting for me.
No web.xml
is defined:
<context-param>
<param-name>javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL</param-name>
<param-value>true</param-value>
</context-param>
But it still does not work.
Is there any way to implement this by continuing the attribute to be BigDecimal
?