[seam-commits] Seam SVN: r10990 - modules/trunk/faces/src/main/java/org/jboss/seam/faces/lifecycle.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Tue May 26 11:37:39 EDT 2009
Author: dan.j.allen
Date: 2009-05-26 11:37:39 -0400 (Tue, 26 May 2009)
New Revision: 10990
Modified:
modules/trunk/faces/src/main/java/org/jboss/seam/faces/lifecycle/TransferStatusMessagesListener.java
Log:
use correct bridge call
Modified: modules/trunk/faces/src/main/java/org/jboss/seam/faces/lifecycle/TransferStatusMessagesListener.java
===================================================================
--- modules/trunk/faces/src/main/java/org/jboss/seam/faces/lifecycle/TransferStatusMessagesListener.java 2009-05-26 15:31:37 UTC (rev 10989)
+++ modules/trunk/faces/src/main/java/org/jboss/seam/faces/lifecycle/TransferStatusMessagesListener.java 2009-05-26 15:37:39 UTC (rev 10990)
@@ -1,5 +1,6 @@
package org.jboss.seam.faces.lifecycle;
+import javax.faces.component.UIViewRoot;
import javax.faces.event.SystemEvent;
import javax.faces.event.SystemEventListener;
import javax.inject.UnsatisfiedDependencyException;
@@ -15,28 +16,30 @@
* a redirect navigation event (via SeamViewHandler) and transposes Seam
* StatusMessage objects into FacesMessage objects and transfers them to the FacesContext.
*
+ * FIXME this is going to be a problem if a view action causes a navigation event followed by a redirect event
+ *
* @author Dan Allen
*/
//@ListenerFor(systemEventClass = PreRenderViewEvent.class, sourceClass = UIViewRoot.class)
public class TransferStatusMessagesListener implements SystemEventListener
{
private static final LogProvider log = Logging.getLogProvider(TransferStatusMessagesListener.class);
+
+ public boolean isListenerForSource(Object source)
+ {
+ return source instanceof UIViewRoot;
+ }
public void processEvent(SystemEvent preRenderViewEvent)
{
execute();
}
- public boolean isListenerForSource(Object source)
- {
- return true;
- }
-
public void execute()
{
try
{
- Manager manager = ManagerBridge.getProvider().getRootManager();
+ Manager manager = ManagerBridge.getProvider().getCurrentManager();
// tests
if (manager != null)
{
More information about the seam-commits
mailing list