a small help

hai all, where and how can I add a javascript dynamically to a jsf page.In which function inside the bean should i write the code for that?Thanx for reading this
[189 byte] By [jsf_admirera] at [2007-10-2 0:51:14]
# 1
For example:<h:commandButton ... onclick="#{managedBean.script}"/>
yuki.yoshidaa at 2007-7-15 18:10:46 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...