Author: abelevich
Date: 2007-05-05 11:58:55 -0400 (Sat, 05 May 2007)
New Revision: 657
Modified:
trunk/sandbox/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ScrollableGridBaseRenderer.java
Log:
Modified:
trunk/sandbox/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ScrollableGridBaseRenderer.java
===================================================================
---
trunk/sandbox/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ScrollableGridBaseRenderer.java 2007-05-05
15:58:47 UTC (rev 656)
+++
trunk/sandbox/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ScrollableGridBaseRenderer.java 2007-05-05
15:58:55 UTC (rev 657)
@@ -7,9 +7,11 @@
import javax.faces.context.ResponseWriter;
import org.ajax4jsf.framework.ajax.AjaxContext;
+import org.ajax4jsf.framework.renderer.RendererBase;
import org.ajax4jsf.framework.renderer.RendererUtils.HTML;
import org.richfaces.component.UIScrollableGrid;
import org.richfaces.renderkit.CompositeRenderer;
+import org.richfaces.utils.TemplateLoader;
/**
* @author Anton Belevich
@@ -21,14 +23,16 @@
private final String FOOTER_PART = "footer";
private final String HEADER_PART = "header";
-
+ //private final RendererBase cellTemplate =
TemplateLoader.loadTemplate("org.richfaces.renderkit.html.ScrollableGridCellRenderer");
+
private final ColumnVisitor headerRenderer = new ColumnVisitor(){
public void visit(FacesContext context, UIComponent component, ResponseWriter writer)
throws IOException {
writer.startElement(HTML.td_ELEM, component);
getUtils().writeAttribute(writer, "frozen",
component.getAttributes().get("frozen"));
+ getUtils().writeAttribute(writer,
"style",component.getAttributes().get("style"));
writer.writeText("\n", null);
if(component.getFacet(HEADER_PART) != null){
Show replies by date