Author: pete.muir(a)jboss.org
Date: 2008-02-01 14:54:19 -0500 (Fri, 01 Feb 2008)
New Revision: 7333
Modified:
trunk/src/main/org/jboss/seam/jsf/SeamPhaseListener.java
Log:
JBSEAM-2505, thanks to Jacob Orshalick
Modified: trunk/src/main/org/jboss/seam/jsf/SeamPhaseListener.java
===================================================================
--- trunk/src/main/org/jboss/seam/jsf/SeamPhaseListener.java 2008-02-01 19:50:56 UTC (rev
7332)
+++ trunk/src/main/org/jboss/seam/jsf/SeamPhaseListener.java 2008-02-01 19:54:19 UTC (rev
7333)
@@ -21,6 +21,7 @@
import javax.faces.event.PhaseEvent;
import javax.faces.event.PhaseId;
import javax.faces.event.PhaseListener;
+import javax.servlet.http.HttpServletRequest;
import org.jboss.seam.Seam;
import org.jboss.seam.contexts.Context;
@@ -43,6 +44,7 @@
import org.jboss.seam.persistence.PersistenceContexts;
import org.jboss.seam.transaction.Transaction;
import org.jboss.seam.util.Reflections;
+import org.jboss.seam.web.ServletContexts;
/**
* Manages the Seam contexts associated with a JSF request
@@ -134,6 +136,7 @@
if ( event.getPhaseId() == RESTORE_VIEW )
{
beforeRestoreView( event.getFacesContext() );
+ ServletContexts.instance().setRequest((HttpServletRequest)
event.getFacesContext().getExternalContext().getRequest());
}
handleTransactionsBeforePhase(event);
Show replies by date