-
1. Re: RichFaces datascroller for DataTable
ilya_shaikovsky Apr 3, 2008 10:56 AM (in response to ns76)could you update to 3.2.0?
B.t.w. in our demo under 3.1.4 datascroller works jsut fine.. So seems we need more info in any way.. -
2. Re: RichFaces datascroller for DataTable
ns76 Apr 3, 2008 11:19 AM (in response to ns76)Here is the JSP code
Code begins
*****************
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<h:form>
<rich:spacer height="5" />
<rich:dataTable width="75%" rows="10" id="reportsList"
columnClasses="col" value="#{reportListBean.reports}" var="result">
<f:facet name="header">
<rich:columnGroup>
<h:column rendered="#{reportListBean.columnStatus['id']}">
<h:outputText styleClass="headerText" value="Request ID" />
</h:column>
<h:column rendered="#{reportListBean.columnStatus['status']}">
<h:outputText styleClass="headerText" value="Status" />
</h:column>
<h:column rendered="#{reportListBean.columnStatus['lastUpdate']}">
<h:outputText styleClass="headerText" value="LastUpdate" />
</h:column>
<h:column rendered="#{reportListBean.columnStatus['createdBy']}">
<h:outputText styleClass="headerText" value="Created By" />
</h:column>
<h:column rendered="#{reportListBean.columnStatus['history']}">
<h:outputText styleClass="headerText" value="History" />
</h:column>
</rich:columnGroup>
</f:facet>
<h:column rendered="#{reportListBean.columnStatus['id']}">
<h:outputText value="#{result.id}" />
</h:column>
<h:column rendered="#{reportListBean.columnStatus['lastUpdate']}">
<h:outputText value="#{result.lastUpdated}" />
</h:column>
<h:column rendered="#{reportListBean.columnStatus['createdBy']}">
<h:outputText value="#{result.displayCreatedByUser}" />
</h:column>
<h:column rendered="#{reportListBean.columnStatus['history']}">
<h:outputText value="show" />
</h:column>
</rich:dataTable>
<rich:spacer height="5" />
<rich:datascroller align="center" for="reportsList" maxPages="20" />
</h:form>
*************Code ends*********
The records in the table are returned from a call to the backing bean.
The dataScroller shows the correct number of pages ( since i tried returning 20 records from the backing bean, the scroller shows pages 1 and 2 but once you click on them, nothing happens.)
The really strange thing is that i have had success with the datascroller before - it was infact working until just a couple of days back.
I would have to consult with my team lead about switching to 3.2 - its not in my hands.
Thanks,
NS