如何在Weblogic 10.3.x上利用EL 2.2功能? [英] How to leverage EL 2.2 functionality on Weblogic 10.3.x?

查看:156
本文介绍了如何在Weblogic 10.3.x上利用EL 2.2功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了Weblogic 10.3.5。我在服务器上部署了一个带有JSF 2.0和JSTL 1.2的WAR。但我也需要EL 2.2功能。我需要什么JAR?如果有人可以从头开始指导我一步一步的指导,那就太好了,因为我一直想把它设置好几个小时而没有运气。

I have Weblogic 10.3.5 installed. I deployed a WAR with JSF 2.0 and JSTL 1.2 on the server. But I need EL 2.2 functionality as well. What JARs do I need? It'd be great if someone can point me to a step-by-step guide from scratch as I've been trying to set this up for hours with no luck.

推荐答案

最简单的方法是删除 jboss-el.jar ,这是一个与EL 2.1兼容的实现,提供相同的功能作为EL 2.2,在 / WEB-INF / lib 并告诉JSF实现使用该EL实现。如何做到这一点取决于所使用的JSF实现。对于Mojarra,您需要将以下上下文参数添加到 web.xml

Easiest is to drop jboss-el.jar, which is an EL 2.1 compatible implementation offering the same features as EL 2.2, in /WEB-INF/lib and tell the JSF implementation to use that EL implementation instead. How to do that depends on the JSF implementation being used. In case of Mojarra, you need to add the following context parameter to the web.xml:

<context-param>     
    <param-name>com.sun.faces.expressionFactory</param-name>
    <param-value>org.jboss.el.ExpressionFactoryImpl</param-value>   
</context-param>

在MyFaces的情况下,它是以下上下文参数:

And in case of MyFaces, it's the following context parameter:

<context-param>     
    <param-name>org.apache.myfaces.EXPRESSION_FACTORY</param-name>
    <param-value>org.jboss.el.ExpressionFactoryImpl</param-value>   
</context-param>



参见:



查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆