[Yanel-dev] xslt order

Michael Wechner michael.wechner at wyona.com
Tue Feb 12 12:03:07 CET 2008


Evaldas Taroza wrote:

>
>
> Josias Thöny wrote:
>
>> Evaldas Taroza wrote:
>>
>>> Hi,
>>>
>>> I am implementing a CreatableV2 resource, and I have the following 
>>> method:
>>> public HashMap createRTIProperties(HttpServletRequest request) {
>>>   HashMap map = new HashMap();
>>>   map.put("mime-type", "application/xhtml+xml");
>>>   map.put("xslt", "/xslt/single_page.xsl");
>>>   map.put("xslt", "/xslt/global.xsl");
>>>   return map;
>>> }
>>>
>>> As far as I understand the order of XSLTs for my resource matter. 
>>> But HashMap does not impose ordering with the put() method. Is that 
>>> a bug?
>>
>>
>> It's an unsupported feature :(
>> HashMap doesn't support multiple entries with the same key, so the 
>> second put will overwrite the first one. Currently it's not possible 
>> to set a multi-valued property with this interface.
>
>
> Looks like CreatableV* really needs rethinking.


Please feel free to make a suggestion for CreatableV3

Cheers

Michi

>
> Evaldas
>


-- 
Michael Wechner
Wyona      -   Open Source Content Management - Yanel, Yulup
http://www.wyona.com
michael.wechner at wyona.com, michi at apache.org
+41 44 272 91 61



More information about the Yanel-development mailing list