• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Extending myfaces dataScroller

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
After some pecan pie, you might want to cleanse your palatte with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic