[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-3686) Seam validator doesn't highlight errors properly.

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Fri Jan 30 10:30:44 EST 2009


    [ https://jira.jboss.org/jira/browse/JBIDE-3686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12450410#action_12450410 ] 

Viacheslav Kabanovich commented on JBIDE-3686:
----------------------------------------------

It happens because 'topProducts' could not be correctly resolved. It was traced to its factory definition in components.xml, but its value expression #{topQuery.resultList}, but that expression remained unresolved, because method SeamExpressionResolver.getMemberInfoByVariable() only tries to find a variable named 'topQuery.resultList' and does not check possible invocation on 'topQuery'. 
When this problem was fixed, for this specific example expression #{topQuery.resultList} still cannot be resolved to parameterizes type List<Product>, because resultList is of generic List type. It means that in #{item.productId} productId will remain unresolved and the problem of correct highlight is still relevant. The cause happens to be a simple arithmetic error in SeamELCompletionEngine.resolveELOperand.

> Seam validator doesn't highlight errors properly. 
> --------------------------------------------------
>
>                 Key: JBIDE-3686
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-3686
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: jsp/jsf/xml source editing, Seam
>    Affects Versions: 3.0.0.CR2
>            Reporter: Alexey Kazakov
>            Assignee: Viacheslav Kabanovich
>             Fix For: 3.0.0.GA
>
>         Attachments: screenshot-1.jpg
>
>
> 1. Help -> Project Examples -> Seam -> DVD Store Example
> 2. Download that example.
> 3. Open /dvdstore/WebContent/browse.xhtml
> 4. See screenshot. There are wrong highlights in some marker.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list