Hello,
I am using validatorActionForm. My form bean has getters/setters for the following:
// Liquidation Filter variables
private
String liquidationType;
private int liquidationAmount;
private float liquidationPercent;
private byte equityDenomination;
private short fixedIncomeDenomination;
private char includeCashInLiquidationAmount = 'N';
private char vsp = 'N';
private char washRule = 'N';
I could not get the validation of liquidation amount to work with integer until I changed the data type type to String.
validation.xml
<form name="/liquidate">
<field property="liquidationAmount" depends="integer">
<arg0 key="error.liquidationAmount"/>
</field>
</form>
form bean:
private String liquidationAmount;
Do all my form bean properties have to be string to use the validator framework? Why?
Thanks,