Integrating JSF with Spring

后端 未结 1 909
不知归路
不知归路 2021-01-07 02:21

I haven\'t implemented any code, I\'m still working the overall architecture for a new application and this going to be the first time I use JSF+Spring.

相关标签:
1条回答
  • 2021-01-07 02:46

    The "glue" is the spring ELResolver, which you must configure in your faces-config.xml:

    <application>    
        <!--
            This is the JSF 1.2 ELResolver that delegates to the Spring root
            WebApplicationContext resolving name references to Spring-defined
            beans.
        -->
        <el-resolver>
             org.springframework.web.jsf.el.SpringBeanFacesELResolver
        </el-resolver>
     </application>
    

    This means that each #{bean.property} is handled by the resolving the bean in the spring context.

    0 讨论(0)
提交回复
热议问题