The trouble is, the Spring variable resolver relies on the FacesContext to locate the Spring container.
其中的问题是,Spring变量解析器依赖于FacesContext定位Spring容器。
If the FacesContext isn「t available, then the variable resolver can」t access any of the Spring beans.
如果FacesContext不可用,则变量解析器就不能访问任何的Springbean。
The spring-web package, part of the spring distribution, ships with a custom JSF variable resolver to establish this bridge.
spring - web包是spring发布的一部分,附带有自定义J SF变量解析器,可构建此桥梁。
The Spring variable resolver is configured in the faces-config.xml file using the variable resolver node, as shown in Listing 1.
Spring变量解析器是使用变量解析器节点在faces - config . xml文件中配置的,如清单1所示。
The native JSF variable resolver first looks for a JSF managed bean that matches the name courses.
本地JSF变量解析器首先查找与名称courses相匹配的jsf托管bean。
Spring comes with a variable resolver implementation class that lets you reference Spring managed beans in JSF expressions.
Spring附带了一个变量解析器实现类,允许您在JSF表达式中引用Spring托管Bean。
You first need to ensure that you have the Spring-JSF integration configured, which is handled by a custom variable resolver included with the Spring framework (see Resources).
首先需要确保已经配置了Spring-JSF集成,它由Spring框架附带的一个定制变量解析器进行处理(见参考资料)。