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

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

    Details

    • Sprint:
      devex #183 May 2020
    • Steps to Reproduce:
      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

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jeffmaury Jeff MAURY
                Reporter:
                ivanbrizuela Iván Brizuela
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: