[jbosstools-issues] [JBoss JIRA] (JBIDE-12441) Wrong cursor position after using code assist for EL with '[]'

Alexey Kazakov (JIRA) jira-events at lists.jboss.org
Fri Aug 17 16:02:14 EDT 2012


Alexey Kazakov created JBIDE-12441:
--------------------------------------

             Summary: 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: 3.4.0.M1
            Reporter: Alexey Kazakov
            Assignee: Victor Rubezhny
             Fix For: 3.4.0.M1


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: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list