Author: andrei_exadel
Date: 2008-09-19 11:51:03 -0400 (Fri, 19 Sep 2008)
New Revision: 10513
Added:
trunk/test-applications/regressionArea/Seam-web/src/main/java/org/ajax4jsf/logging/
trunk/test-applications/regressionArea/Seam-web/src/main/java/org/ajax4jsf/logging/PhaseTracker.java
Modified:
trunk/test-applications/regressionArea/Seam-web/src/main/webapp/WEB-INF/faces-config.xml
Log:
Add Phase Tracker
Added:
trunk/test-applications/regressionArea/Seam-web/src/main/java/org/ajax4jsf/logging/PhaseTracker.java
===================================================================
---
trunk/test-applications/regressionArea/Seam-web/src/main/java/org/ajax4jsf/logging/PhaseTracker.java
(rev 0)
+++
trunk/test-applications/regressionArea/Seam-web/src/main/java/org/ajax4jsf/logging/PhaseTracker.java 2008-09-19
15:51:03 UTC (rev 10513)
@@ -0,0 +1,40 @@
+package org.ajax4jsf.logging;
+
+/**
+ *
+ */
+
+
+import javax.faces.event.PhaseEvent;
+import javax.faces.event.PhaseId;
+import javax.faces.event.PhaseListener;
+
+/**
+ * @author Andrey Markavstov
+ *
+ */
+public class PhaseTracker implements PhaseListener {
+
+ /* (non-Javadoc)
+ * @see javax.faces.event.PhaseListener#afterPhase(javax.faces.event.PhaseEvent)
+ */
+ public void afterPhase(PhaseEvent arg0) {
+ System.out.println("PhaseTracker.afterPhase()" + arg0.getPhaseId());
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.event.PhaseListener#beforePhase(javax.faces.event.PhaseEvent)
+ */
+ public void beforePhase(PhaseEvent arg0) {
+ System.out.println("PhaseTracker.beforePhase()" + arg0.getPhaseId());
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.event.PhaseListener#getPhaseId()
+ */
+ public PhaseId getPhaseId() {
+ return PhaseId.ANY_PHASE;
+ }
+
+}
Modified:
trunk/test-applications/regressionArea/Seam-web/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
---
trunk/test-applications/regressionArea/Seam-web/src/main/webapp/WEB-INF/faces-config.xml 2008-09-19
15:36:11 UTC (rev 10512)
+++
trunk/test-applications/regressionArea/Seam-web/src/main/webapp/WEB-INF/faces-config.xml 2008-09-19
15:51:03 UTC (rev 10513)
@@ -19,5 +19,8 @@
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
+ <lifecycle>
+ <phase-listener
id="phaseTracker">org.ajax4jsf.logging.PhaseTracker</phase-listener>
+ </lifecycle>
</faces-config>
\ No newline at end of file