Details
Description
I needed to validate a field if another one was diferent than zero, it should be
expected that i was able to do it like so :
<field property="outros" depends="validwhen">
<arg2 key="compostagemdataForm.outros.invalido"/>
<var>
<var-name>test</var-name>
<var-value>(qtoutros==0)</var-value>
</var>
</field>
For some reason this rule allways failed. i had to reformulate the rule :
<field property="outros" depends="validwhen">
<arg2 key="compostagemdataForm.outros.invalido"/>
<var>
<var-name>test</var-name>
<var-value>(qtoutros=='0.0') </var-value>
</var>
</field>
wich is weird! qtoutros is a String property on the bean, but can be converted
to float.
Attachments
Issue Links
- is related to
-
STR-2321 Validator validwhen comparisons of doubles
- Resolved