Announcing Mojarra Scales

January 2nd, 2008

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:

  1. Remove jsf-ri-sandbox-0.9.jar
  2. Add mojarra-scales.jar. (I’m working on getting this added to the java.net maven repository as well).
  3. Add the (new) JSFTemplating dependencies from here and here.
  4. 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”
  5. Add the static resource PhaseListener:

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

Popularity: 85% [?]

4 Comments

  1. gary ng says

    Hi,

    I tried to just drop mojarra-scales.jar into my project (ajax4jsf + richfaces + sun RI 1.2 + facelets), and haven’t even configure anything then get this error :

    SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
    javax.faces.FacesException: java.lang.UnsupportedOperationException
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:408)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Caused by: java.lang.UnsupportedOperationException
    at com.sun.faces.config.ConfigureListener$InitFacesContext.getViewRoot(ConfigureListener.java:1690)
    at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:113)
    at com.sun.faces.util.MessageUtils.getExceptionMessageString(MessageUtils.java:277)
    at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:1040)
    at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:1100)
    at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:509)
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:402)
    … 15 more

    If I remove the jar, everything works. What would be the possible cause of it ? I tried to see what is the old ri-sandbox demo(facelets) and don’t notice anything speciial.

    January 13th, 2008 | #

  2. Sean says

    Any update on that maven repo? I browsed java.net today and I see that it is still not there.

    January 22nd, 2008 | #

  3. jason says

    Gary,

    You’re the second report of problems when RichFaces is in the mix. I’ll try to get that added to my demo/test app and track that down as soon as possible. Thanks for the report.

    January 22nd, 2008 | #

  4. jason says

    Sean,

    Nothing yet. I’ll email again the guy that handles that and see what the status is.

    January 22nd, 2008 | #

Sorry, the comment form is closed at this time.

With many thanks to Kaushal Sheth
`