[jboss-cvs] jboss-seam/src/main/org/jboss/seam ...
Gavin King
gavin.king at jboss.com
Sat Sep 30 15:57:14 EDT 2006
User: gavin
Date: 06/09/30 15:57:14
Modified: src/main/org/jboss/seam Component.java
Log:
make page params work for both kinds of servlet mappings
fix a default scoping issue of factory methods
Revision Changes Path
1.169 +2 -1 jboss-seam/src/main/org/jboss/seam/Component.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Component.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/Component.java,v
retrieving revision 1.168
retrieving revision 1.169
diff -u -b -r1.168 -r1.169
--- Component.java 29 Sep 2006 22:48:49 -0000 1.168
+++ Component.java 30 Sep 2006 19:57:14 -0000 1.169
@@ -105,7 +105,7 @@
*
* @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
* @author Gavin King
- * @version $Revision: 1.168 $
+ * @version $Revision: 1.169 $
*/
@Scope(ScopeType.APPLICATION)
public class Component
@@ -1494,6 +1494,7 @@
else //an @Factory method defaults to the same scope as the component
{
scope = component.getScope();
+ if (scope==STATELESS) scope=EVENT;
}
}
scope.getContext().set(name, result);
More information about the jboss-cvs-commits
mailing list