File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to validate Mask attribute

 
Dhan Raj
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Following is the code in validation.xml, I am not getting an error message for MASK attribute validations. Please Help!

<field property="size" depends="maxlength,mask">
<!-- This Field is Required, Numeric and MaxLength=3 -->
<arg0 key="aPDForm.size"></arg0>
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
<arg1 name="maxlength" key="${var:maxlength}" resource="false"/>
<var><var-name>maxlength</var-name><var-value>4</var-value></var>
</field>
 
Jason Menard
Sheriff
Posts: 6450
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Java Ranch",

Your display name is in violation of the JavaRanch naming policy which you should have read when you signed up for an account. Please have another look at it in case you missed it the first time and then change your display name in order to comply. Failure to do so may result in the disabling of your account. Thanks in advance and we look forward to seeing you around the Ranch.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic