ob/651eac2c57396aa11ee65002006b3123dd69cbb4/core/src/main/java/com/opensymphony/xwork2/interceptor/ConversionErrorInterceptor.java#L118
>>
>>
>>
>>> -Original Message-
>>> From: Prasanth
>>> Sent: Friday, June 21, 2019 6:27 PM
>>> To: user@stru
bject: Re: Invalid Field Value when using Map
Hi Yasser,
The conversion error occurs when the field is not a map. I have a form with
int/long fields, if the user enters non numeric value the form display error.
The actions are validation aware and the control does come to validation
method. It is i
1, 2019 6:27 PM
>To: user@struts.apache.org
>Subject: Re: Invalid Field Value when using Map
>
>Hi Yasser,
>
>The conversion error occurs when the field is not a map. I have a form with
>int/long fields, if the user enters non numeric value the form display error.
>
>The
supposedly the mapping class looks at Key_xxx and Element_xxx inside
Class-conversion*.properties
This {@link ObjectTypeDeterminer} looks at the
Class-conversion.properties for entries that indicated what
* objects are contained within Maps and Collections. For Collections, such as
Lists, the
From: jcyh24...@yahoo.ca.INVALID
Sent: Saturday, June 22, 2019 12:47 AM
To: user@struts.apache.org
Subject: Re: Invalid Field Value when using Map
Hi Prasanth.
Do you have a small reproducer application available to demonstrate the
behaviour ? There might be
Hi Prasanth.
Do you have a small reproducer application available to demonstrate the
behaviour ? There might be something relevant in the configuration and setup
too.
The behaviour you're seeing could have something to do with the @Element
annotations identifying the types involved. Maybe yo
value are not String!
Regards.
-Original Message-
From: Prasanth
Sent: Monday, June 17, 2019 8:52 PM
To: Struts Users Mailing List
Subject: Invalid Field Value when using Map
Hi,
I have a form that uses maps to store data as shown below. When the
user enters
valid numbers it wor
gt;
>>> -Original Message-
>>> From: Prasanth
>>> Sent: Monday, June 17, 2019 8:52 PM
>>> To: Struts Users Mailing List
>>> Subject: Invalid Field Value when using Map
>>>
>>> Hi,
>>>
>>> I have a form that use
your map while both key and
value are not String!
Regards.
-Original Message-
From: Prasanth
Sent: Monday, June 17, 2019 8:52 PM
To: Struts Users Mailing List
Subject: Invalid Field Value when using Map
Hi,
I have a form that uses maps to store data as shown below. When the user e
Hi Prasanth,
I'm surprised how you get non digit characters in your map while both key and
value are not String!
Regards.
>-Original Message-
>From: Prasanth
>Sent: Monday, June 17, 2019 8:52 PM
>To: Struts Users Mailing List
>Subject: Invalid Field Value when u
Hi,
I have a form that uses maps to store data as shown below. When the user enters valid numbers it works as expected, but when user enters non digit characters in the text field a String object is saved
in the map rather than showing a "Invalid field value for field " message which is done for
11 matches
Mail list logo