Re: Type conversion on a Map

2012-09-24 Thread Lukasz Lenart
2012/9/21 Miguel Almeida mig...@almeida.at: Sure! Here's a maven project with a failing test case. There's actually a map being built, but it's a String,String, 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

RE: Type conversion on a Map

2012-09-21 Thread Martin Gainty
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. There's actually a map being

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

Type conversion on a Map

2012-09-20 Thread Miguel Almeida
Dear all, Considering: 1) the action property MapCodeProperty, String 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

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

Re: [s2] Question about Advanced Type Conversion/Collection and Map Support

2008-03-12 Thread Nandana Mihindukulasooriya
to use type conversion feature to convert set of values to a list in my action as mentioned in the type conversion documentation (Advanced Type Conversion/Collection and Map Support) [1]. I followed the steps but still no luck. I have few questions. (please excuse if these questions

[s2] Question about Advanced Type Conversion/Collection and Map Support

2008-03-11 Thread Nandana Mihindukulasooriya
Hi, I want to use type conversion feature to convert set of values to a list in my action as mentioned in the type conversion documentation (Advanced Type Conversion/Collection and Map Support) [1]. I followed the steps but still no luck. I have few questions. (please excuse if these questions

Re: [s2] Question about Advanced Type Conversion/Collection and Map Support

2008-03-11 Thread Jeromy Evans
Nandana Mihindukulasooriya wrote: Hi, I want to use type conversion feature to convert set of values to a list in my action as mentioned in the type conversion documentation (Advanced Type Conversion/Collection and Map Support) [1]. I followed the steps but still no luck. I have few