[seam-commits] Seam SVN: r10258 - trunk/src/main/org/jboss/seam.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Tue Mar 31 17:19:40 EDT 2009
Author: dan.j.allen
Date: 2009-03-31 17:19:40 -0400 (Tue, 31 Mar 2009)
New Revision: 10258
Modified:
trunk/src/main/org/jboss/seam/Component.java
Log:
log a warning message when an attempt is made to create a component when it's scope is not active
Modified: trunk/src/main/org/jboss/seam/Component.java
===================================================================
--- trunk/src/main/org/jboss/seam/Component.java 2009-03-31 21:05:39 UTC (rev 10257)
+++ trunk/src/main/org/jboss/seam/Component.java 2009-03-31 21:19:40 UTC (rev 10258)
@@ -2014,12 +2014,16 @@
if (component==null)
{
//needed when this method is called by JSF
- if ( log.isDebugEnabled() ) log.debug("seam component not found: " + name);
+ if ( log.isDebugEnabled() ) log.debug("Seam component not found: " + name);
}
else if ( component.getScope().isContextActive() )
{
result = component.newInstance();
}
+ else
+ {
+ log.warn("Cannot create Seam component, scope is not active: " + name + "(" + component.getScope().name() + ")");
+ }
}
}
More information about the seam-commits
mailing list