This content has been marked as final.
Show 2 replies
-
1. Re: Getting Next Page From <rich:datascroller>
ilya_shaikovsky Feb 1, 2008 5:46 AM (in response to neilac333)It isn't nessesary to pass the value from the client if you use listener.. check my simple code.. I think its usable in your case:
<rich:datascroller scrollerListener="#{bean.actionListener}"/>
public void actionListener(DataScrollerEvent event) { System.out.println(event.getNewScrolVal()); System.out.println(event.getOldScrolVal()); }
-
2. Re: Getting Next Page From <rich:datascroller>
neilac333 Feb 1, 2008 9:41 PM (in response to neilac333)Thanks, Ilya. That is just what I needed.
It is interesting though that the DataScrollerEvent contains the page number if the user chooses a number or the type of button that was pressed. This is certainly not surprising, but there seem to be more constants than there are buttons. Is there some plan to add more buttons to the scroller in the future?
Thanks again.