title: javascript expression expected
body: <p>I am still new a Javascript tried earching and tried the development tool in Chrome, too see if I could find the problem.</p>
  
  <p>Working in Intellij IDEA 13, Java, javascript and xhtml.</p>
  
  <p>My problem is that I have a piece of javascript, then in IDEA when moused over, says that </p>
  
  <blockquote>
    <p>Expression Expected</p>
  </blockquote>
  
  <p>the javascript code looks the following </p>
  
  <pre><code>&lt;script type="text/javascript&gt;    
      function nameOfFunction(){
          if(#{trendAnalysisLocationReportController.model.showTargetLine}){
               this.cfg.series[this.cfg.data.length-1].pointLabels = {
                  show: false
               };
          }
      }
  &lt;\script&gt;  
  </code></pre>
  
  <p>the method in the if sentence is a java method with a boolean return value.
  the error is shown when hovering </p>
  
  <blockquote>
    <p>'#{'</p>
  </blockquote>
  
  <p>if Had a look at the following questions, before : 
  <a href="https://stackoverflow.com/q/2694648/3430698">Expected Expression</a>
  <a href="https://stackoverflow.com/q/15393935/3430698">boolean in an if statement</a></p>
  
  <p>But didnt get me a solution.
  what Iam I doing wrong ?</p>