Wait a minute - will this work if the script itself is embedded in a panelGrid?

regards,

Martin

On 8/23/06, Mario Ivankovits <[EMAIL PROTECTED]> 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

Reply via email to