[
https://issues.jboss.org/browse/JBIDE-12441?page=com.atlassian.jira.plugi...
]
Victor Rubezhny commented on JBIDE-12441:
-----------------------------------------
JUnit Test Case
org.jboss.tools.jsf.jsp.ca.test.CAForJSF2BeanMapValuesTest.testCursorPositionAfterApplyMethodProposalOnELWithSquareBrackets()
is fixed (Not failing in latest available builds at Jenkins - #36-#40)
Wrong cursor position after using code assist for EL with
'[]'
--------------------------------------------------------------
Key: JBIDE-12441
URL:
https://issues.jboss.org/browse/JBIDE-12441
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: jsp/jsf/xml source editing
Affects Versions: 4.0.0.Alpha1
Reporter: Alexey Kazakov
Assignee: Victor Rubezhny
Fix For: 4.0.0.Alpha2
1. Create JSF 2 KickStart project
2. Modify User.java:
{code}
package demo;
import java.util.HashMap;
import java.util.Map;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
/**
* Created by JBoss Tools
*/
@ManagedBean(name="user")
@SessionScoped
public class User {
private Map<String, User> users = new HashMap<String, User>();
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;
}
}
{code}
3. Open inputname.xhtml
4. Add <h:outputText value="#{user.users[''].}" />
5. Ctrl+Space on #{user.users[''].|}
6. Select "name"
7. So now we have #{user.users[''].name}. That's good. But the cursor is on
the wrong place: #{user.users[''].|name}. It should be here:
#{user.users[''].name|}
--
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