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

There are issues with the feature "code completion now respect "var" attributes in e.g. h:dataTable"

XMLWordPrintable

    • Documentation (Ref Guide, User Guide, etc.)

      Having the following code:

      <h:dataTable value="#

      {myBean.users}

      " var="user">
      <h:column>
      <h:outputText value="#{user" />
      </h:column>
      </h:dataTable>

      public class MyBean {

      private List<User> users;
      //getters and setters for users
      }

      public class User {

      private String userName;
      //getter and setter for userName
      }

      --------------------------
      When the project is seam project and the class MyBean is annotated with @Name("myBean"), the CA in the dataTable works as expected.

      When the project is seam project and the class MyBean is NOT annotated with @Name, but it's defined as managed bean in faces-config.xml there is CA only for the var of the datatable, but not for the properties of the var - see pic1.jpg

        1. pic1.jpg
          pic1.jpg
          105 kB
        2. pic2.jpg
          pic2.jpg
          90 kB

            scabanovich Viacheslav Kabanovich (Inactive)
            amitev_jira Adrian Mitev (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: