[
http://jira.jboss.com/jira/browse/JBIDE-999?page=comments#action_12397389 ]
Alexey Kazakov commented on JBIDE-999:
--------------------------------------
What we can do for first version:
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. I think we should add a new rule in seam validation preferences to let user switch
off/on this feature.
Btw, it will be pretty easy to support code assistant for Seam EL using the same code.
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.
If we want to be aware of particular tags then we would use our Knowledge Base plugin but
it will cost us perfomance.
Use of KB for every jsp/xhtml with "var" could be a very slow process in a big
project.
var attributes in JSF datatable not recognized by Seam Validator
----------------------------------------------------------------
Key: JBIDE-999
URL:
http://jira.jboss.com/jira/browse/JBIDE-999
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: JSF
Affects Versions: 2.0.0.Beta3
Reporter: Jacob Orshalick
Assigned To: Alexey Kazakov
Priority: Critical
Fix For: 2.1
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="#{myList}">
<h:column>
<h:outputText value="#{entry.value}" />
</h:column>
...
myList is recognized but entry is not. #{entry.value} is shown as an Invalid Expression.
--
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