Author: abelevich
Date: 2007-06-04 10:52:47 -0400 (Mon, 04 Jun 2007)
New Revision: 999
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-06-04
14:51:32 UTC (rev 998)
+++
trunk/sandbox/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ScrollableGridBaseRenderer.java 2007-06-04
14:52:47 UTC (rev 999)
@@ -176,11 +176,12 @@
int index = ((Integer)rowIndex).intValue();
state.setRowIndex(index);
+ String baseClientId = grid.getBaseClientId(context);
if(state.isFrozenPart()){
- row_id = "f:row_" + index;
+ row_id = baseClientId + ":f:row_" + index;
}else{
- row_id = "n:row_" + index;
+ row_id = baseClientId + ":n:row_" + index;
}
ResponseWriter writer = context.getResponseWriter();
@@ -230,12 +231,13 @@
if (kid.isRendered()) {
if (kid instanceof UIScrollableGridColumn){
-
+ String baseClientId = grid.getBaseClientId(context);
if(state.isFrozenColumn() && !frozenTRRendered){
state.setFrozenPart(true);
frozenTRRendered = true;
- row_id = "f:row_" + state.getRowIndex();
+
+ row_id = baseClientId + ":f:row_" + state.getRowIndex();
writer.startElement("tr", grid);
getUtils().writeAttribute(writer,"id",row_id);
getUtils().writeAttribute(writer,"class",
"ClientUI_Grid_BR");
@@ -248,7 +250,7 @@
}
state.setFrozenPart(false);
- row_id = "n:row_" + state.getRowIndex();
+ row_id = baseClientId + ":n:row_" + state.getRowIndex();
writer.startElement("tr", grid);
getUtils().writeAttribute(writer,"id",row_id);
@@ -510,6 +512,7 @@
System.out.println("");
System.out.println("ScrollableGridBaseRenderer.renderAjaxChildren()");
System.out.println("");
+
grid.getResponseData().clear();
ResponseWriter writer = context.getResponseWriter();
writer.startElement("table", grid);
Show replies by date