Author: konstantin.mishin
Date: 2008-04-09 12:11:39 -0400 (Wed, 09 Apr 2008)
New Revision: 7705
Modified:
trunk/ui/scrollableDataTable/src/main/templates/org/richfaces/scrollable-data-table.jspx
Log:
RF-2766
Modified:
trunk/ui/scrollableDataTable/src/main/templates/org/richfaces/scrollable-data-table.jspx
===================================================================
---
trunk/ui/scrollableDataTable/src/main/templates/org/richfaces/scrollable-data-table.jspx 2008-04-09
13:43:52 UTC (rev 7704)
+++
trunk/ui/scrollableDataTable/src/main/templates/org/richfaces/scrollable-data-table.jspx 2008-04-09
16:11:39 UTC (rev 7705)
@@ -238,34 +238,31 @@
</jsp:scriptlet>
<f:call name="contributorsEncodeHere"/>
- <script id="#{clientId}_grid_create_scripts"
type="text/javascript">
- //<![CDATA[
-
- #{this:getJavaScriptVarName(context, component)} =
#{this:createClientScrollableGrid(context, component)};
- #{this:getScriptContributions(context, component)};
-
- // ]]>
- </script>
- <f:call name="tearDownState"/>
</div>
</td>
</tr>
- <jsp:scriptlet>
- <![CDATA[
- facet = component.getFacet("footer");
- if (null != facet && facet .isRendered()) {
- ]]>
- </jsp:scriptlet>
<tr>
+ <jsp:scriptlet>
+ <![CDATA[
+ facet = component.getFacet("footer");
+ if (null == facet || !facet.isRendered()) {
+ getUtils().writeAttribute(writer, "style", "display:none;"
);
+ }
+ ]]>
+ </jsp:scriptlet>
<td>
<u:insertFacet name="footer" />
+ <script id="#{clientId}_grid_create_scripts"
type="text/javascript">
+ //<![CDATA[
+
+ #{this:getJavaScriptVarName(context, component)} =
#{this:createClientScrollableGrid(context, component)};
+ #{this:getScriptContributions(context, component)};
+
+ // ]]>
+ </script>
+ <f:call name="tearDownState"/>
</td>
</tr>
- <jsp:scriptlet>
- <![CDATA[
- }
- ]]>
- </jsp:scriptlet>
</tbody>
</table>
</f:root>
Show replies by date