Data Scroller is not working when there is more number of re
aboocs01 Jun 26, 2009 8:05 AMhi this is interesting,
we have a datatable with 20 records and we are using datascroller for pagination and mention as mentioned that datascroller should render if there is more than 10 records...
when i scroll across the pages i am not able to see the value?....
this is my code
<h:panelGroup id="matrix" layout="block"
style="width: 800px; height:200px; overflow: auto;">
<rich:dataTable id="historylist" var="history"
value="#{mealPlansSetup.mealPlanHistory}" rows="10" width="100%"
rowClasses="rich-table-oddRow,rich-table-evenRow"
columnClasses="align-left,align-center,align-right,align-right,align-left,align-center,align-left,align-center,align-left">
<f:facet name="footer">
<rich:datascroller align="left" for="historylist" maxPages="20"
boundaryControls="auto" fastControls="auto" stepControls="auto"
renderIfSinglePage="false" />
</f:facet>
<f:facet name="header">
<rich:columnGroup>
<h:column>
<h:outputText value="#{messages['rich.name'] }" />
</h:column>
<rich:column>
<h:outputText value="#{messages['rich.active'] }" />
</rich:column>
<rich:column>
<h:outputText value="#{messages['rich.adultPrice']}" />
</rich:column>
<rich:column>
<h:outputText value="#{messages['rich.childPrice']}" />
</rich:column>
<rich:column>
<h:outputText value="#{messages['rich.chargeBasis']}" />
</rich:column>
<rich:column>
<h:outputText value="#{messages['rich.createdDate']}" />
</rich:column>
<rich:column>
<h:outputText value="#{messages['rich.createdUser']}" />
</rich:column>
<rich:column >
<h:outputText value="#{messages['rich.modifiedDate']}" />
</rich:column>
<rich:column>
<h:outputText value="#{messages['rich.modifiedUser']}" />
</rich:column>
</rich:columnGroup>
</f:facet>
<h:column>
<h:outputText value="#{history.name}" />
<h:panelGroup layout="block" styleClass="small-text">
<h:outputText value="#{mealPlansSetup.space(history.description)}" />
</h:panelGroup>
</h:column>
<rich:column>
<h:outputText value="#{history.active}" />
</rich:column>
<rich:column>
<h:outputText
value="#{systemUtils.formatDecimal(history.adultPrice, selectedInstance.decimalFormat.businessValue)}" />
</rich:column>
<rich:column>
<h:outputText
value="#{systemUtils.formatDecimal(history.childPrice, selectedInstance.decimalFormat.businessValue)}" />
</rich:column>
<rich:column>
<h:outputText value="#{history.chargeBasis.name}" />
</rich:column>
<rich:column>
<h:outputText
value="#{systemUtils.convertTimeZoneForDay(history.createDate,selectedInstance.timeZone.businessValue , selectedInstance.dateFormat.businessValue)}" />
</rich:column>
<rich:column>
<h:outputText value="#{history.createUser}" />
</rich:column>
<rich:column>
<h:outputText
value="#{systemUtils.convertTimeZoneForDay(history.modifyDate, selectedInstance.timeZone.businessValue ,selectedInstance.dateFormat.businessValue)}" />
</rich:column>
<rich:column>
<h:outputText value="#{history.modifyUser}" />
</rich:column>
</rich:dataTable></h:panelGroup>
<br />
<h:panelGroup>
<input type="button" value="#{messages['button.close']}" title="#{messages['button.close']}"
onclick="#{rich:component('mealPlanHistoryDlg')}.hide()" />
</h:panelGroup>
this datatable in modalpanel.... tell me why datascroller is not displaying any data when i click scroller to see across the data in table??... where is wrong in my code?..