How to download Mojarra JSF nightly builds

孤街浪徒 提交于 2019-12-07 13:53:19

问题


I was glad to see that f:ajax now have built in delay support. Not so glad that it doesn't work though. There's a bug that makes it fail, seemingly caused by that the method recieving the specified delay expects a number and not a string.

Anyway, it will be fixed in version 2.2.4 but I have no idea how to get that version or if it's even possible before it's publicly released.

My question is if someone can explain how to get the nightly build of version 2.2.4 or if there's some workaround.


回答1:


You can get the daily snapshot in flavor of loose library, sources and javadoc JAR files from here:

  • jsf-api snapshot
  • jsf-impl snapshot

Just open the folder to see the JARs (currently, it's 2.2.4-SNAPSHOT/). Please note that there's no single javax.faces.jar flavor, you really need those two loose JAR files together.

If you happen to use Maven, here are the repository and dependency coordinates:

<repository>
    <id>jvnet-nexus-snapshots</id>
    <name>jvnet-nexus-snapshots</name>
    <url>https://maven.java.net/content/repositories/snapshots/</url>
</repository>

<dependency>
    <groupId>org.glassfish</groupId>
    <artifactId>javax.faces</artifactId>
    <version>2.2.X-SNAPSHOT</version>
</dependency>

(where you need to substitute the X with the desired sub-version yourself, which is currently thus 4)

See also:

  • Mojarra download details

Update: as to upgrading GlassFish, in order to upgrade GlassFish 3/4 whereby the single javax.faces.jar is been replaced with the two jsf-api.jar and jsf-impl.jar files, don't forget to edit the /domains/[domainname]/config/default-web.xml accordingly to replace the single JAR entry by the two JAR entries in system-jar-includes initialization parameter.

An alternative is to bundle the JARs in webapp's /WEB-INF/lib and tell GlassFish to use webapp-bundled JSF instead of its own bundled JSF by adding the following lines to /WEB-INF/glassfish-web.xml:

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


来源:https://stackoverflow.com/questions/18763138/how-to-download-mojarra-jsf-nightly-builds

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!