[jboss-cvs] jboss-seam/src/main/org/jboss/seam/pages ...
Gavin King
gavin.king at jboss.com
Sun Jun 3 14:33:52 EDT 2007
User: gavin
Date: 07/06/03 14:33:52
Modified: src/main/org/jboss/seam/pages Rule.java
Log:
navigation events
Revision Changes Path
1.5 +16 -0 jboss-seam/src/main/org/jboss/seam/pages/Rule.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Rule.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/pages/Rule.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- Rule.java 1 May 2007 16:43:52 -0000 1.4
+++ Rule.java 3 Jun 2007 18:33:52 -0000 1.5
@@ -8,6 +8,7 @@
import javax.faces.context.FacesContext;
+import org.jboss.seam.core.Events;
import org.jboss.seam.core.Expressions.ValueExpression;
public final class Rule
@@ -19,6 +20,7 @@
private TaskControl taskControl = new TaskControl();
private ProcessControl processControl = new ProcessControl();
private List<NavigationHandler> navigationHandlers = new ArrayList<NavigationHandler>();
+ private String eventType;
public boolean matches(String actualValue)
{
@@ -86,10 +88,24 @@
{
output.out();
}
+ if (eventType!=null)
+ {
+ Events.instance().raiseEvent(eventType);
+ }
for ( NavigationHandler nh: getNavigationHandlers() )
{
if ( nh.navigate(context) ) return true;
}
return false;
}
+
+ public String getEventType()
+ {
+ return eventType;
+ }
+
+ public void setEventType(String event)
+ {
+ this.eventType = event;
+ }
}
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list