The moose likes JSF and the fly likes howto detect datacroller button press Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "howto detect datacroller button press" Watch "howto detect datacroller button press" New topic
Author

howto detect datacroller button press

Arnie Morein
Greenhorn

Joined: Dec 20, 2006
Posts: 16
I build a data table and scroller in code at run time for an ad-hoc inquiry app. I need to know which button (first)(previous)(next)(last) the user pressed. I had done this:

htmlDataScroller.setActionListener(
application.createMethodBinding("#{transactionSearchBean.scrollerAction}",
new Class[] {ActionEvent.class}));

but I cannot figure out how to discern which button was pressed.

I was thinking maybe if I used a value binding to the control, there might be a property that could tell me, but thus far, looking through the API docs has be fruitless.

I understand that the entire purpose of the datascroller is automate the paging but I had to write a descendant of datamodel that allows me to page through a resultset based on a stored procedure. The SP requires parameters that tell it which page to display (based on the number of recs per page).

As I understand it, shouldn't the data scroller call methods on the data model to point to a new rowIndex?
 
 
subject: howto detect datacroller button press
 
Threads others viewed
NullPointerException help....
JSP Help
when broswer back button pressed form data is changed.
JTextArea page 415 of Head First Java
Focus in a JPopupMenu
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture