Recent Posts

RSS Feeds

More: From JSF EA4 to JSF 1.0 Beat

This is a small one but a pain in the neck...

When converting to the beta you have to change *-tree-id to *-view-id in the faces config file. Sort of duh, but instead of telling you that the navigation rule was invalid JSF just throws a NullPointerException. Here is the stack trace I was getting in my browser.

java.lang.NullPointerException
        com.sun.faces.context.ExternalContextImpl.dispatchMessage(ExternalContextImpl.java:287)
        com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:144)
        com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:89)
        com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:209)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:196)

So just be aware that if you are getting errors like this its probably your faces config.

Permalink     No Comments



Post a Comment:
  • HTML Syntax: Allowed