Have you tried something simple like
<h:panelGroup
rendered="#{bean.value == 1}">
// include your javascript here
</h:panelGroup>
If you're using jsp, you'll need to put that into f:verbatim (which
might have a rendered flag already -- not sure about that one).
On 3/29/07, Dave <[EMAIL PROTECTED]> wrote:
How to include javascript conditionally in a page? It seems that
ExtensionFilter is for this purpose? For example,
include javascript when #{bean.value == 1}
Thanks for ideas.
________________________________
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out.