You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2008/10/22 15:42:29 UTC

svn commit: r707073 - in /myfaces/trinidad/trunk_1.2.x/trinidad-partial-lifecycle: pom.xml src/main/java/org/apache/myfaces/trinidadinternal/lifecycle/RenderResponseExecutor.java

Author: bommel
Date: Wed Oct 22 06:42:28 2008
New Revision: 707073

URL: http://svn.apache.org/viewvc?rev=707073&view=rev
Log:
(TRINIDAD-1220) Partial Lifecycle for Trinidad

Modified:
    myfaces/trinidad/trunk_1.2.x/trinidad-partial-lifecycle/pom.xml
    myfaces/trinidad/trunk_1.2.x/trinidad-partial-lifecycle/src/main/java/org/apache/myfaces/trinidadinternal/lifecycle/RenderResponseExecutor.java

Modified: myfaces/trinidad/trunk_1.2.x/trinidad-partial-lifecycle/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk_1.2.x/trinidad-partial-lifecycle/pom.xml?rev=707073&r1=707072&r2=707073&view=diff
==============================================================================
--- myfaces/trinidad/trunk_1.2.x/trinidad-partial-lifecycle/pom.xml (original)
+++ myfaces/trinidad/trunk_1.2.x/trinidad-partial-lifecycle/pom.xml Wed Oct 22 06:42:28 2008
@@ -43,24 +43,11 @@
     </dependency>
 
     <dependency>
-      <groupId>javax.portlet</groupId>
-      <artifactId>portlet-api</artifactId>
-    </dependency>
-
-    <dependency>
       <groupId>org.apache.myfaces.core</groupId>
       <artifactId>myfaces-api</artifactId>
       <scope>provided</scope>
     </dependency>
 
-<!--
-    <dependency>
-      <groupId>org.apache.myfaces.trinidad</groupId>
-      <artifactId>trinidad-api</artifactId>
-      <version>${project.version}</version>
-    </dependency>
--->
-
     <dependency>
       <groupId>org.apache.myfaces.trinidad</groupId>
       <artifactId>trinidad-impl</artifactId>

Modified: myfaces/trinidad/trunk_1.2.x/trinidad-partial-lifecycle/src/main/java/org/apache/myfaces/trinidadinternal/lifecycle/RenderResponseExecutor.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk_1.2.x/trinidad-partial-lifecycle/src/main/java/org/apache/myfaces/trinidadinternal/lifecycle/RenderResponseExecutor.java?rev=707073&r1=707072&r2=707073&view=diff
==============================================================================
--- myfaces/trinidad/trunk_1.2.x/trinidad-partial-lifecycle/src/main/java/org/apache/myfaces/trinidadinternal/lifecycle/RenderResponseExecutor.java (original)
+++ myfaces/trinidad/trunk_1.2.x/trinidad-partial-lifecycle/src/main/java/org/apache/myfaces/trinidadinternal/lifecycle/RenderResponseExecutor.java Wed Oct 22 06:42:28 2008
@@ -17,27 +17,15 @@
  * limitations under the License.
  */
 
-import org.apache.myfaces.trinidad.context.RenderingContext;
-import org.apache.myfaces.trinidad.context.FormData;
-import org.apache.myfaces.trinidad.render.ExtendedRenderKitService;
-import org.apache.myfaces.trinidad.util.Service;
 import org.apache.myfaces.trinidad.logging.TrinidadLogger;
-import org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderingContext;
-import org.apache.myfaces.trinidadinternal.renderkit.core.CoreResponseStateManager;
-import org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlConstants;
-import org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PartialPageUtils;
 
 import javax.faces.FacesException;
 import javax.faces.application.Application;
 import javax.faces.application.ViewHandler;
 import javax.faces.component.ContextCallback;
-import javax.faces.component.UIComponent;
 import javax.faces.context.FacesContext;
-import javax.faces.context.ResponseWriter;
 import javax.faces.event.PhaseId;
-import javax.servlet.http.HttpServletResponse;
 import java.io.IOException;
-import java.util.Map;
 
 public class RenderResponseExecutor implements PhaseExecutor
 {
@@ -46,9 +34,11 @@
 
   public boolean execute(FacesContext facesContext)
   {
-    String[] partialTargets = PartialLifecycleUtils.getPartialTargets(facesContext);
+
     try
     {
+      // TODO partial rendering
+      /*String[] partialTargets = PartialLifecycleUtils.getPartialTargets(facesContext);
       if (partialTargets != null)
       {
         // Most of this is a copy from ViewHandlerImpl
@@ -154,11 +144,11 @@
           }
         }
       } else
-      {
+      { */
         Application application = facesContext.getApplication();
         ViewHandler viewHandler = application.getViewHandler();
         viewHandler.renderView(facesContext, facesContext.getViewRoot());
-      }
+      //}
     } catch (IOException e)
     {
       throw new FacesException(e.getMessage(), e);