use of org.apache.myfaces.renderkit.html.HtmlFormRenderer in project myfaces by apache.
the class WhitespaceTestCase method setupRenderers.
@Override
protected void setupRenderers() throws Exception {
renderKit.addRenderer(UIForm.COMPONENT_FAMILY, "jakarta.faces.Form", new HtmlFormRenderer());
renderKit.addRenderer(UIOutput.COMPONENT_FAMILY, "jakarta.faces.Text", new HtmlTextRenderer());
renderKit.addRenderer(UISelectOne.COMPONENT_FAMILY, "jakarta.faces.Menu", new HtmlMenuRenderer());
renderKit.addRenderer(UIPanel.COMPONENT_FAMILY, "jakarta.faces.Grid", new HtmlGridRenderer());
}
use of org.apache.myfaces.renderkit.html.HtmlFormRenderer in project myfaces by apache.
the class XHTMLFaceletsProcessingTestCase method setupRenderers.
@Override
protected void setupRenderers() throws Exception {
renderKit.addRenderer(UIForm.COMPONENT_FAMILY, "jakarta.faces.Form", new HtmlFormRenderer());
renderKit.addRenderer(UIOutput.COMPONENT_FAMILY, "jakarta.faces.Text", new HtmlTextRenderer());
renderKit.addRenderer(UISelectOne.COMPONENT_FAMILY, "jakarta.faces.Menu", new HtmlMenuRenderer());
renderKit.addRenderer(UIPanel.COMPONENT_FAMILY, "jakarta.faces.Grid", new HtmlGridRenderer());
}
use of org.apache.myfaces.renderkit.html.HtmlFormRenderer in project myfaces by apache.
the class XMLFaceletsProcessingTestCase method setupRenderers.
@Override
protected void setupRenderers() throws Exception {
renderKit.addRenderer(UIForm.COMPONENT_FAMILY, "jakarta.faces.Form", new HtmlFormRenderer());
renderKit.addRenderer(UIOutput.COMPONENT_FAMILY, "jakarta.faces.Text", new HtmlTextRenderer());
renderKit.addRenderer(UISelectOne.COMPONENT_FAMILY, "jakarta.faces.Menu", new HtmlMenuRenderer());
renderKit.addRenderer(UIPanel.COMPONENT_FAMILY, "jakarta.faces.Grid", new HtmlGridRenderer());
}
use of org.apache.myfaces.renderkit.html.HtmlFormRenderer in project myfaces by apache.
the class PartialStateManagementStrategyTest method setUp.
@Override
public void setUp() throws Exception {
super.setUp();
FactoryFinder.setFactory(FactoryFinder.VISIT_CONTEXT_FACTORY, VisitContextFactoryImpl.class.getName());
RenderKitFactory renderKitFactory = (RenderKitFactory) FactoryFinder.getFactory("jakarta.faces.render.RenderKitFactory");
renderKit = new MockRenderKit() {
ResponseStateManager stateManager = new ResponseStateManager() {
public Object getState(FacesContext context, String viewId) {
return stateToRestore;
}
};
@Override
public ResponseStateManager getResponseStateManager() {
return stateManager;
}
};
renderKitFactory.addRenderKit("HTML_BASIC2", renderKit);
// FactoryFinder.setFactory(FactoryFinder.VISIT_CONTEXT_FACTORY,
// VisitContextFactoryImpl.class.getName());
renderKit.addRenderer(new HtmlCommandButton().getFamily(), new HtmlCommandButton().getRendererType(), new HtmlButtonRenderer());
renderKit.addRenderer(new HtmlForm().getFamily(), new HtmlForm().getRendererType(), new HtmlFormRenderer());
renderKit.addRenderer(new HtmlOutputText().getFamily(), new HtmlOutputText().getRendererType(), new HtmlTextRenderer());
renderKit.addRenderer(new HtmlInputText().getFamily(), new HtmlInputText().getRendererType(), new HtmlTextRenderer());
}
use of org.apache.myfaces.renderkit.html.HtmlFormRenderer in project myfaces by apache.
the class HTML5FaceletsProcessingTestCase method setupRenderers.
@Override
protected void setupRenderers() throws Exception {
renderKit.addRenderer(UIForm.COMPONENT_FAMILY, "jakarta.faces.Form", new HtmlFormRenderer());
renderKit.addRenderer(UIOutput.COMPONENT_FAMILY, "jakarta.faces.Text", new HtmlTextRenderer());
renderKit.addRenderer(UISelectOne.COMPONENT_FAMILY, "jakarta.faces.Menu", new HtmlMenuRenderer());
renderKit.addRenderer(UIPanel.COMPONENT_FAMILY, "jakarta.faces.Grid", new HtmlGridRenderer());
}
Aggregations