Author: sergeyhalipov
Date: 2007-07-13 05:40:58 -0400 (Fri, 13 Jul 2007)
New Revision: 1615
Modified:
branches/3.0.2/richfaces/datascroller/src/main/java/org/richfaces/renderkit/html/DataScrollerRenderer.java
Log:
http://jira.jboss.com/jira/browse/RF-454
Modified:
branches/3.0.2/richfaces/datascroller/src/main/java/org/richfaces/renderkit/html/DataScrollerRenderer.java
===================================================================
---
branches/3.0.2/richfaces/datascroller/src/main/java/org/richfaces/renderkit/html/DataScrollerRenderer.java 2007-07-13
01:21:25 UTC (rev 1614)
+++
branches/3.0.2/richfaces/datascroller/src/main/java/org/richfaces/renderkit/html/DataScrollerRenderer.java 2007-07-13
09:40:58 UTC (rev 1615)
@@ -54,8 +54,7 @@
ComponentVariables variables = ComponentsVariableResolver.getVariables(
this, component);
variables.setVariable("dataTable", dataTable);
- if (!(scroller.getPageCount(dataTable) == 1)
- || (scroller.isRenderIfSinglePage())) {
+ if (scroller.isRendered()) {
variables.setVariable("rendered", Boolean.TRUE);
super.encodeBegin(context, component);
}