1 Reply Latest reply on Mar 15, 2010 4:30 PM by nbelaevski

    FaceletFactory.getInstance() returns NULL?

    sandeepgowda
      Hi,

      I am using Richfaces in JSF, whenever i try with below method, it returns NULL.

        • 1. Re: FaceletFactory.getInstance() returns NULL?
          nbelaevski

          Hi,

           

          That doesn't depend in RichFaces. Here is the piece of code (com.sun.facelets.FaceletViewHandler#buildView(FacesContext, UIViewRoot)) that explains why this happens:

           

                  Facelet f = null;
                  FaceletFactory.setInstance(this.faceletFactory);
                  try {
                      f = this.faceletFactory.getFacelet(viewToRender.getViewId());
                  } finally {
                      FaceletFactory.setInstance(null);
                  }