[seam-commits] Seam SVN: r9340 - trunk/src/main/org/jboss/seam/framework.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Wed Oct 15 08:33:46 EDT 2008
Author: pete.muir at jboss.org
Date: 2008-10-15 08:33:46 -0400 (Wed, 15 Oct 2008)
New Revision: 9340
Modified:
trunk/src/main/org/jboss/seam/framework/Controller.java
Log:
Add a convenience method for evaluating value expressions
Modified: trunk/src/main/org/jboss/seam/framework/Controller.java
===================================================================
--- trunk/src/main/org/jboss/seam/framework/Controller.java 2008-10-15 12:27:22 UTC (rev 9339)
+++ trunk/src/main/org/jboss/seam/framework/Controller.java 2008-10-15 12:33:46 UTC (rev 9340)
@@ -14,6 +14,7 @@
import org.jboss.seam.contexts.Contexts;
import org.jboss.seam.core.Conversation;
import org.jboss.seam.core.Events;
+import org.jboss.seam.core.Expressions;
import org.jboss.seam.core.Interpolator;
import org.jboss.seam.core.Validators;
import org.jboss.seam.faces.FacesMessages;
@@ -291,5 +292,10 @@
return false;
}
}
+
+ protected <T> T evaluateValueExpression(String expression, Class<T> type)
+ {
+ return Expressions.instance().createValueExpression(expression, type).getValue();
+ }
}
More information about the seam-commits
mailing list