Inconsistency between StringToList and ListToString

2012-04-27 Thread Nicolas Malin
Hi, I would like to explain a little problem with OFBiz convert where I don't found a clean solution. To start : a search form with a multiple drop-down that call a perform service with an attribute List the form : ... the service : optional="true"/> ... When I execute the research, the

Re: Inconsistency between StringToList and ListToString

2012-05-01 Thread Rishi Solanki
Nicolas, Please have a look into the method specified urlEncodeArgs() of UtilHttp class. It takes the Map as argument and if while conversion it gives you '{ }' then it is fine. You just need to use map converter instead of list converter. It should works perfectly then. Assuming you are talking ab

Re: Inconsistency between StringToList and ListToString

2012-05-01 Thread Nicolas Malin
Hi Rishi, Thanks for your time Yes the urlEncodeArgs() convert the Map very well, but the list present in the map isn't convert to string as OFbiz converter wait it. If I follow your suggest, and use StringUtil.toMap instead of StringUtil.toList in the CollectionConverter.java to convert, I

Re: Inconsistency between StringToList and ListToString

2012-05-01 Thread Jacques Le Roux
Don't we need an adater? http://en.wikipedia.org/wiki/Adapter_pattern Maybe too heavy, just popped in my mind, did not look at code Jacques From: "Nicolas Malin" Hi Rishi, Thanks for your time Yes the urlEncodeArgs() convert the Map very well, but the list present in the map isn't convert t

Re: Inconsistency between StringToList and ListToString

2012-05-01 Thread Jacques Le Roux
Don't we need an Object Adapter? http://en.wikipedia.org/wiki/Adapter_pattern Maybe too heavy, just popped in my mind, did not look at code Jacques From: "Nicolas Malin" Hi Rishi, Thanks for your time Yes the urlEncodeArgs() convert the Map very well, but the list present in the map isn't

Re: Inconsistency between StringToList and ListToString

2012-05-02 Thread Nicolas Malin
Maybe not ! I ready you link with attention. But I really don't understand How use this pattern :( (sorry I'm not a great designer). I restart this analyze in some days. Nicolas Le 01/05/2012 23:16, Jacques Le Roux a écrit : Don't we need an Object Adapter? http://en.wikipedia.org/wiki/Adapter