-
Feature Request
-
Resolution: Done
-
Critical
-
2.0.0.Beta3
-
None
Named "var" attributes in a JSF datatable are not being recognized and are therefore evaluated by the Seam Validator as an Invalid Expression. For instance if I have the following:
Code:
...
<h:dataTable var="entry" value="#
">
<h:column>
<h:outputText value="#
</h:column>
...
myList is recognized but entry is not. #{entry.value}
is shown as an Invalid Expression.
What we will do:
1. When validator tries to resolve Seam EL in jsp/xhtml we should go up a dom tree and find all elements with "var" attribute.
2. If EL contains name from "var" then we look for "value" attribute.
3. Then we parse "value" attribute and translate it to a Seam context variable.
4. Use the found context variable for validating Seam EL.
5. We will add a new rule in seam validation preferences to let user switch off/on this feature.
Here are a few limitations:
1. It will work only for seam projects. But we don't have any JSF validation in jsp/xhtml.
2. We wount recognize any special jsf components with "var". Just looking for every var/value attributes of all parent dom elements.
- blocks
-
JBIDE-1296 Make the editor aware of Local var variables in JSF datatables
- Closed
- is duplicated by
-
JBIDE-1174 vars defined in <ui:repeat/>, <rich:dataTable/> or <h:dataTable/> throw a warning
- Closed
- is related to
-
JBIDE-1803 Seam Code Assist does not recognize "var" attributes in JSF tags.
- Closed
-
JBIDE-1814 Seam EL Hyper Links don't not recognize "var" attributes in JSF tags.
- Closed