This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 183959

Summary: add code completion in .xhtml files for annotated spring beans.
Product: javaee Reporter: jholder
Component: SpringAssignee: Alexey Butenko <alexeybutenko>
Status: RESOLVED DUPLICATE    
Severity: normal CC: marfous
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description jholder 2010-04-13 02:51:22 UTC
As requested in http://forums.netbeans.org/topic25928.html, I am adding an enhancement request for Netbeans.

Please add support for bean/component resolution in EL code completion for jsf files (.xhtml/.jsf/etc) for spring annotated beans.

As an example, gven the following class:

@Component("helper")

public class Helper {
    private int count;

    public void work() {
        this.count++;
    }

    public void setCount(int count){
        this.count = count;
    }

    public int getCount(){
        return count;
    }
}


in an .xhtml file, if i entered "#{helper.", I would expect "count" to be one of the code completion suggestions to appear.

Thanks!
Comment 1 Martin Fousek 2011-05-19 14:13:05 UTC
Implemented in http://hg.netbeans.org/web-main/rev/7ac30ca4fff0.

For now there is support for default Spring beans annotations: Component,
Controller, Repository, Service and only implicit naming or naming defined by
annotation value.

*** This bug has been marked as a duplicate of bug 196690 ***