use of org.apache.myfaces.renderkit.html.HtmlTextRenderer in project myfaces by apache.
the class OwnRenderkitTest method setUp.
public void setUp() throws Exception {
super.setUp();
addRenderKit();
inputText = new HtmlInputText();
writer = new MockResponseWriter(new StringWriter(), null, null);
facesContext.setResponseWriter(writer);
MockFacesContext12.getCurrentInstance();
facesContext.getViewRoot().setRenderKitId("OWN_BASIC");
facesContext.getRenderKit().addRenderer(inputText.getFamily(), inputText.getRendererType(), new HtmlTextRenderer());
}
use of org.apache.myfaces.renderkit.html.HtmlTextRenderer in project myfaces by apache.
the class ErrorPageWriterTest method setUp.
public void setUp() throws Exception {
super.setUp();
outputText = new HtmlOutputText();
writer = new MockResponseWriter(new StringWriter(), null, null);
facesContext.setResponseWriter(writer);
// TODO remove these two lines once myfaces-test goes alpha, see MYFACES-1155
facesContext.getViewRoot().setRenderKitId(MockRenderKitFactory.HTML_BASIC_RENDER_KIT);
facesContext.getRenderKit().addRenderer(outputText.getFamily(), outputText.getRendererType(), new HtmlTextRenderer());
servletContext.setAttribute(StateUtils.SERIAL_FACTORY, new DefaultSerialFactory());
facesContext.getAttributes().put("org.apache.myfaces.RENDERED_FACES_JS", Boolean.TRUE);
}
use of org.apache.myfaces.renderkit.html.HtmlTextRenderer 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.HtmlTextRenderer 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.HtmlTextRenderer 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());
}
Aggregations