Search in sources :

Example 1 with HtmlScriptRenderer

use of org.apache.myfaces.renderkit.html.HtmlScriptRenderer in project myfaces by apache.

the class ApplicationImplAnnotationTest method setUpRenderKit.

@Override
protected void setUpRenderKit() throws Exception {
    RenderKitFactory renderKitFactory = (RenderKitFactory) FactoryFinder.getFactory(FactoryFinder.RENDER_KIT_FACTORY);
    renderKit = new MockRenderKit();
    renderKit.addRenderer("jakarta.faces.Output", "jakarta.faces.resource.Script", new HtmlScriptRenderer());
    renderKitFactory.addRenderKit(RenderKitFactory.HTML_BASIC_RENDER_KIT, renderKit);
}
Also used : HtmlScriptRenderer(org.apache.myfaces.renderkit.html.HtmlScriptRenderer) MockRenderKit(org.apache.myfaces.test.mock.MockRenderKit) RenderKitFactory(jakarta.faces.render.RenderKitFactory) MockRenderKitFactory(org.apache.myfaces.test.mock.MockRenderKitFactory)

Aggregations

RenderKitFactory (jakarta.faces.render.RenderKitFactory)1 HtmlScriptRenderer (org.apache.myfaces.renderkit.html.HtmlScriptRenderer)1 MockRenderKit (org.apache.myfaces.test.mock.MockRenderKit)1 MockRenderKitFactory (org.apache.myfaces.test.mock.MockRenderKitFactory)1