Make the editor aware of Local var variables in JSF datatables
--------------------------------------------------------------
Key: JBIDE-1296
URL:
http://jira.jboss.com/jira/browse/JBIDE-1296
Project: JBoss Tools
Issue Type: Feature Request
Components: JSF
Environment: Boss Tools nightly from 11/11/2007, Win XP SP2, JBoss 4.2.2, Seam
2.0 project , Eclipse 3.3.1.1
Reporter: Andy Gibson
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira