Re: Type conversion on a Map

2012-09-24 Thread Lukasz Lenart
2012/9/21 Miguel Almeida : > Sure! > > Here's a maven project with a failing test case. > > There's actually a map being built, but it's a , and the key > reads "OGNL no conversion possible". Got it working, but I think the main problem is with key value - it isn't a simple string but an int that

RE: Type conversion on a Map

2012-09-21 Thread Miguel Almeida
On Fri, 2012-09-21 at 09:04 -0400, Martin Gainty wrote: > a stupid question but i have to ask If you mean "where is the initialisation of simpleMap e.g. simpleMap=new java.util.HashMap();" - it's not there. I don't think you need to, Struts initializes it. (see below) > > public class TypeConve

RE: Type conversion on a Map

2012-09-21 Thread Martin Gainty
ets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Subject: Re: Type conversion on a Map From: mig...@almeida.at To: user@struts.apache.org Date: Fri, 21 Sep 2012 10:31:24 +0100 Sure! Here's a maven project with a failing test case.

Re: Type conversion on a Map

2012-09-20 Thread Lukasz Lenart
Hi, Could you share the unit test as well ? The whole code would be the best :-) Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands

Type conversion on a Map

2012-09-20 Thread Miguel Almeida
Dear all, Considering: 1) the action property Map complexMap; 2) CodeProperty has an int id property How would you configure type conversion and refer to it on the JSP to populate it? I am currently trying the following -conversion configuration: KeyProperty_complexMap=id Element_complexMap=java