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

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • 4.30.x
    • 4.4.2.Final
    • jsf
    • None
    • 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>
    • -

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: