• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

mask is not showing pop-up window

 
Ranch Hand
Posts: 196
  • 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>
 
Ranch Hand
Posts: 169
  • 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!
 
Live a little! The night is young! And we have umbrellas in our drinks! This umbrella has a tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic