dev@javaserverfaces.java.net

Re: How f:param encoding should be for h:commandLink

From: Leonardo Uribe <lu4242_at_gmail.com>
Date: Mon, 11 Aug 2008 18:27:49 -0500

On Mon, Aug 11, 2008 at 11:47 AM, Ryan Lubke <Ryan.Lubke_at_sun.com> wrote:

> Leonardo Uribe wrote:
>
>> Hi
>>
>> Looking on the jsf tld documentation (1.1 and 1.2), it says something like
>> this (for h:commandLink):
>>
>> "............The name and the value (of UIParameter child components) must
>> be URLEncoded.......".
>>
>> It says the same as h:outputLink.
>>
>> Testing on jsf ri 1.2_09 for example a <f:param name="paramName"
>> value="modalità">
>>
>> Is added on commandLink javascript as:
>>
>> if(typeof jsfcljs ==
>> 'function'){jsfcljs(document.getElementById('mainForm'),{'mainForm:link':'mainForm:link','paramName':'modalit&agrave;'},'');}return
>> false
>>
>> This behavior suggest that no URLEncoding is used for f:param inside
>> h:commandLink (instead the encoding used by ResponseWriter.writeAttribute).
>> Is this the correct behavior? The tld api doc is wrong?
>>
> After talking with the spec leads, the current thinking is that the render
> kit docs/tld docs are incorrect.
> I've logged:
> https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=436to have the documentation
> addressed for 2.0.
>
>
Ok, Thanks Ryan


>
>
>> regards
>>
>> Leonardo Uribe
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_javaserverfaces.dev.java.net
> For additional commands, e-mail: dev-help_at_javaserverfaces.dev.java.net
>
>