Author: abelevich
Date: 2007-05-21 11:39:52 -0400 (Mon, 21 May 2007)
New Revision: 826
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-21
15:39:43 UTC (rev 825)
+++
trunk/sandbox/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ScrollableGridBaseRenderer.java 2007-05-21
15:39:52 UTC (rev 826)
@@ -190,10 +190,11 @@
writer.startElement(HTML.SPAN_ELEM, column);
String columnWidth = (String)column.getAttributes().get("width");
- String cell_id = state.getClientId() + ":" + CELL_ID_PREFFIX+
state.getRowIndex()+ "_" + state.getCellIndex();
+ String cell_id = state.getClientId() + ":" + CELL_ID_PREFFIX +
state.getRowIndex()+ "_" + state.getCellIndex();
getUtils().writeAttribute(writer, "id",cell_id);
getUtils().writeAttribute(writer, "class",
"ClientUI_Grid_BCBody");
getUtils().writeAttribute(writer, "style", "width:" +
columnWidth);
+ System.out.println("rendering cell: " + cell_id);
renderChildren(context, column);
writer.endElement(HTML.SPAN_ELEM);
AjaxContext ajaxContext = state.getAjaxContext();
@@ -216,6 +217,7 @@
}
};
+
protected String getJavaScriptVarName(FacesContext context, UIScrollableGrid grid) {
String id = grid.getBaseClientId(context);
return "Richfaces_ScrollableGrid_" + id.replaceAll("[^A-Za-z0-9_]",
"_");
@@ -326,6 +328,11 @@
grid.setRow_count(new Integer(Integer.parseInt(values[0])));
grid.setDataIndex(new Integer(Integer.parseInt(values[1])));
grid.setStartRow(new Integer(Integer.parseInt(values[2])));
+
+ System.out.println("row count: " + grid.getRow_count());
+ System.out.println("data index: " + grid.getDataIndex());
+ System.out.println("start row: " + grid.getStartRow());
+
grid.queueEvent(new AjaxEvent(grid));
}
Show replies by date