Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-23891

EL syntax error: Expecting Expression on EL string concat operator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • 4.30.x
    • 4.4.2.Final
    • jsf
    • None
    • Windows 10
      Eclipse Neon.2 (4.6.2)
      JBoss Tools 4.4.2.Final (Marketplace)
      JavaEE 7

    • Hide
      <!DOCTYPE html>
      <html
      	xmlns="http://www.w3.org/1999/xhtml"
      	xmlns:h="http://xmlns.jcp.org/jsf/html"
      >
      <h:body>
      	<h:outputText value="#{'foo' += 'bar'}" />
      </h:body>
      </html>
      
      Show
      <!DOCTYPE html> <html xmlns= "http: //www.w3.org/1999/xhtml" xmlns:h= "http: //xmlns.jcp.org/jsf/html" > <h:body> <h:outputText value= "#{ 'foo' += 'bar' }" /> </h:body> </html>
    • -

      The EL 3.0 specification [1] states

      String Concatenation Operator - A += B
      To evaluate A += B
      ■ Coerce A and B to String.
      ■ Return the concatenated string of A and B.

      Used on a JSF Tag like

      <h:outputText value="#{'foo' += 'bar'}" />
      

      leads to following warning:

      EL syntax error: Expecting expression.

      on the = part of the += operator.

      [1] http://download.oracle.com/otn-pub/jcp/el-3_0-fr-eval-spec/EL3.0.FR.pdf

              Unassigned Unassigned
              thatsich@mail.de Tran Minh Do (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: