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 138513 - JSF Code completion for Spring 2.5 annotated beans
Summary: JSF Code completion for Spring 2.5 annotated beans
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-27 18:02 UTC by marioko
Modified: 2016-07-07 08:54 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description marioko 2008-06-27 18:02:23 UTC
In Spring 2.5 framework we can annotate classes with @Component, this automatically create a managed spring bean, this
is very usefull in JSF projects when we add:

<variable-resolver>
      org.springframework.web.jsf.DelegatingVariableResolver
</variable-resolver>

To faces-config.xml, we can use @Component and any spring bean in JSF pages using EL. For example

@Component("myBean")
@Scope("request")
public void MyBean{
      public String someAction(){
              return "action"
      }
}

In any jsf web file we can use EL to invoke that action

<h:commandButton action="#{myBean.someAction}/>

Its will be very nice that in jsf files we can get a code completion for this kind of beans..
Comment 1 marioko 2008-06-27 18:07:24 UTC
Mmmm when i said "we can use @Component and any spring bean" i mean any bean that is in the spring container, that bean
could be added using the common xml.
Comment 2 Martin Balin 2016-07-07 08:54:53 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss