Re: [S2] field-validator regex ignoring given message

2007-05-24 Thread Dave Newton
--- Paolo Beccari <[EMAIL PROTECTED]> wrote: > >> Paolo Beccari <[EMAIL PROTECTED]> wrote: > >> I suppose this message is always returned when a > >> conversion error occurs. > > "Dave Newton" <[EMAIL PROTECTED]> wrote: > ./src/java/com/opensymphony/xwork2/xwork-messages.properties:xwork.default.in

Re: [S2] field-validator regex ignoring given message

2007-05-24 Thread Paolo Beccari
Paolo Beccari <[EMAIL PROTECTED]> wrote: I suppose this message is always returned when a conversion error occurs. Next step is finding a way to hide it. I'll post the solution, if ever find one. "Dave Newton" <[EMAIL PROTECTED]> wrote: $ find . -name "*.properties" | xargs grep -i invalid .

Re: [S2] field-validator regex ignoring given message

2007-05-24 Thread Paolo Beccari
Paolo Beccari <[EMAIL PROTECTED]> wrote: I suppose this message is always returned when a conversion error occurs. Next step is finding a way to hide it. I'll post the solution, if ever find one. "Dave Newton" <[EMAIL PROTECTED]> wrote: $ find . -name "*.properties" | xargs grep -i invalid ./s

Re: [S2] field-validator regex ignoring given message

2007-05-23 Thread Dave Newton
--- Paolo Beccari <[EMAIL PROTECTED]> wrote: > I suppose this message is always returned when a > conversion error occurs. > Next step is finding a way to hide it. I'll post the > solution, if ever find one. $ find . -name "*.properties" | xargs grep -i invalid ./src/java/com/opensymphony/xwork2/x

Re: [S2] field-validator regex ignoring given message

2007-05-23 Thread Paolo Beccari
Paolo Beccari <[EMAIL PROTECTED]> wrote: So how to validate a Long value? "Dave Newton" <[EMAIL PROTECTED]> wrote: You might just be able to use the conversion validator. http://struts.apache.org/2.x/docs/conversion-validator.html I have not tried this, so I'd be interested in the results if

Re: [S2] field-validator regex ignoring given message

2007-05-23 Thread Paolo Beccari
--- Paolo Beccari <[EMAIL PROTECTED]> wrote: So how to validate a Long value? You might just be able to use the conversion validator. http://struts.apache.org/2.x/docs/conversion-validator.html I have not tried this, so I'd be interested in the results if you do! Thanks, Dave I'm goin

Re: [S2] field-validator regex ignoring given message

2007-05-23 Thread Dave Newton
--- Paolo Beccari <[EMAIL PROTECTED]> wrote: > So how to validate a Long value? You might just be able to use the conversion validator. http://struts.apache.org/2.x/docs/conversion-validator.html I have not tried this, so I'd be interested in the results if you do! Thanks, Dave _

Re: [S2] field-validator regex ignoring given message

2007-05-23 Thread Lance
Ah... pls ignore Paolo Beccari wrote: [0-9]*(\.[0-9]+)? Hi Lance, as already established (see previous posts), it is not a matter of regular expressions. The matter is: the variable in the Action is a Long (and MUST be a Long). The regex validation does not work, if the variable is not a

Re: [S2] field-validator regex ignoring given message

2007-05-23 Thread Paolo Beccari
[0-9]*(\.[0-9]+)? Hi Lance, as already established (see previous posts), it is not a matter of regular expressions. The matter is: the variable in the Action is a Long (and MUST be a Long). The regex validation does not work, if the variable is not a String. I'm searching a way to validate

Re: [S2] field-validator regex ignoring given message

2007-05-23 Thread Lance
[0-9]*(\.[0-9]+)? Paolo Beccari wrote: --- Paolo Beccari <[EMAIL PROTECTED]> wrote: [0-9] --- "Dave Newton" <[EMAIL PROTECTED]> wrote: If it's defined as a Long in your action then you might not be able to run a regex on it--I would imagine type conversion has alre

Re: [S2] field-validator regex ignoring given message

2007-05-23 Thread Dave Newton
--- Paolo Beccari <[EMAIL PROTECTED]> wrote: > >[0-9] > > > > If it's defined as a Long in your action then you might not be able to run a regex on it--I would imagine type conversion has already happened. d. ___

Re: [S2] field-validator regex ignoring given message

2007-05-23 Thread Paolo Beccari
--- Paolo Beccari <[EMAIL PROTECTED]> wrote: [0-9] --- "Dave Newton" <[EMAIL PROTECTED]> wrote: If it's defined as a Long in your action then you might not be able to run a regex on it--I would imagine type conversion has already happened. d. Thank for the reply,

Re: [S2] field-validator regex ignoring given message

2007-05-23 Thread Paolo Beccari
Hi all, I'm a S2 newbie. Trying to validate input in a *-validation.xml, and found a strange behaviour: [0-9] id is not a numeric value When i test validation, the "required" key is

Re: [S2] field-validator regex ignoring given message

2007-05-19 Thread Will Smith
On 5/19/07, Paolo Beccari <[EMAIL PROTECTED]> wrote: Hi all, I'm a S2 newbie. Trying to validate input in a *-validation.xml, and found a strange behaviour: [0-9] id is not a numeric value

[S2] field-validator regex ignoring given message

2007-05-19 Thread Paolo Beccari
Hi all, I'm a S2 newbie. Trying to validate input in a *-validation.xml, and found a strange behaviour: [0-9] id is not a numeric value When i test validation, the "required" key is shown correc