Author: abelevich
Date: 2007-05-16 08:36:18 -0400 (Wed, 16 May 2007)
New Revision: 779
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-05-16
12:09:45 UTC (rev 778)
+++
trunk/sandbox/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid.jspx 2007-05-16
12:36:18 UTC (rev 779)
@@ -12,8 +12,6 @@
component="org.richfaces.component.UIScrollableGrid"
- <f:call name="setUpState"/>
-
<h:styles>
/org/richfaces/renderkit/html/css/grid.xcss
</h:styles>
@@ -48,7 +46,7 @@
</div>
<input type="hidden" name="#{clientId}_state_input"
id="#{clientId}_state_input"/>
- <input type="hidden" name="#{clienId}_model_input"
id="#{clientId}_model_input"/>
+ <input type="hidden" name="#{clienId}_rows_input"
id="#{clientId}_rows_input" value="#{rows_count}"/>
<input type="button" name="#{clientId}_submit_input"
id="#{clientId}_submit_input"
onclick="#{this:getRowsAjaxUpdate(context,component)}"
style="display:none"/>
</div>
@@ -113,10 +111,10 @@
var currTime = (new Date()).getTime();
// ClientUILib.log(ClientUILogger.WARNING, "Document loaded over " +
(currTime - ClientUILib.startTime) + " miliseconds.");
var clientId = '#{clientId}';
- var rows_count = '#{rows_count}';
- var column_count = '#{row_column}';
+ var rows_count = $(clientId + "_rows_input").value;
+ var columns_count = '#{columns_count}';
- dataModel = new ClientUI.controls.grid.FakeArrayDataModel(1000, 8, clientId);
+ dataModel = new ClientUI.controls.grid.FakeArrayDataModel(rows_count,
columns_count, clientId);
var templates = [
{pane: GridLayout_Enum.HEADER, ref: clientId +"_" +
"GridHeaderTemplate"},