I did do something along the lines of using patterns and posted a patch, but
it had limitations and didn't go anywhere:

http://issues.apache.org/bugzilla/show_bug.cgi?id=26151

I would like to revisit it at some point, but in the mean time I used a
regexp validator instead:

   <constant>
       <constant-name>integer_comma</constant-name>
       <constant-value>^[0-9,]*$</constant-value>
   </constant>

  <field propery ="someNumber" depends="mask">
     <arg0 key="someNumber.error"/>
     <var>
        <var-name>mask</var-name>
        <var-value>${integer_comma}</var-value>
     </var>
  </field>

Niall

----- Original Message ----- 
From: "Rouven Gehm" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, May 11, 2004 11:44 AM
Subject: Struts Validation for comma separated double values


> Just want to know if some has an extension for the Validator
> on the problem of some non US states, which uses comma
> separated floats, doubles.
>
> Thanx
>
> Rouven



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

Reply via email to