Author: dan.j.allen
Date: 2008-06-19 13:14:43 -0400 (Thu, 19 Jun 2008)
New Revision: 8390
Modified:
branches/Seam_2_0/ui/src/main/java/org/jboss/seam/ui/facelet/FaceletsRenderer.java
Log:
requires MockApplication when running disconnected from FacesContext
Modified:
branches/Seam_2_0/ui/src/main/java/org/jboss/seam/ui/facelet/FaceletsRenderer.java
===================================================================
---
branches/Seam_2_0/ui/src/main/java/org/jboss/seam/ui/facelet/FaceletsRenderer.java 2008-06-19
17:13:15 UTC (rev 8389)
+++
branches/Seam_2_0/ui/src/main/java/org/jboss/seam/ui/facelet/FaceletsRenderer.java 2008-06-19
17:14:43 UTC (rev 8390)
@@ -19,6 +19,7 @@
import org.jboss.seam.core.ResourceLoader;
import org.jboss.seam.faces.Renderer;
import org.jboss.seam.mock.MockExternalContext;
+import org.jboss.seam.mock.MockApplication;
import org.jboss.seam.mock.MockFacesContext;
import org.jboss.seam.ui.util.JSF;
@@ -93,7 +94,7 @@
// If a FacesContext isn't available, set one up
if (FacesContext.getCurrentInstance() == null)
{
- MockFacesContext mockFacesContext = new MockFacesContext(new
MockExternalContext())
+ MockFacesContext mockFacesContext = new MockFacesContext(new
MockExternalContext(), new MockApplication())
.setCurrent();
mockFacesContext.createViewRoot();
}
Show replies by date