Author: abelevich
Date: 2007-05-04 09:52:13 -0400 (Fri, 04 May 2007)
New Revision: 649
Modified:
trunk/sandbox/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ColumnWalker.java
Log:
Modified:
trunk/sandbox/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ColumnWalker.java
===================================================================
---
trunk/sandbox/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ColumnWalker.java 2007-05-04
13:52:02 UTC (rev 648)
+++
trunk/sandbox/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ColumnWalker.java 2007-05-04
13:52:13 UTC (rev 649)
@@ -6,12 +6,13 @@
import java.io.IOException;
import java.util.Iterator;
-import javax.faces.component.UIColumn;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
import org.ajax4jsf.framework.renderer.RendererUtils.HTML;
+import org.richfaces.component.UIScrollableGrid;
+import org.richfaces.component.UIScrollableGridColumn;
/**
* @author Anton Belevich
@@ -29,20 +30,23 @@
return ;
}
- if(null != component.getChildren()){
- writer.startElement(HTML.TR_ELEMENT, component);
- writer.writeText("\n", null);
+ if(component instanceof UIScrollableGrid){
- for (Iterator iter = component.getChildren().iterator(); iter.hasNext(); ) {
- UIComponent kid = (UIComponent) iter.next();
- if (kid.isRendered()) {
- if (kid instanceof UIColumn){
- visitor.visit(context, kid, writer);
+ if(null != component.getChildren()){
+ writer.startElement(HTML.TR_ELEMENT, component);
+ writer.writeText("\n", null);
+
+ for (Iterator iter = component.getChildren().iterator(); iter.hasNext(); ) {
+ UIComponent kid = (UIComponent) iter.next();
+ if (kid.isRendered()) {
+ if (kid instanceof UIScrollableGridColumn){
+ visitor.visit(context, kid, writer);
+ }
}
- }
- }
- writer.endElement(HTML.TR_ELEMENT);
- writer.writeText("\n", null);
- }
+ }
+ writer.endElement(HTML.TR_ELEMENT);
+ writer.writeText("\n", null);
+ }
+ }
}
}