| 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
|
|
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.
|
 |
 |
|
|
subject: Extending myfaces dataScroller
|
|
|