You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ms...@apache.org on 2010/06/25 21:02:13 UTC

svn commit: r958080 - /myfaces/trinidad/trunk/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXColumnTemplate.java

Author: mstarets
Date: Fri Jun 25 19:02:13 2010
New Revision: 958080

URL: http://svn.apache.org/viewvc?rev=958080&view=rev
Log:
Re-instated setPartialTarget() changes, since the test failures were due to other problems

Modified:
    myfaces/trinidad/trunk/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXColumnTemplate.java

Modified: myfaces/trinidad/trunk/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXColumnTemplate.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXColumnTemplate.java?rev=958080&r1=958079&r2=958080&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXColumnTemplate.java (original)
+++ myfaces/trinidad/trunk/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXColumnTemplate.java Fri Jun 25 19:02:13 2010
@@ -20,6 +20,8 @@ package org.apache.myfaces.trinidad.comp
 
 import javax.faces.context.FacesContext;
 
+import org.apache.myfaces.trinidad.context.PartialPageContext;
+
 /**
  * Base class for UIXColumns.
  * The facets of this component are not processed during decode,validate and
@@ -71,4 +73,16 @@ public abstract class UIXColumnTemplate 
     // Process all the children of this component
     new ChildLoop.Update().runAlways(context, this);
   }
+  
+  /**
+   * When the column is being PPR-ed, we have to PPR the entire table
+   * Note that this will work for the nested columns too because the parent column's 
+   * setPartialTarget() will in turn delegate to the table
+   */
+  @Override
+  protected void setPartialTarget(FacesContext facesContext,
+    PartialPageContext partialContext)
+  {
+    UIXComponent.addPartialTarget(facesContext, partialContext, getParent());
+  }
 }