English 中文(简体)
如何更新 GlassFish 的 Mojarra 版本
原标题:How to update Mojarra version in GlassFish

我要更新我的JSF应用程序,使用Mojarra 2.1.8版本。

<dependency>
    <groupId>org.glassfish</groupId>
    <artifactId>javax.faces</artifactId>
    <version>2.1.8</version>
</dependency> 

我还添加了 JSF 仓库。 我软件包与 Mojarra 2. 1. 8 版本的2. 1.8 已经成功构建。 但是, 当我打开 GlassFish 日志时, 我看到已经安装了 Mojarra 2.1.6 版本 。 我错过了什么? 我是否需要在 GlassFish 服务器上做一些配置?

最佳回答

GlassFish 本身已经用 JSF 捆绑的船舶获得默认的分类排位优于 Webap 捆绑的船舶 。 您基本上需要告诉 GlassFish 使用 Webap 捆绑的 JSF 。

编辑 webapp s /WEB-INF/glassfish-web.xml (或 /WEB-INF/sun-web.xml ,如果你再使用第一批GF3版本之一),添加以下两个条目:

<class-loader delegate="false" />
<property name="useBundledJsf" value="true" />

GlassFish 将使用被捆绑的网络应用程序 JSF 。

或者,如果您对GlassFish拥有完全的行政管理控制权,那么您也可以在 /glassfish/molules 目录中复制该目录,替换旧版本,以便将其应用到所有网络应用程序中。

问题回答

暂无回答




相关问题
JSF a4j:support with h:selectManyCheckbox

I m having trouble with a JSF selectManyCheckbox and A4J support. The purpose is to run some action when a checkbox is selected. This works perfectly in Firefox. Yet, when testing in any IE (ie6 / ie7 ...

Mojarra for JSF Encoding

Can anyone teach me how to use mojarra to encode my JSF files. I downloaded mojarra and expected some kind of jar but what i had downloaded was a folder of files i don t know what to do with

如何拦截要求终止?

在共同基金中,如果用户要求终止,就需要采取一些行动。 我需要某种拦截器,但我不知道如何这样做。 我需要帮助。 增 编

ICEFaces inputFile getting the file content without upload

Is there any way of just getting the content of the browsed file without any upload/file transfer operations? I currently use ICEFaces inputFile component but I do not need the default uploading ...

Weird behaviour of h:commandLink action (MethodExpression)

I have two JSPs where I am displaying some info from database in a h:dataTable. One of them is showing all the info, and one of them user specifically. I have showXML.jsp that shows the "XML" column ...

How to correctly use ResultSet with h:dataTable

The problem is, that after displaying the ResultSet with <h:dataTable>, the connection is left open. If I close it, it closes the ResultSet too. I m thinking about copying the ResultSet data ...

热门标签