use of org.apache.myfaces.application.NavigationHandlerImpl in project myfaces by apache.
the class HtmlOutcomeTargetButtonClientBehaviorRendererTest method setUpApplication.
@Override
protected void setUpApplication() throws Exception {
super.setUpApplication();
application.setNavigationHandler(new NavigationHandlerImpl());
}
use of org.apache.myfaces.application.NavigationHandlerImpl in project myfaces by apache.
the class HtmlOutcomeTargetLinkClientBehaviorRendererTest method setUpApplication.
@Override
protected void setUpApplication() throws Exception {
super.setUpApplication();
application.setNavigationHandler(new NavigationHandlerImpl());
}
use of org.apache.myfaces.application.NavigationHandlerImpl in project myfaces by apache.
the class HtmlLinkRendererTest method setUp.
public void setUp() throws Exception {
super.setUp();
UIForm form = new UIForm();
commandLink = new HtmlCommandLink();
outputLink = new HtmlOutputLink();
outputLink.setValue("http://someurl");
outcomeTargetLink = new HtmlOutcomeTargetLink();
form.getChildren().add(commandLink);
writer = new MockResponseWriter(new StringWriter(), null, "UTF-8");
facesContext.setResponseWriter(writer);
facesContext.getApplication().setNavigationHandler(new NavigationHandlerImpl());
facesContext.getViewRoot().setRenderKitId(MockRenderKitFactory.HTML_BASIC_RENDER_KIT);
facesContext.getRenderKit().addRenderer(commandLink.getFamily(), commandLink.getRendererType(), new HtmlLinkRenderer());
facesContext.getRenderKit().addRenderer(form.getFamily(), form.getRendererType(), new HtmlFormRenderer());
facesContext.getRenderKit().addRenderer(outputLink.getFamily(), outputLink.getRendererType(), new HtmlLinkRenderer());
facesContext.getRenderKit().addRenderer(outcomeTargetLink.getFamily(), outcomeTargetLink.getRendererType(), new HtmlLinkRenderer());
facesContext.getAttributes().put("org.apache.myfaces.RENDERED_FACES_JS", Boolean.TRUE);
}
use of org.apache.myfaces.application.NavigationHandlerImpl in project myfaces by apache.
the class HtmlOutcomeTargetButtonRendererTest method setUp.
public void setUp() throws Exception {
super.setUp();
writer = new MockResponseWriter(new StringWriter(), null, null);
facesContext.setResponseWriter(writer);
facesContext.getApplication().setNavigationHandler(new NavigationHandlerImpl());
outcomeTargetButton = new HtmlOutcomeTargetButton();
form = new HtmlForm();
outcomeTargetButton.setParent(form);
facesContext.getViewRoot().setRenderKitId(MockRenderKitFactory.HTML_BASIC_RENDER_KIT);
facesContext.getRenderKit().addRenderer(outcomeTargetButton.getFamily(), outcomeTargetButton.getRendererType(), new HtmlOutcomeTargetButtonRenderer());
facesContext.getRenderKit().addRenderer(form.getFamily(), form.getRendererType(), new HtmlFormRenderer());
facesContext.getAttributes().put("org.apache.myfaces.RENDERED_FACES_JS", Boolean.TRUE);
}
use of org.apache.myfaces.application.NavigationHandlerImpl in project myfaces by apache.
the class HtmlCommandButtonClientBehaviorRendererTest method setUpApplication.
@Override
protected void setUpApplication() throws Exception {
super.setUpApplication();
application.setNavigationHandler(new NavigationHandlerImpl());
}
Aggregations