Author: dan.j.allen
Date: 2008-11-14 00:30:17 -0500 (Fri, 14 Nov 2008)
New Revision: 9562
Modified:
trunk/src/main/org/jboss/seam/Component.java
Log:
JBSEAM-3652
Modified: trunk/src/main/org/jboss/seam/Component.java
===================================================================
--- trunk/src/main/org/jboss/seam/Component.java 2008-11-14 03:26:13 UTC (rev 9561)
+++ trunk/src/main/org/jboss/seam/Component.java 2008-11-14 05:30:17 UTC (rev 9562)
@@ -301,8 +301,8 @@
{
boolean hasAnnotation = getBeanClass().isAnnotationPresent(Synchronized.class);
- synchronize = ( scope==SESSION /*&& !
beanClass.isAnnotationPresent(ReadOnly.class)*/ ) ||
- hasAnnotation;
+ // Technically, we don't need to synchronize page-scoped components if
StateManager#isSavingStateInClient(FacesContext) is true
+ synchronize = ( scope==SESSION || scope==PAGE || hasAnnotation );
if (synchronize)
{