Package org.jboss.portletbridge.context

Examples of org.jboss.portletbridge.context.InitFacesContext


        if (null == (renderKitId = application.getDefaultRenderKitId())) {
          renderKitId = RenderKitFactory.HTML_BASIC_RENDER_KIT;
        }
        RenderKitFactory renderKitFactory = (RenderKitFactory) FactoryFinder
            .getFactory(FactoryFinder.RENDER_KIT_FACTORY);
        FacesContext context = new InitFacesContext(application,
            portletContext);
        RenderKit renderKit = renderKitFactory.getRenderKit(context,
            renderKitId);
        renderKit
            .addRenderer(
                UIViewRoot.COMPONENT_FAMILY,
                UIViewRoot.COMPONENT_TYPE,
                richFacesHelper.getViewRootRenderer());
        context.release();
      }
    } catch (FacesException e) {
      throw new BridgeException("JSF Initialization error", e);
    }
  }
View Full Code Here


      // Setup appropriate UIViewRoot and ViewRootRenderer
      RenderKitFactory renderKitFactory = (RenderKitFactory) FactoryFinder
          .getFactory(FactoryFinder.RENDER_KIT_FACTORY);
      // Setup renderkit for portlet bridge. 
      FacesContext context = new InitFacesContext(application,
          portletContext);
      strategy.init(context, renderKitFactory);
      context.release();
    } catch (FacesException e) {
      throw new BridgeException("JSF Initialization error", e);
    }
  }
View Full Code Here

TOP

Related Classes of org.jboss.portletbridge.context.InitFacesContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.