in validation.xml
<field property="increasedIdleRotation"
depends="integer,intRange">
<msg
name="intRange"
key="error.EPBMeasure.idleRotation.rangemsg" />
<var>
<var-name>min</var-name>
<var-value>2000</var-value>
</var>
<var>
<var-name>max</var-name>
<var-value>9999</var-value>
</var>
</field>
add element msg
name must correspond to the validator, e.g. intRange
key is the key in application.properties resource file containing the localizated error message when the corresponding validation fails
Tuesday, July 14, 2009
Subscribe to:
Posts (Atom)