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

Make the editor aware of Local var variables in JSF datatables

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Duplicate
    • Icon: Major Major
    • 2.0.1, 2.1.0.CR1
    • None
    • jsf
    • None

      This request comes as two items related to the same issue. There are plenty of times when a JSF page will use a local variable for a datatable:

      <h:dataTable values="#

      {myResults}

      " var="v_localVar">
      <h:column>
      <h:outputText value="#

      {v_localVar.id}

      "/>
      </h:column>
      </h:dataTable>

      The problem is that in the text editor for the JSF page, references to v_localVar come up as warnings since it cannot see the declaration of v_localVar. In addition, v_LocalVar does not come up in the code suggestions. The reason I feel this is an important issue is because every single JSF table has this problem, and developers cannot use the code assist to specify values that are obtained from that local var. Generally speaking most pages are either a data entry form/display, or a list of items in a table using a local var. That means that you lose the code suggest ability for nearly 50% of your JSF code because it uses the locally declared var in the JSF datatable.

      The problem also occurs when you use the <s:selectItems var="v_item"> tag from the seam libraries.

      As a result a number of pages are marked with warnings due to the IDE not recognizing this source for variables making it easier for genuine warnings to be missed.

            Unassigned Unassigned
            delphi'sghost_jira Andy Gibson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: