JSF2 : inject service objects to managedbean from Spring?

前端 未结 2 918
余生分开走
余生分开走 2021-01-05 07:46

I have tested this, trying to inject an service object to a @ManagedBean, but it failed with a nullpointerexception, being the userService is null.

I am currently us

2条回答
  •  孤城傲影
    2021-01-05 08:27

    missing variable resolver in faces-config.xml

      
        
        org.springframework.web.jsf.DelegatingVariableResolver 
        
      
    

    missing RequestContextListener listener in web.xml

     
      
        org.springframework.web.context.request.RequestContextListener
        
      
    

提交回复
热议问题