Esempio n. 1
0
  /** @see javax.faces.context.FacesContext#getPartialViewContext() */
  public PartialViewContext getPartialViewContext() {

    assertNotReleased();
    if (partialViewContext == null) {
      PartialViewContextFactory f =
          (PartialViewContextFactory)
              FactoryFinder.getFactory(FactoryFinder.PARTIAL_VIEW_CONTEXT_FACTORY);
      partialViewContext = f.getPartialViewContext(this);
    }
    return partialViewContext;
  }
 /**
  * Returns a new instance of {@link OmniPartialViewContext} which wraps the original partial view
  * context.
  */
 @Override
 public PartialViewContext getPartialViewContext(FacesContext context) {
   return new OmniPartialViewContext(wrapped.getPartialViewContext(context));
 }
  /** @see PartialViewContextFactory#getPartialViewContext(javax.faces.context.FacesContext) */
  public PartialViewContext getPartialViewContext(FacesContext context) {

    return new PortletPartialViewContextWrapper(context, parent.getPartialViewContext(context));
  }