Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using masks in Validations

 
ajse ruku
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
In my application ,there is password field in which I want to allow user input only alphanmeric value.Following is my Validation.xml file.Here required and minlength are working fine but mask is not working.Can anybody help me? I will be thankful.

with regards, Ajit

<field property="password" depends="required,mask,minlength"> <arg0 key="LoginForm.password"/> <arg1 key="${var:minlength}" name="minlength" resource="false"/> <var> <var-name>mask</var-name> <var-value>^[0-9a-zA-Z]*$</var-value> </var> <var> <var-name>minlength</var-name> <var-value>4</var-value> </var> </field>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic