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

Re: Invalid Field Value when using Map

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

Re: Invalid Field Value when using Map

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

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 using Map > >Hi, > >I ha