[
https://issues.jboss.org/browse/JBIDE-6135?page=com.atlassian.jira.plugin...
]
Alexey Kazakov commented on JBIDE-6135:
---------------------------------------
Test case:
1. Create JSF 2 KickStart project
2. Modify User.java:
{code}
package demo;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
@ManagedBean(name="user")
@SessionScoped
public class User {
private Map<String, User> users = new HashMap<String, User>();
private Map<String, Collection> list = new HashMap<String, Collection>();
private String name;
public User() {
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String sayHello() {
return "greeting";
}
public Map<String, User> getUsers() {
return users;
}
public void setUsers(Map<String, User> users) {
this.users = users;
}
public Map<String, Collection> getList() {
return list;
}
public void setList(Map<String, Collection> list) {
this.list = list;
}
}
{code}
3. Open inputname.xhtml
4. Add <h:outputText value="#{user.users['xyz'].name}" />
5. There is no problem
6. Add <h:outputText value="#{user.list['xyz'].syze()}" />
7. There is no problem
EL validation failes for valid JSF-EL
-------------------------------------
Key: JBIDE-6135
URL:
https://issues.jboss.org/browse/JBIDE-6135
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: JSF
Affects Versions: 3.1.0.GA
Environment: Jboss Tools 3.1 GA, Facelets, JSF 1.2, Eclipse 3.5
Reporter: nimo stephan
Assignee: Alexey Kazakov
Labels: new_and_noteworthy
Fix For: 3.4.0.M1
When using the following valid EL in XHTML:
#{myBean.myMap['hobby'].size}
the Jboss tools validator throws the following exception:
'size' cannot be resolved.
Jboss tools should treat such expressions not as an error.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira