Cannot inject bean into JSF managed bean with specific name in spring -


in following snippet, when give @managedbean specific name, userservice , authenticationservice not injected. if use @managedbean without name, injection works fine. idea?

@component @managedbean(name="user") // injection doesn't work //@managedbean // injection works @sessionscoped public class usermanagedbean implements serializable {      // spring user service injected...     @autowired     userservice userservice;     @autowired     private authenticationservice authenticationservice; 

when use @managedbean(name="user") try specify same name component , see if works.

@component("user") 

Comments