Author: sergeyhalipov
Date: 2008-03-17 10:45:17 -0400 (Mon, 17 Mar 2008)
New Revision: 6858
Modified:
trunk/framework/test/src/main/java/org/ajax4jsf/tests/AbstractAjax4JsfTestCase.java
Log:
Fixed tests for panel menu.
Modified:
trunk/framework/test/src/main/java/org/ajax4jsf/tests/AbstractAjax4JsfTestCase.java
===================================================================
---
trunk/framework/test/src/main/java/org/ajax4jsf/tests/AbstractAjax4JsfTestCase.java 2008-03-17
14:44:00 UTC (rev 6857)
+++
trunk/framework/test/src/main/java/org/ajax4jsf/tests/AbstractAjax4JsfTestCase.java 2008-03-17
14:45:17 UTC (rev 6858)
@@ -47,6 +47,7 @@
import javax.faces.render.Renderer;
import javax.servlet.http.HttpServletResponse;
+import org.ajax4jsf.component.AjaxViewRoot;
import org.ajax4jsf.context.AjaxContext;
import org.ajax4jsf.context.AjaxContextImpl;
import org.ajax4jsf.renderkit.AjaxViewRootRenderer;
@@ -152,7 +153,11 @@
request.setAttribute(AjaxContext.AJAX_CONTEXT_KEY, ajaxContext);
// Setup ViewHandler / ViewRoot.
application.setViewHandler(new MockViewHandler(application.getViewHandler()));
- facesContext.setViewRoot(application.getViewHandler().createView(facesContext,
facesContext.getViewRoot().getViewId()));
+
+ UIViewRoot root = new AjaxViewRoot();
+ root.setViewId("/viewId");
+ root.setRenderKitId(RenderKitFactory.HTML_BASIC_RENDER_KIT);
+ facesContext.setViewRoot(root);
// Setup Skin avd version variables.
servletContext.setAttribute("a4j", new VersionBean());
servletContext.setAttribute("a4jSkin", new SkinBean());
Show replies by date