myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From we...@apache.org
Subject svn commit: r373914 - in /myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ajax/api: AjaxDecodePhaseListener.java AjaxPhaseListener.java
Date Tue, 31 Jan 2006 21:29:50 GMT
Author: weber
Date: Tue Jan 31 13:29:44 2006
New Revision: 373914

URL: http://svn.apache.org/viewcvs?rev=373914&view=rev
Log:
Remove unnessesary cast (breaks working in RI)

Modified:
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ajax/api/AjaxDecodePhaseListener.java
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ajax/api/AjaxPhaseListener.java

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ajax/api/AjaxDecodePhaseListener.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ajax/api/AjaxDecodePhaseListener.java?rev=373914&r1=373913&r2=373914&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ajax/api/AjaxDecodePhaseListener.java
(original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ajax/api/AjaxDecodePhaseListener.java
Tue Jan 31 13:29:44 2006
@@ -19,11 +19,11 @@
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.apache.myfaces.application.ComponentNotFoundException;
-import org.apache.myfaces.application.jsp.JspStateManagerImpl;
 import org.apache.myfaces.custom.util.ComponentUtils;
 import org.apache.myfaces.renderkit.RendererUtils;
 import org.apache.myfaces.renderkit.html.HtmlResponseWriterImpl;
 
+import javax.faces.application.StateManager;
 import javax.faces.component.UIComponent;
 import javax.faces.component.UIViewRoot;
 import javax.faces.context.FacesContext;
@@ -31,8 +31,8 @@
 import javax.faces.event.PhaseId;
 import javax.faces.event.PhaseListener;
 import javax.servlet.ServletResponse;
-import java.io.Writer;
 import java.io.IOException;
+import java.io.Writer;
 import java.util.Map;
 
 /**
@@ -120,9 +120,10 @@
                log.error("Found component is no ajaxComponent : " + RendererUtils.getPathToComponent(ajaxComponent));
             }
 
-            if (!context.getApplication().getStateManager().isSavingStateInClient(context))
+            StateManager stateManager = context.getApplication().getStateManager();
+            if (!stateManager.isSavingStateInClient(context))
             {
-                ((JspStateManagerImpl) context.getApplication().getStateManager()).saveSerializedView(context);
+                stateManager.saveSerializedView(context);
             }
             context.responseComplete();
         }

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ajax/api/AjaxPhaseListener.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ajax/api/AjaxPhaseListener.java?rev=373914&r1=373913&r2=373914&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ajax/api/AjaxPhaseListener.java
(original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ajax/api/AjaxPhaseListener.java
Tue Jan 31 13:29:44 2006
@@ -110,9 +110,11 @@
                 log.error("Found component is no ajaxComponent : " + RendererUtils.getPathToComponent(ajaxComponent));
             }
 
-            if (!context.getApplication().getStateManager().isSavingStateInClient(context))
+
+            StateManager stateManager = context.getApplication().getStateManager();
+            if (!stateManager.isSavingStateInClient(context))
             {
-                ((JspStateManagerImpl) context.getApplication().getStateManager()).saveSerializedView(context);
+                stateManager.saveSerializedView(context);
             }
             context.responseComplete();
         }*/



Mime
View raw message