Mock implementation of RenderKit.
RenderKit
168169170171172173174175
protected void initRenderKit() { RenderKitFactory renderKitFactory = (RenderKitFactory) FactoryFinder .getFactory(FactoryFinder.RENDER_KIT_FACTORY); this.renderKit = new MockRenderKit(); renderKitFactory.addRenderKit(RenderKitFactory.HTML_BASIC_RENDER_KIT, this.renderKit); }
201202203204205206207208
protected void initRenderKit() throws Exception { RenderKitFactory renderKitFactory = (RenderKitFactory) FactoryFinder .getFactory(FactoryFinder.RENDER_KIT_FACTORY); renderKit = new MockRenderKit(); renderKitFactory.addRenderKit(RenderKitFactory.HTML_BASIC_RENDER_KIT, renderKit); }
6970717273747576777879
super.setUp(); FactoryFinder.setFactory(FactoryFinder.VISIT_CONTEXT_FACTORY, VisitContextFactoryImpl.class.getName()); RenderKitFactory renderKitFactory = (RenderKitFactory)FactoryFinder.getFactory("javax.faces.render.RenderKitFactory"); renderKit = new MockRenderKit() { ResponseStateManager stateManager = new ResponseStateManager(){ public Object getState(FacesContext context, String viewId) { return stateToRestore;
166167168169170171172173
8889909192939495969798
{ // Don't call super since we need the ExtValRenderKit and not the Mock one. RenderKitFactory renderKitFactory = (RenderKitFactory) FactoryFinder .getFactory(FactoryFinder.RENDER_KIT_FACTORY); renderKit = new ExtValRenderKit(new MockRenderKit()); renderKitFactory.addRenderKit(RenderKitFactory.HTML_BASIC_RENDER_KIT, renderKit); // Initialize complete JSF system ConfigParser parser = new ConfigParser();
427428429430431432433434435436437
RenderKitFactory factory = (RenderKitFactory) FactoryFinder .getFactory(FactoryFinder.RENDER_KIT_FACTORY); RenderKit renderKit = factory.getRenderKit(null, renderKitId); if (renderKit == null) { renderKit = new MockRenderKit(); factory.addRenderKit(renderKitId, renderKit); } getDigester().pop(); getDigester().push(renderKit); }
268269270271272273274275276
*/ protected void setUpRenderKit() throws Exception { RenderKitFactory renderKitFactory = (RenderKitFactory) FactoryFinder .getFactory(FactoryFinder.RENDER_KIT_FACTORY); renderKit = new MockRenderKit(); renderKitFactory.addRenderKit(RenderKitFactory.HTML_BASIC_RENDER_KIT, renderKit); }
269270271272273274275276277
266267268269270271272273274