Number as null
Dear Ivy Team.
We faced with the autounboxing problem.
On UI side we have input field for number:<br/>
<pe:inputNumber value=#{data.num}/><br/>
or <p:inputText value=#{data.num}>
On data model, the field 'num' has type Number.
When a user saves data, then we get value 0 in this field.
Can we store null value?
We read question:
http://answers.axonivy.com/questions/1674/auto-initialisation-number-0-from-jsf-view
We tried set COERCE_TO_ZERO=false in:
\AxonIvyDesigner6.5.0.53277\webapps\ivy\WEB-INF\web.xml
<context-param><br/><context-param>
<param-name>org.apache.el.parser.COERCE_TO_ZERO</param-name><br/><param-name>org.apache.el.parser.COERCE_TO_ZERO</param-name>
<param-value>false</param-value><br/><param-value>false</param-value>
</context-param> <br/></context-param>
in %JAVA_OPTS%: -Dorg.apache.el.parser.COERCE_TO_ZERO=false<br/>
in process code, as:
System.setProperty("org.apache.el.parser.COERCE_TO_ZERO", Boolean.FALSE.toString());
But it didn't help for us.<br/>
Could you correct us, what do we need do any more for Designer and then for Engine?
Where do we need set variable **ivy.vm.additional.options**?