You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2006/11/10 15:24:27 UTC
svn commit: r473347 -
/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/RendererBase.java
Author: weber
Date: Fri Nov 10 06:24:26 2006
New Revision: 473347
URL: http://svn.apache.org/viewvc?view=rev&rev=473347
Log:
TOBAGO-174 (Changed signature of TobagoRenderer to standard Renderer signature)
undoing Changes from 471397 to 472219
Tobago stops rendering at all after that
Modified:
myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/RendererBase.java
Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/RendererBase.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/RendererBase.java?view=diff&rev=473347&r1=473346&r2=473347
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/RendererBase.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/RendererBase.java Fri Nov 10 06:24:26 2006
@@ -48,6 +48,7 @@
import java.util.Map;
import java.util.Arrays;
import java.util.Locale;
+import java.util.Iterator;
public abstract class RendererBase
extends Renderer implements TobagoRenderer {
@@ -60,7 +61,7 @@
LOG.debug("*** begin " + component);
}
try {
- super.encodeBegin(facesContext, component);
+ encodeBeginTobago(facesContext, component);
} catch (IOException e) {
throw e;
} catch (RuntimeException e) {
@@ -86,7 +87,7 @@
LOG.info("UUUUUUUUUUUUUUUUUUUUU UIPage XXXXXXXXXXXXXXXXXXXXXXXXXXXXxx");
}
- super.encodeChildren(facesContext, component);
+ encodeChildrenTobago(facesContext, component);
if (LOG.isDebugEnabled()) {
LOG.debug("* children " + component);
@@ -99,7 +100,7 @@
LOG.debug("*** end " + component);
}
try {
- super.encodeEnd(facesContext, component);
+ encodeEndTobago(facesContext, component);
} catch (IOException e) {
throw e;
} catch (RuntimeException e) {
@@ -257,7 +258,35 @@
}
}
-
+ /**
+ * Normally not needed to overrwrite
+ * */
+ public void encodeBeginTobago(FacesContext facesContext,
+ UIComponent component) throws IOException {
+ }
+
+ public void encodeChildrenTobago(FacesContext facesContext,
+ UIComponent component) throws IOException {
+ for (Iterator i = component.getChildren().iterator(); i.hasNext();) {
+ UIComponent child = (UIComponent) i.next();
+ //l
+ if (child.isRendered()) {
+// if (ComponentUtil.getBooleanAttribute(
+// child,
+// ATTR_SUPPRESSED)) {
+ child.encodeBegin(facesContext);
+ if (child.getRendersChildren()) {
+ child.encodeChildren(facesContext);
+ }
+ child.encodeEnd(facesContext);
+// }
+ }
+ }
+ }
+
+ public void encodeEndTobago(FacesContext facesContext,
+ UIComponent component) throws IOException {
+ }
protected String getCurrentValue(
FacesContext facesContext, UIComponent component) {