Author: maksimkaszynski
Date: 2007-08-03 11:12:46 -0400 (Fri, 03 Aug 2007)
New Revision: 2051
Modified:
trunk/sandbox/ui/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ScrollableGridBaseRenderer.java
Log:
fixed incorrect row rendering
Modified:
trunk/sandbox/ui/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ScrollableGridBaseRenderer.java
===================================================================
---
trunk/sandbox/ui/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ScrollableGridBaseRenderer.java 2007-08-03
14:30:44 UTC (rev 2050)
+++
trunk/sandbox/ui/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ScrollableGridBaseRenderer.java 2007-08-03
15:12:46 UTC (rev 2051)
@@ -340,8 +340,8 @@
row_id = baseClientId + ":f:" + state.getRowIndex();
writer.startElement("tr", grid);
+ getUtils().writeAttribute(writer, "class","dr-sgrid-rb " +
state.getRowClass(state.getRowIndex()));
getUtils().writeAttribute(writer,"id",row_id);
- getUtils().writeAttribute(writer,"class", "dr-sgrid-rb");
collection.add(row_id);
}else if(!state.isFrozenColumn() && !normalTRRendered){
@@ -355,7 +355,7 @@
writer.startElement("tr", grid);
getUtils().writeAttribute(writer,"id",row_id);
- getUtils().writeAttribute(writer,"class", "dr-sgrid-rb");
+ getUtils().writeAttribute(writer, "class","dr-sgrid-rb " +
state.getRowClass(state.getRowIndex()));
normalTRRendered = true;
collection.add(row_id);
@@ -364,6 +364,10 @@
UIScrollableGridColumn column = (UIScrollableGridColumn)kid;
columnsCount += cellRenderer.visit(context, column, writer, state);
// columnsCount += cellRenderer.visit(context, column, writer, state);
+
+
+
+
state.nextCell();
}
@@ -372,6 +376,12 @@
}
+// if(!state.isFrozenPart()){
+// writer.startElement("td", grid);
+// getUtils().writeAttribute(writer, "class","dr-sgrid-bc " +
state.getColumnClass(state.getCellIndex()));
+// writer.endElement("td");
+// }
+
writer.endElement("tr");
state.setCellIndex(0);
state.nextRow();
Show replies by date