[
https://issues.jboss.org/browse/JBIDE-12630?page=com.atlassian.jira.plugi...
]
Victor Rubezhny updated JBIDE-12630:
------------------------------------
Description:
EL Resolver incorrectly processes EL which uses java.util.Map
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 <ui:param name="group" value="#{user}" /> inside
<ui:composition> (line #9)
5. Save the file.
6. Open common.xhtml
7. Add <h:outputText value="#{group.users['admin'].name}" />
8. Try Ctrl+Click on users. java.util.Iterator is open instead of User.getUsers()
was:EL Resolver incorrectly processes EL which uses java.util.Map
EL Resolver incorrectly processes EL which uses java.util.Map
-------------------------------------------------------------
Key: JBIDE-12630
URL:
https://issues.jboss.org/browse/JBIDE-12630
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: jsp/jsf/xml source editing
Affects Versions: 4.0.0.Alpha1
Reporter: Victor Rubezhny
Assignee: Victor Rubezhny
Fix For: 4.0.0.Alpha2
EL Resolver incorrectly processes EL which uses java.util.Map
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 <ui:param name="group" value="#{user}" /> inside
<ui:composition> (line #9)
5. Save the file.
6. Open common.xhtml
7. Add <h:outputText value="#{group.users['admin'].name}" />
8. Try Ctrl+Click on users. java.util.Iterator is open instead of User.getUsers()
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira