Hello all,
I have a rather strange validation problem.
I have a field agencyCommRate declared as a BigDecimal.
I need to validate that a value between 0.0 and 100.0 is entered and
assumed the following validation rules would work.
Values outside the range are picked up correctly.
However, when the values are inside the range, the validation rule
'requiredstring' insists that there is no value for agencyCommRate and
validation always fails.
Can anybody spot a glaring mistake in my below declaration, or is there
a known problem on combining requiredstring and double validation rules?
Thanks
Robin
<field name="agencyCommRate">
<field-validator type="requiredstring">
<param name="trim">true</param>
<message
key="form.createShopForm.validationMsg.agencyCommRateRequired"><![CDATA[
error msg 1 ]]></message>
</field-validator>
<field-validator type="double">
<param name="minInclusive">0.00</param>
<param name="maxInclusive">100.00</param>
<message
key="form.createShopForm.validationMsg.agencyCommRateBadValue"><![CDATA[
error msg 2 ]]></message>
</field-validator>
</field>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org