If I want to evaluate a JSF bean property from within JavaScript, I see that it works if the JavaScript snippet is inside the xhtml file, but doesn\'t work when the JavaScri
Another solution is to change your *.js file to *.xhtml and include it with "
MyJS.xhtml (changed from MyJS.js)
In your index.xhtml file, do the following:
...