• Post Reply Bookmark Topic Watch Topic
  • New Topic

mask is not working  RSS feed

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have following entry in validation.xml.

<formset> <form name="LoginForm"> <field property="password" depends="required,mask,minlength"> <arg0 key="LoginForm.password"/> <arg1 key="${var:minlength}" name="minlength" resource="false"/> <var> <var-name>minlength</var-name> <var-value>4</var-value> </var> <var> <var-name>mask</var-name> <var-value>^[a-zA-Z0-9]*$</var-value> </var> </field> </form> </formset>

Here required and minlength are working but mask is not.I want to take only alphanumeric characters and not any special character as input?Is there any problem in the above code?Please help.
with regards, aj
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure what this is about, but I'll move it to the XML forum.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!