I've got a facelet that contains, among other things, a dataTable and an attached datascroller.
That code behaves as it should.
However I had the nifty idea of using a inputNumberSlider to alter the the # of elements appear on each page of the dataTable.
<rich:panel id="currentSubjectPanel"> <f:facet name="header">Current Subjects</f:facet> <rich:datascroller id="currentSubjectDatascroller" renderIfSinglePage="false" for="currentSubjects" > <f:facet name="pages"> <h:outputText value="#{pageIndex} / #{pages}"></h:outputText> </f:facet> </rich:datascroller> <rich:dataTable id="currentSubjects" value="#{study.currentStudySubjects}" var="studySubject" rows="#{viewStudyAction.currentStudySubjectViewSize}"> <rich:column><f:facet name="header">Name</f:facet> #{studySubject.subject.firstName} #{studySubject.subject.lastName} </rich:column> <!-- there are a few more columns here but it's not important to this question so they are omitted --> </rich:dataTable> <rich:inputNumberSlider value="#{viewStudyAction.currentStudySubjectViewSize}" minValue="1" maxValue="#{viewStudyAction.maxCurrentStudySubjectViewSize}" showInput="false" > <a4j:support event="onchange" requestDelay="500" reRender="currentSubjectPanel" ignoreDupResponces="true" eventsQueue="myQueue"/> </rich:inputNumberSlider> </rich:panel>
I'm sorry to bumb this topic back to the top of the pile but does anyone have any idea on what I'm doing wrong?
How can I make a inputNumberSlider control the # of rows displayed by a dataTable?
thanks
Mike Kohout