Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Common validation framework issue

 
Swapnil Dharane
Ranch Hand
Posts: 55
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is one of my validation rule from validator.xml file
<field property="Fname" depends="mask">
<msg name="mask" key="errors.invalid" resource="false" />
<arg0 key="label.Fname" resource="false" />
<var>
<var-name>mask</var-name>
<!-- Should match any of the ones below -->
<var-value>^(TRUE|FALSE|true|false|[A-Z]{1})$</var-value>
</var>
</field>
As mentioned,resource attribute at both places is set to "false"
Still I am getting proper error messages from my properties file
Actually I should not get error messages rt?
and what does name attribute in msg element signify?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic