Menu

how to get JSF manager bean in spring?

Users
wmding
2007-05-15
2013-04-08
  • wmding

    wmding - 2007-05-15

    hello
         i use spring aop in my project. but i can not get JSF manager bean in spring.

    <listener>
        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
      </listener>
      <listener>
        <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
        </listener>
      <listener>
          <listener-class>de.mindmatters.faces.spring.context.ContextLoaderListener</listener-class>
      </listener>

    <bean name="sdfsdfsdf" class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator">
            <property name="beanNames">
                <list>
                    <value>userManager</value>
                </list>
            </property>
            <property name="interceptorNames">
                <list>
                    <value>authAdvisor</value>
                </list>
            </property>
        </bean>

    userManager is JSF Manager bean.
    but it is not exist in spring context.

    what can i do for it.

     
    • Andreas Kuhrwahl

      Hi,

      Spring and JSF-Spring builds up hierarchical contexts though context a can get in touch with context b but not vice versa. so in your configuration the aop proxy creator is managed by context b and the jsf manager from context a. the proxy generator knows nothing about the manager.

      Andy

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.