This content has been marked as final.
Show 3 replies
-
1. Re: Rich DataSCroller to show dropdown with number of pages.
ilya_shaikovsky Apr 9, 2009 4:19 AM (in response to anand_sridhar)you need to implement your own control in pages facet of datascroller. here is the code which provides input and button inside datascroller component
<f:facet name="pages"> <h:panelGroup> <h:outputText value="Page " /> <input type="text" id="pagerInput" value="#{pageIndex}" class="rich-filter-input" style="width:20px" maxlength="5" /> <h:outputText value=" of #{pages} " /> <h:outputLink value="#" onclick="Event.fire(this, 'rich:datascroller:onscroll', {'page': isNaN(Number($('pagerInput').value)) ? #{pageIndex} : Math.floor(Number($('pagerInput').value))});"> <h:outputText value="Go" /> </h:outputLink> <h:graphicImage width="6" style="border:0;" value="/images/empty.gif"/> </h:panelGroup> </f:facet>
-
2. Re: Rich DataSCroller to show dropdown with number of pages.
anand_sridhar Apr 9, 2009 5:24 AM (in response to anand_sridhar)Adding this code ended up adding a new pagination scroll bar.
I had actually wanted to add a drop down with page numbers as options. -
3. Re: Rich DataSCroller to show dropdown with number of pages.
nbelaevski Apr 9, 2009 5:35 AM (in response to anand_sridhar)Just replace h:outputLink with dropdown so that it will work in the same way as on this example.