Coming Up for Air

Announcing Mojarra Scales

Some of you may be wondering what the status is on the RI Sandbox. With the announcement of Project Mojarra, we can finally take the wraps off of Mojarra Scales, the promotion of the RI/Mojarra Sandbox to its own project. There are a few differences between the Sandbox of Scales to note, such as package names, namespace, etc. There has also been a fair amount of refactoring inside the library to simplify the components somewhat (more on that later). To migrate from the RI Sandbox to Mojarra Scales, you will need to do the following:

Remove jsf-ri-sandbox-0.9.jar

Add mojarra-scales.jar. (I’m working on getting this added to the java.net maven repository as well).

Add the (new) JSFTemplating dependencies from here and here.

Change your references to the RI Sandbox URL.

  ## JSP: `<%@ taglib uri="http://java.sun.com/mojarra/scales" prefix="sc" %>`
  ## Facelets: xmlns:sc="http://java.sun.com/mojarra/scales"
# Add the static resource PhaseListener:
1
2
3
4
5
<lifecycle>
    <phase-listener>
        com.sun.mojarra.scales.util.StaticResourcePhaseListener
    </phase-listener>
</lifecycle>

That should be all there is too it (though if I’ve missed a step, please let me know).

Quotes

Sample quote

Quote source