**Possible Duplicate: The solution to this post is not feasible in this case, re-open this post please! **
JSF bean property not evaluated in external JavaScript file
The EL parser do not translate files including with the <outputScript> tag (JavaScript files). When trying to access the resource bundle.
<h:outputScript library="js" name="myScripts.js" target="head"/>;
myScripts.js file:
alert("#{msg.browser_not_html5_compatible}");
The result is that I get the same string back when the alert window renders.
If I have this line of JavaScript in a <script> tag in my XHTML file, the EL parser will replace it with the correct resource string from the bundle;
<script>
alert("#{msg.browser_not_html5_compatible}");
</script>
Can I make the EL parser translate my included (<h:outputScript>) JavaScript file to access the resource bundle?