This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mask is not showing pop-up window

 
ajse ruku
Ranch Hand
Posts: 196
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have three validations applied on password field.required and minlength are working(throwing pop-up wndows) but mask is not throwing pop-up window but using <html:errors> it is working fine.Can anybody suggest why pop-up is not coming in case of mask.I have checked my message resource(errors:invalid={0} is invalid)

<formset> <form name="LoginForm"> <field property="password" depends="required,minlength,mask"> <arg0 key="LoginForm.password"/> <arg1 key="${var:minlength}" name="minlength" resource="true"/> <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>
 
Srilakshmi Vara
Ranch Hand
Posts: 169
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to give a message key in the field like the following

<msg name="mask" key="xxx.yyy"/>

and give a message in applicationresources property file using the same key value.

Hope this helps!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic