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/11 16:43:32 UTC
svn commit: r953706 -
/myfaces/trinidad/trunk/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXColumnTemplate.java
Author: mstarets
Date: Fri Jun 11 14:43:32 2010
New Revision: 953706
URL: http://svn.apache.org/viewvc?rev=953706&view=rev
Log:
TRINIDAD-1827 - UIXColumn shoould support being added as a partial target (the table should be PPR-ed in that case).
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=953706&r1=953705&r2=953706&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 11 14:43:32 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());
+ }
}