• Post Reply Bookmark Topic Watch Topic
  • New Topic

Extending myfaces dataScroller  RSS feed

 
Amr k. Saleh
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 18662
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!