Re: regex validator and BigDecimal

2008-08-25 Thread ndario
I should have said that I do have custom BigDecimal converter which throws TypeConversionException if conversion fails. But users are still allowed to enter something like "344,5,6" which converts successfuly but converted value may not be the one user wanted to enter. That is why i want to gi

Re: regex validator and BigDecimal

2008-08-25 Thread Oleg Mikheev
ndario wrote: Is there any way to validate the string before conversion to BigDecimal? The right (and default) way of handling conversion errors is to use the Conversion Error Interceptor: http://struts.apache.org/2.x/docs/conversion-error-interceptor.html There is no converter for BigDecimal,

Re: regex validator and BigDecimal

2008-08-25 Thread ealden
If the conversion to BigDecimal fails that either means that the input is blank of invalid. Would you get the same effect as a regex validatir if you made the BigDecimal property a required field? On 8/25/08, ndario <[EMAIL PROTECTED]> wrote: > > Hello, > > I am trying to enforce BigDecimal number