Author: abelevich
Date: 2007-06-04 10:52:59 -0400 (Mon, 04 Jun 2007)
New Revision: 1000
Modified:
trunk/sandbox/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid.jspx
Log:
Modified:
trunk/sandbox/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid.jspx
===================================================================
---
trunk/sandbox/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid.jspx 2007-06-04
14:52:47 UTC (rev 999)
+++
trunk/sandbox/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid.jspx 2007-06-04
14:52:59 UTC (rev 1000)
@@ -295,41 +295,8 @@
grid.setProgressCtrl(progress);
Event.observe(grid.eventOnSort, "on sort", onSorted);
-
- // function onColumnResize(column, width) {call to ajax4jsf}
- //Event.observe(grid.eventOnResizeColumn, "", onColumnResize);
-
- // ClientUILib.log(ClientUILogger.WARNING, "Grid control created over " +
((new Date()).getTime() - currTime) + " miliseconds.");
-
},
- /*updatePagePart: function (id) {
- var newnode = this.getElementById(id);
- if (!newnode) {
- LOG.error("New node for ID " + id + " is not present in
response");
- return;
- }
- var oldnode = window.document.getElementById(id);
- if (oldnode) {
- var anchor = oldnode.parentNode;
- Sarissa.clearChildNodes(oldnode);
- if (oldnode.outerHTML) {
- LOG.debug("Replace content of node by outerHTML()");
- oldnode.outerHTML = (new XMLSerializer).serializeToString(newnode);
- } else {
- var importednode;
- importednode = window.document.importNode(newnode, true);
- LOG.debug("Replace content of node by replaceChild()");
- anchor.replaceChild(importednode, oldnode);
- }
- if (!A4J.AJAX._scriptEvaluated) {
- this.evalScripts(newnode);
- }
- LOG.debug("Update part of page for Id: " + id + "
successful");
- } else {
- LOG.warn("Node for replace by response with id " + id + " not
found in document");
- }
- },*/
-
+
onCompleteGridInvalidation : function(request, event, data){
var theDoc = document;
var getEl = theDoc.getElementById;
@@ -341,7 +308,7 @@
for(i=0; i<count; i++) {
rowindex = startRow + i;
if(rowindex >= rowCount) rowindex -= rowCount;
- id = "f:row_" + rowindex;
+ id = '#{clientId}' + ":f:row_" + rowindex;
row = request.getElementById(id);
if(ClientUILib.isIE) {
@@ -353,7 +320,7 @@
AjaxUpdater.updateTr(el,row.innerHTML);
}
- id = "n:row_" + rowindex;
+ id = '#{clientId}' + ":n:row_" + rowindex;
row = request.getElementById(id);
if(ClientUILib.isIE) {
el = getEl(id);
Show replies by date