Hi all,
I'm a S2 newbie.
Trying to validate input in a *-validation.xml, and found a strange behaviour:

<validators>
   <field name="id">
       <field-validator type="required">
           <message key="required"/>
       </field-validator>
       <field-validator type="regex">
           <!--param name="regex">[0-9]</param-->
           <param name="expression">[0-9]</param>
           <!--message key="requirednumber"/-->
           <message>id is not a numeric value</message>
       </field-validator>
   </field>
</validators>

When i test validation, the "required" key is shown correctly (taken from package.properties file), but instead of "requirednumber" key (as shown above I tried with a plain message too), i'm always receiving a "Invalid field value for field "id"." message.

Someone can help?
P.


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

Reply via email to