How to download Mojarra JSF nightly builds

3.3k views Asked by At

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

There are 1 answers

9
BalusC On BEST ANSWER

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

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:


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" />