use of org.apache.myfaces.renderkit.html.HtmlButtonRenderer 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.HtmlButtonRenderer in project myfaces by apache.
the class JstlCoreTestCase method setupRenderers.
@Override
protected void setupRenderers() throws Exception {
renderKit.addRenderer(UIForm.COMPONENT_FAMILY, "jakarta.faces.Form", new HtmlFormRenderer());
renderKit.addRenderer(HtmlCommandButton.COMPONENT_FAMILY, "jakarta.faces.Button", new HtmlButtonRenderer());
renderKit.addRenderer(HtmlInputText.COMPONENT_FAMILY, "jakarta.faces.Text", new HtmlTextRenderer());
renderKit.addRenderer(HtmlOutputText.COMPONENT_FAMILY, "jakarta.faces.Text", new HtmlTextRenderer());
}
use of org.apache.myfaces.renderkit.html.HtmlButtonRenderer in project myfaces by apache.
the class HtmlTestCase method setupRenderers.
@Override
protected void setupRenderers() throws Exception {
renderKit.addRenderer(UIOutput.COMPONENT_FAMILY, "jakarta.faces.Text", new HtmlTextRenderer());
renderKit.addRenderer(UIForm.COMPONENT_FAMILY, "jakarta.faces.Form", new HtmlFormRenderer());
renderKit.addRenderer(HtmlCommandButton.COMPONENT_FAMILY, "jakarta.faces.Button", new HtmlButtonRenderer());
renderKit.addRenderer(HtmlPanelGrid.COMPONENT_FAMILY, "jakarta.faces.Grid", new HtmlGridRenderer());
}
use of org.apache.myfaces.renderkit.html.HtmlButtonRenderer in project myfaces by apache.
the class CoreTestCase method setupRenderers.
@Override
protected void setupRenderers() throws Exception {
renderKit.addRenderer(UIOutput.COMPONENT_FAMILY, "jakarta.faces.Text", new HtmlTextRenderer());
renderKit.addRenderer(UIInput.COMPONENT_FAMILY, "jakarta.faces.Text", new HtmlTextRenderer());
renderKit.addRenderer(UIGraphic.COMPONENT_FAMILY, "jakarta.faces.Image", new HtmlImageRenderer());
renderKit.addRenderer(UICommand.COMPONENT_FAMILY, "jakarta.faces.Link", new HtmlLinkRenderer());
renderKit.addRenderer(UIForm.COMPONENT_FAMILY, "jakarta.faces.Form", new HtmlFormRenderer());
renderKit.addRenderer(UIData.COMPONENT_FAMILY, "jakarta.faces.Table", new HtmlTableRenderer());
renderKit.addRenderer(UICommand.COMPONENT_FAMILY, "jakarta.faces.Button", new HtmlButtonRenderer());
}
use of org.apache.myfaces.renderkit.html.HtmlButtonRenderer in project myfaces by apache.
the class RemoveTestCase method setupRenderers.
@Override
protected void setupRenderers() throws Exception {
renderKit.addRenderer(UIOutput.COMPONENT_FAMILY, "jakarta.faces.Text", new HtmlTextRenderer());
renderKit.addRenderer(UIForm.COMPONENT_FAMILY, "jakarta.faces.Form", new HtmlFormRenderer());
renderKit.addRenderer(HtmlCommandButton.COMPONENT_FAMILY, "jakarta.faces.Button", new HtmlButtonRenderer());
renderKit.addRenderer(HtmlPanelGrid.COMPONENT_FAMILY, "jakarta.faces.Grid", new HtmlGridRenderer());
}
Aggregations