This week's giveaways are in the MongoDB and Jobs Discussion forums.
We're giving away four copies of Mongo DB Applied Patterns and 4 resume reviews from Five Year Itch and have the authors/reps on-line!
See this thread and this one for details.
The moose likes JSF and the fly likes Extending myfaces dataScroller Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Extending myfaces dataScroller" Watch "Extending myfaces dataScroller" New topic
Author

Extending myfaces dataScroller

Amr k. Saleh
Greenhorn

Joined: Aug 23, 2010
Posts: 26
Hi all,
I have an urgent question, what i want to do is to make server-side paging. I've Googled it but all approaches i found are too complex for me (I'm still JSF newbie) .
what i was thinking about is to create my own custom tag that extends myfaces DataScroller and override the action listeners and bind it to method in the backing bean.
I've no idea how to do this, is it possible ? is there a simpler way ? is there a ready made component that do server-side paging ?

any help is appreciated, thanks in advance.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14456
    
    7

I don't think you understand how the dataScroller works. It takes care of firing actions as needed to make the backing bean update its scroll context so that the page can then be re-rendered with the new data in view.

JSF isn't something where pages call arbitrary methods, especially not some "do-everything" scroll method. It's a platform intended for Views to fire actions. Which can then be handled by action listeners or action methods. Of the 2, action methods are simpler to setup and use and suffice for most cases.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Extending myfaces dataScroller
 
Similar Threads
Problem With Richfaces datatable and datascroller
Searching in DataTable
Add pipes to a datascroller pagination
Client-Side Paging
Input type attribute 'name' query?