Re: Int Validator

2013-07-13 Thread Alireza Fattahi
Thanks. Do you know how can I change below message: Invalid field value for field "amount" ?!   ~Regards, ~~Alireza Fattahi From: Dave Newton To: Struts Users Mailing List Sent: Saturday, 13 July 2013, 16:16 Subject: Re: Int Validator The f

Re: Int Validator

2013-07-13 Thread Dave Newton
The field value error comes from the type conversion process. The field should be an int or an Integer, with the caveat that an int has a default value of 0, which may not be desirable. Save On Jul 12, 2013 11:56 PM, "Alireza Fattahi" wrote: > Hi, > > I want to validate the amount filed to be a

Int Validator

2013-07-12 Thread Alireza Fattahi
Hi, I want to validate the amount filed to be an integer with minimum value of 1 I describe the field type as Integer (not int ) Add below validation rule                         ${getText("validate.required")}                             10             ${getText("validate.int.min")}        

int validator stopped working after upgrade to 2.1.8 from 2.1.6

2009-12-27 Thread Parm Lehal
Hello my int validator stopped working after upgrade to 2.1.8 from 2.1.6. Can someone please, provide some insight? My validators are defined like this and they used to work fine before. Now string validators are working but not the int ones

Re: required Int validator -How to.

2008-06-10 Thread Laurie Harper
ravi_eze wrote: hi, I see that the previous valid int value is being populated when i enter null in an integer text field. I want to show error in such a case. Any ideas how to get this done. The scenario is as follows: 1. When i enter no value in F1: i get validation error asking me to fill

required Int validator -How to.

2008-06-10 Thread ravi_eze
give some string/ char in int field its throwing errors as expected. any help ??? cheers, ravi -- View this message in context: http://www.nabble.com/required-Int-validator--How-to.-tp17761272p17761272.html Sent from the Struts - User mailing list archive at Nabble.com

Re: [S2] int validator for longs?

2007-06-15 Thread Paolo Beccari
ay, June 14, 2007 10:50 PM Subject: [S2] int validator for longs? >I noticed there's only two bundled numeric data type validator (int, >double). Is there any reason the S2 "int" validator can't be used for long >field validations (or other data types w/out de

[S2] int validator for longs?

2007-06-14 Thread Jon Wilmoth
I noticed there's only two bundled numeric data type validator (int, double). Is there any reason the S2 "int" validator can't be used for long field validations (or other data types w/out decimals)? p.s. The http://struts.apache.org/2.x/docs/validation.html page is mis