[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
Thu Aug 30 13:09:32 EDT 2012


     [ https://issues.jboss.org/browse/JBIDE-12441?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Kazakov updated JBIDE-12441:
-----------------------------------

    Fix Version/s: 4.0.0.Alpha2
                       (was: 4.0.0.Alpha1)

    
> 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


More information about the jbosstools-issues mailing list