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 afatt...@yahoo.com wrote: Hi, I want to validate the amount

Re: Int Validator

2013-07-13 Thread Alireza Fattahi
: Re: Int Validator 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 afatt...@yahoo.com wrote: Hi, I want

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     field name=amount         field-validator type=required             message ${getText(validate.required)}/message        

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

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: 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

Re: [S2] int validator for longs?

2007-06-15 Thread Paolo Beccari
, 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 decimals)? p.s. The http://struts.apache.org/2.x/docs

[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 missing a link