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

Invalid 'EL syntax error: Expecting Expression' on Set initialization

    XMLWordPrintable

Details

    • devex #183 May 2020
    • Hide
      <!DOCTYPE html>
      <html xmlns="http://www.w3.org/1999/xhtml"
      	xmlns:h="http://xmlns.jcp.org/jsf/html">
      <h:body>
      	<!-- Intialize a Set with two elements -->
      	<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> <!-- Intialize a Set with two elements --> <h:outputText value= "#{{ 'foo' , 'bar' }}" /> </h:body> </html>

    Description

      EL allows dynamic creation of collection objects:

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

      The syntax is valid, but JBT reports the warning "EL syntax error: Expecting expression."

      The same error was reported for List constructions in: JBIDE-17987

      Attachments

        Activity

          People

            jmaury@redhat.com Jeff MAURY
            ivanbrizuela Iván Brizuela (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: