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
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 in the validation method that I usually get
Oh interesting!
Have you seen [1]? e.g. conversion error interceptor should be present
in your interceptor stack. To debug, for example put a number field
which is not a map and see if conversion error appears - I think you
should also have fieldErrors tag in your jsp.
It seems your action also s
Hi Yasser,
I think at run time you can add any type of objects you want to the map. The
checks are only at compile time on the data types of objects added to Maps.
Thanks,
Prasanth
On 6/19/19 1:29 AM, Yasser Zamani wrote:
Hi Prasanth,
I'm surprised how you get non digit characters in your ma
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 using Map
>
>Hi,
>
>I ha
10 matches
Mail list logo