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

Reply via email to