[
https://jira.jboss.org/jira/browse/JBIDE-3688?page=com.atlassian.jira.plu...
]
Viacheslav Kabanovich commented on JBIDE-3688:
----------------------------------------------
Strings and numbers are not validated. The problem is the fact that access to collection
or map was not resolved correctly. In the example, 'actors' has type
List<Actor>. It means that expression 'actors[0]' should be resolved as a
value of type Actor. Instead, resolver tried to find a member '0' in
List<Actor>.
Seam EL validator should not validate Strings and numbers.
----------------------------------------------------------
Key: JBIDE-3688
URL:
https://jira.jboss.org/jira/browse/JBIDE-3688
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: numbers.jpg, Strings.jpg
1. Help -> Project Examples -> Seam -> DVD Store Example
2. Download that example.
3. Open /dvdstore/WebContent/browse.xhtml
4. See screenshot. There is a warning marker: "0 can not be resolved " for
#{product.actors[0].name} (Line 106)
We should not validate numbers.
5. Open pages.xml
6. See scrennshot. There is a warning marker: "'org.jboss.seam.NotLoggedIn'
can not be resolved " for #{messages['org.jboss.seam.NotLoggedIn']} (Line
51)
We should not validate Strings.
--
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