myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Marinschek" <martin.marinsc...@gmail.com>
Subject Re: clientId tag
Date Wed, 23 Aug 2006 17:03:17 GMT
Wait a minute - will this work if the script itself is embedded in a panelGrid?

regards,

Martin

On 8/23/06, Mario Ivankovits <mario@ops.co.at> wrote:
> Hi!
>
> Sometimes one would like to embedd the clientId of a component into a
> custom javascript (maybe like me now).
>
> So instead of using forceId= and a script like:
>
> <t:script ....>
> var button=document.getElementById("abc");
> </t:script>
>
> I though having a clientId tag would be nice, then the above will be
>
> <t:script ....>
> var button=document.getElementById("<s:clientId for="abc" />");
> </t:script>
>
> s:clientId simply tries to find the component pointed to with "for" and
> outputs its client id.
>
> Later (JSF 1.2) when we have access to the content-body (I heard this
> should be possible) we might also be able to directly use some embedded
> el or whatever, bot for now this could do the trick too - and its a
> rather simple tag, no?
>
> What do you think?
>
> Ciao,
> Mario
>
>


-- 

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Mime
View raw message