How to download Mojarra JSF nightly builds
Asked Answered
S

1

3

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.

Sensualist answered 12/9, 2013 at 11:34 Comment(0)
W
5

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" />
Wachtel answered 12/9, 2013 at 11:47 Comment(9)
Thanks. I have limited knowledge (read: no idea) of how to use repository or dependencies. I use Netbeans 7.3.1 and it has done most things for me already. Only thing I did was to delete the previous javax.faces.jar in the modules directory of Glassfish and replace it with the jar for 2.2.3. Doing the same with the two jars you pointed to didn't work. Can you point me in the right direction to start using them?Sensualist
Maven is a dependency management framework. If you don't use Maven (i.e. you don't have a pom.xml file wherein you can declare necessary dependencies by XML which will then automatically be downloaded by Maven, but you're manually downloading and managing loose JAR files), then just ignore that part and keep on manually carrying around JARs.Wachtel
Ok. I don't use Maven. Can you tell me how to get it working with manually placing the Jars or shall I create a new question?Sensualist
Sorry, I missed that part, you need to edit /domains/[domainname]/config/default-web.xml to replace "javax.faces.jar" entry by "jsf-api.jar" and "jsf-impl.jar" entries (rename the downloaded snapshot JAR files accordingly).Wachtel
Done. I made changes according to your instructions, but it still loads with 2.2.0. I can see the following line in the server log: Initializing Mojarra 2.2.0 ( 20130502-2118 https://svn.java.net/svn/mojarra~svn/tags/2.2.0@11930) for context '/mx_mk6', so maybe there are more config files that needs to be changed?Sensualist
Did you physically remove the javax.faces.jar? Well, then it's probably still in GlassFish's cache / work folder. Cleanup it as well.Wachtel
That worked (it found version 2.2.4), although Netbeans started to complain about files missing. I'll wait for the finished version 2.2.4. Thanks for your effort and taking the time to help me though and you did answer my original question about where to download.Sensualist
You're welcome. I forgot to mention an alternative: tell GlassFish to use webapp-bundled JSF instead: #10783028Wachtel
It works! Felt like a quitter, so I re-installed Netbeans and followed your instructions including using the webapp bundled thing (which I have absolutely no idea what it does). Not only did it start, the f:ajax delay works now as well! ThanksSensualist

© 2022 - 2024 — McMap. All rights reserved.