[jbosstools-issues] [JBoss JIRA] Updated: (JBIDE-999) var attributes in JSF datatable not recognized by Seam Validator

Max Andersen (JIRA) jira-events at lists.jboss.org
Fri Feb 1 03:58:59 EST 2008


     [ http://jira.jboss.com/jira/browse/JBIDE-999?page=all ]

Max Andersen updated JBIDE-999:
-------------------------------

    Description: 
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.

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.

Original Jacob's description:
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.

  was:
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.

Original Jacob's description:
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.


updating so the actual problem is also in description.

> 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.
> 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.
> Original Jacob's description:
> 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

        



More information about the jbosstools-issues mailing list