[
https://issues.jboss.org/browse/JBIDE-9761?page=com.atlassian.jira.plugin...
]
Alexey Kazakov updated JBIDE-9761:
----------------------------------
Description:
The following beans has the same name "user":
{code}
@ManagedBean
public class User {}
{code}
{code}
@ManagedBean(name="user")
public class AnotherUser {}
{code}
{code}
@ManagedBean(name="")
public class User {}
{code}
was:
The following beans has the same name "user":
{code}
@MamanedBean
public class User {}
{code}
{code}
@MamanedBean(name="user")
public class AnotherUser {}
{code}
{code}
@MamanedBean(name="")
public class User {}
{code}
Steps to Reproduce:
EXECUTE: Create JSF 2 KickStart project.
EXECUTE: Open User.java
EXECUTE: Change @ManagedBean(name="user") to @MamanedBean
EXECUTE: Open inputname.xhtml
EXECUTE: Ctrl+Space on #{user.|}
ASSERT: JBT suggests name and sayHello() (now it fails)
EXECUTE: Change @ManagedBean(name="user") to @MamanedBean(name="")
EXECUTE: Ctrl+Space on #{user.|} (now it fails)
ASSERT: JBT suggests name and sayHello()
EXECUTE: Change @ManagedBean(name="user") to
@MamanedBean(name="anotherUser")
EXECUTE: Ctrl+Space on #{user.|}
ASSERT: JBT *doesn't* suggest name and sayHello()
was:
EXECUTE: Create JSF 2 KickStart project.
EXECUTE: Open User.java
EXECUTE: Change @MamanedBean(name="user") to @MamanedBean
EXECUTE: Open inputname.xhtml
EXECUTE: Ctrl+Space on #{user.|}
ASSERT: JBT suggests name and sayHello() (now it fails)
EXECUTE: Change @MamanedBean(name="user") to @MamanedBean(name="")
EXECUTE: Ctrl+Space on #{user.|} (now it fails)
ASSERT: JBT suggests name and sayHello()
EXECUTE: Change @MamanedBean(name="user") to
@MamanedBean(name="anotherUser")
EXECUTE: Ctrl+Space on #{user.|}
ASSERT: JBT *doesn't* suggest name and sayHello()
Thanks Nick! Fixed.
JSF Tools should provide code completion for
@ManagedBean(name="")
------------------------------------------------------------------
Key: JBIDE-9761
URL:
https://issues.jboss.org/browse/JBIDE-9761
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: JSF
Affects Versions: 3.3.0.M3
Reporter: Alexey Kazakov
Assignee: Viacheslav Kabanovich
Priority: Critical
Fix For: 3.3.0.M4
The following beans has the same name "user":
{code}
@ManagedBean
public class User {}
{code}
{code}
@ManagedBean(name="user")
public class AnotherUser {}
{code}
{code}
@ManagedBean(name="")
public class User {}
{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira