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

EL is not validated if "var" attribute is used

XMLWordPrintable

      1. Create JSF 2 KickStart project.
      2. Open User.java
      3. Add the following method to the class:

      public List<String> getString() {
          return new ArrayList<String>();
      }
      

      4. Open inputname.xhtml
      5. Add the following method to the page:

      <h:dataTable value="#{user.string}" var="test">
              <h:outputText value="#{test.broken}" />
      </h:dataTable>
      

      6. Save the file.
      7. ASSERT: "broken" is marked with warning that it cannot be resolved.
      FAILURE: "broken" is marked only if you enable validation of EL variables (Windows->Preferences->JBoss Tools->Web->Expression Lenguage->Validation->Variable cannot be resolved->Warning).

        1. testProposal.png
          testProposal.png
          75 kB
        2. testProposal.png
          testProposal.png
          275 kB
        3. validationSettings.png
          validationSettings.png
          35 kB

            alexeykazakov Alexey Kazakov
            alexeykazakov Alexey Kazakov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: