JSF AppFuse 3 大配置

1、JSF初试化在哪里?
web.xml

     < listener >
            
<!--  Listener, that does all the startup work (configuration, init).  -->
             
< listener-class > org.apache.myfaces.webapp.StartupServletContextListener </ listener-class >
    
</ listener >

2、Spring初试化在哪里?
web.xml
      < listener >
            
<!--  AppFuse 中nnd没这么直接  -->
            
< listener-class > org.springframework.web.context.ContextLoaderListener </ listener-class >
    
</ listener >

3、JSF的怎么能注入依赖Spring的Bean?
jfs-config.xml
< variable-resolver >
            org.springframework.web.jsf.DelegatingVariableResolver
</ variable-resolver >

你可能感兴趣的:(spring,xml,Web,JSF,Appfuse)