Author: abelevich
Date: 2007-05-29 13:28:13 -0400 (Tue, 29 May 2007)
New Revision: 934
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-29
17:27:14 UTC (rev 933)
+++
trunk/sandbox/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid.jspx 2007-05-29
17:28:13 UTC (rev 934)
@@ -11,7 +11,7 @@
baseclass="org.richfaces.renderkit.html.ScrollableGridBaseRenderer"
component="org.richfaces.component.UIScrollableGrid"
-
+ <jsp:directive.page import="javax.faces.component.UIComponent"/>
<h:styles>
/org/richfaces/renderkit/html/css/grid.xcss
</h:styles>
@@ -27,7 +27,6 @@
<f:call name="setUpColumnsWidth"/>
- <div id="loadLabel" style="display:none; background-color: #A0D1FF;
border: 1px solid #0027C4; width: 200px; height: 50px; text-align: center; vertical-align:
middle;"><font size='4'
color='white'>Loading...</font></div>
<div id="#{clientId}_GridContainer" style="width:
#{component.attributes['width']};height:
#{component.attributes['height']};" class="ClientUI_Grid" >
<div id="#{clientId}_GridHeaderTemplate"
class="ClientUI_InlineBox" style="width:
#{component.attributes['width']};">
@@ -191,6 +190,16 @@
// ]]>
</script>
+
+ <jsp:scriptlet>
+ if(component.getFacets().containsKey("splash")){
+ UIComponent splash = component.getFacet("splash");
+ String splash_id = splash.getClientId(context);
+ variables.setVariable("splash_id",splash_id);
+ renderChild(context, splash);
+ }
+ </jsp:scriptlet>
+
<script id="#{clientId}_grid_create_scripts"
type="text/javascript">
//<![CDATA[
@@ -230,8 +239,10 @@
indexColumnWidth: 40
}
);
+
+ var splash_id = '#{splash_id}';
- var progress = new ClientUI.common.box.SplashBox("loadLabel", null, 300,
true);
+ var progress = new ClientUI.common.box.SplashBox(splash_id, null, 300, true);
grid.setProgressCtrl(progress);
Event.observe(grid.eventOnSort, "on sort", onSorted);