Amol Yadwadkar wrote:
Hi List,
I am using Validation Framework.
<field
property="clientTaxId"
depends="required,mask" >
<arg0 key="loanAppForm.clientTaxId"/>
<arg1 name="mask" key="prompt.taxid" />
<var>
<var-name>mask</var-name>
<var-value>${taxid}</var-value>
</var>
</field>
In the above when mask rule fails it picks up the message against the
errors.invalid key in the properties file rather than the specified
key as "prompt.taxid" in validation.xml
Can anyone pls suggest me my mistake ?
The arg* attributes are for passing in values for placeholders in the
default error messages. If you want to specify a different error
message, you want the 'msg' attribute instead:
<msg name="mask" key="prompt.taxid"/>
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]