Using JSF in javascript
Hello Everyone,
Is there any way I can use JSF in javascript.I want one of the following to work
1)How can I use a statement like <var name="#{userAdminBean.username}"> in a javascript function?
or
2)How can I trigger a javascript function from the body of a html file depending on the value I get from a managed bean? ie something like
if "#{userAdminBean.username}"=="java" then <javascript function>
Any help will be greatly appreciated.
Thank You
|