[seam-commits] Seam SVN: r10677 - in modules/trunk/faces/src/main: resources/META-INF and 1 other directory.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Apr 28 14:19:34 EDT 2009


Author: dan.j.allen
Date: 2009-04-28 14:19:33 -0400 (Tue, 28 Apr 2009)
New Revision: 10677

Modified:
   modules/trunk/faces/src/main/java/org/jboss/seam/faces/lifecycle/StatusMessagesTranslator.java
   modules/trunk/faces/src/main/resources/META-INF/faces-config.xml
Log:
use annotation instead of XML configuration


Modified: modules/trunk/faces/src/main/java/org/jboss/seam/faces/lifecycle/StatusMessagesTranslator.java
===================================================================
--- modules/trunk/faces/src/main/java/org/jboss/seam/faces/lifecycle/StatusMessagesTranslator.java	2009-04-28 11:38:10 UTC (rev 10676)
+++ modules/trunk/faces/src/main/java/org/jboss/seam/faces/lifecycle/StatusMessagesTranslator.java	2009-04-28 18:19:33 UTC (rev 10677)
@@ -1,10 +1,13 @@
 package org.jboss.seam.faces.lifecycle;
 
 import java.beans.Introspector;
+import javax.faces.component.UIViewRoot;
 import javax.faces.context.FacesContext;
 import javax.faces.event.AbortProcessingException;
 import javax.faces.event.ComponentSystemEvent;
 import javax.faces.event.ComponentSystemEventListener;
+import javax.faces.event.ListenerFor;
+import javax.faces.event.PreRenderViewEvent;
 import org.jboss.seam.faces.FacesMessages;
 import org.jboss.seam.international.StatusMessages;
 
@@ -15,6 +18,7 @@
  *
  * @author Dan Allen
  */
+ at ListenerFor(systemEventClass = PreRenderViewEvent.class, sourceClass = UIViewRoot.class)
 public class StatusMessagesTranslator implements ComponentSystemEventListener {
 
    public void processEvent(ComponentSystemEvent preRenderViewEvent) throws AbortProcessingException

Modified: modules/trunk/faces/src/main/resources/META-INF/faces-config.xml
===================================================================
--- modules/trunk/faces/src/main/resources/META-INF/faces-config.xml	2009-04-28 11:38:10 UTC (rev 10676)
+++ modules/trunk/faces/src/main/resources/META-INF/faces-config.xml	2009-04-28 18:19:33 UTC (rev 10677)
@@ -16,10 +16,6 @@
    <application>
       <el-resolver>org.jboss.seam.el.SeamELResolver</el-resolver>
       <el-resolver>org.jboss.seam.faces.el.SeamFacesELResolver</el-resolver>
-      <system-event-listener>
-         <system-event-class>javax.faces.event.PreRenderViewEvent</system-event-class>
-         <system-event-listener-class>org.jboss.seam.faces.lifecycle.StatusMessagesTranslator</system-event-listener-class>
-      </system-event-listener>
    </application>
 
 </faces-config>




More information about the seam-commits mailing list