2011-02-26 156 views
1

在我們的JSF 2,彈簧3的Web應用程序,我們必須在web.xml中進行以下設置項的整合春季和JSFJSF 2和Spring集成3

<context-param> 
    <param-name>contextConfigLocation</param-name> 
    <param-value>/WEB-INF/config/spring/applicationContext.xml</param-value> 
</context-param> 

<listener> 
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> 
</listener> 

和它的作品!

然而,通幽幾個JSF &春天教程會後,我認爲有必要,除了的ContextLoaderListener定義RequestContextListener

我們在我們的應用程序中都要求範圍和會話範圍bean。

都是聽衆嗎?沒有定義RequestContextListener的後果是什麼?

回答