Re: Invalid Field Value when using Map

2019-06-28 Thread Yasser Zamani
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

Re: Invalid Field Value when using Map

2019-06-24 Thread Prasanth Pasala
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

RE: Invalid Field Value when using Map

2019-06-23 Thread Yasser Zamani
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

Re: Invalid Field Value when using Map

2019-06-22 Thread Martin Gainty
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

Re: Invalid Field Value when using Map

2019-06-22 Thread Martin Gainty
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

Re: Invalid Field Value when using Map

2019-06-22 Thread jcyh24768
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

Re: Invalid Field Value when using Map

2019-06-21 Thread Prasanth
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

Re: Invalid Field Value when using Map

2019-06-20 Thread Yasser Zamani
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

Re: Invalid Field Value when using Map

2019-06-19 Thread Prasanth Pasala
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

RE: Invalid Field Value when using Map

2019-06-18 Thread Yasser Zamani
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

Invalid Field Value when using Map

2019-06-17 Thread Prasanth
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