[jbosstools-issues] [JBoss JIRA] Created: (JBIDE-1764) If @Factory method is getter and doesn't have "value" then use JavaBean property name as name of context variable for this factory.

Alexey Kazakov (JIRA) jira-events at lists.jboss.org
Fri Feb 8 10:47:03 EST 2008


If @Factory method is getter and doesn't have "value" then use JavaBean property name as name of context variable for this factory.
-----------------------------------------------------------------------------------------------------------------------------------

                 Key: JBIDE-1764
                 URL: http://jira.jboss.com/jira/browse/JBIDE-1764
             Project: Tools (JBoss Tools)
          Issue Type: Bug
          Components: Seam
    Affects Versions: 2.0.0.GA
            Reporter: Alexey Kazakov
         Assigned To: Viacheslav Kabanovich
             Fix For: 2.1


For example:

@Factory()
public Object getUser() {
...
}

"user" is a name of context variable for this factory.

Testcase:
EXECUTE: Create seam project.
EXECUTE: Open Authenticator.java
EXECUTE: Add @Factory() public String getUserName() { return "Vasya Pupkin"; }
EXECUTE: Open home.xhtml
EXECUTE: Add #{}
EXECUTE: Ctrl+Space on #{|
ASSERT: There is "userName" string among proposals.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list