[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-1296) Make the editor aware of Local var variables in JSF datatables

Max Andersen (JIRA) jira-events at lists.jboss.org
Tue Nov 13 11:08:50 EST 2007


    [ http://jira.jboss.com/jira/browse/JBIDE-1296?page=comments#action_12387325 ] 
            
Max Andersen commented on JBIDE-1296:
-------------------------------------

Yes - we are aware of that one (also in jira somewhere)

My idea of solving that is that the validator should provide the option for you to specify EL variable names we should just always ignore for that project/page, but even better we should collect all those places where parameters are actually declared (e.g. when a page is included or defined in pages.xml) then we would just automatically add that as possible variable in that specific page (or project if the include is non-specific)

But I am considering wether we should disable the "unresolved" EL warnings for GA until we implement solutions for the above.

> 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
>             Fix For: 2.0.1, 2.1
>
>
> 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

        



More information about the jbosstools-issues mailing list