This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSF and the fly likes rich:datascroller - tell javascript what page it's on Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "rich:datascroller - tell javascript what page it Watch "rich:datascroller - tell javascript what page it New topic
Author

rich:datascroller - tell javascript what page it's on

kirk israel
Greenhorn

Joined: May 28, 2009
Posts: 27
Is there a way to get the richfaces datascroller object to tell some client side javascript what page it's on?

My project has specified some kind of annoying behavior for the multiselect checkboxes we've implemented, and they require knowing that what page the scroller is on, and when a page has been changed ...

To specify, I see http://www.jboss.org/file-access/default/members/jbossrichfaces/freezone/docs/devguide/en/html/rich_datascroller.html

there is a
onpagechange HTML: script expression; a page is changed
but I'm not sure if there is some kind of param or variable I can read that will tell me what the current page is, either a page-level global variable or a way of passing the information to a function within that HTML : script expression... (and how does "HTML: script expression" vary from the "The client side script methods" used in the other things onclick?)
 
jQuery in Action, 2nd edition
 
subject: rich:datascroller - tell javascript what page it's on