Hi All,
I am unable to find any documentation that explains the various attributes 
used in the validation.xml file, say field.

         <field    property="lastName"
                   depends="required,mask,maxlength">
                     <msg name="mask" key="registrationForm.lastname.maskmsg"/>
                     <arg0 key="registrationForm.lastname.displayname"/>
                     <arg1 name="maxlength" key="${var:maxlength}" resource="false"/>
                     <var>
                       <var-name>mask</var-name>
                       <var-value>^[a-zA-Z]*$</var-value>
                     </var>                
                     <var>
                       <var-name>maxlength</var-name>
                       <var-value>10</var-value>
                     </var>
         </field>

By running an application using the validation 
I could figure out that arg0, arg1 are the parameters that 
are used while creating the error messages
But I have many doubts @ the same.
If arg0 is the argument for first rule 'required'
why is the argument for third rule 'maxlength' named arg1 and not arg2 ?

Does the 'msg' tag require the same name as the rule for which it is to be
displayed?

Any pointers to fundas of Regular Expression?

Thanks and Regards,

Amit.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to