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
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
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
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
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
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
, 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
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
8 matches
Mail list logo