title: JSF outputScript and JavaScripts not parsed by EL?
body: <blockquote>
    <p>**Possible Duplicate: The solution to this post is not feasible in this case, re-open this post please! **<br>
    <a href="https://stackoverflow.com/questions/11491085/jsf-bean-property-not-evaluated-in-external-javascript-file">JSF bean property not evaluated in external JavaScript file</a>  </p>
  </blockquote>
  
  
  
  <p>The EL parser do not translate files including with the <code>&lt;outputScript&gt;</code> tag (JavaScript files). When trying to access the resource bundle.</p>
  
  <p><code>&lt;h:outputScript library="js" name="myScripts.js" target="head"/&gt;</code>;</p>
  
  <p>myScripts.js file:</p>
  
  <blockquote>
    <p>alert("#{msg.browser_not_html5_compatible}");</p>
  </blockquote>
  
  <p>The result is that I get the same string back when the alert window renders.</p>
  
  <p>If I have this line of JavaScript in a <code>&lt;script&gt;</code> tag in my XHTML file, the EL parser will replace it with the correct resource string from the bundle;</p>
  
  <pre><code>&lt;script&gt;
      alert("#{msg.browser_not_html5_compatible}");
  &lt;/script&gt;
  </code></pre>
  
  <p><em>Can I make the EL parser translate my included (<code>&lt;h:outputScript&gt;</code>) JavaScript file to access the resource bundle?</em></p>