Continuous Scrolling in ADF Tables

Paco van der Linden
0 0
Read Time:42 Second

One of the more promising patterns in Web UI development is Continuous Scrolling. Popular sites such as Twitter and Facebook use it. With Continuous Scrolling, new data is automatically retrieved as the user has scrolled to the bottom of the page.

I recently discovered that this is already a (not so well-known) feature for the af:table component in ADF 11g! And it is so very easy to implement! Simply set RowCountThreshold=”-1″ on your iterator in your bindings. Done!

Coincidentally it also helps performance, because now the table doesn’t need to know the exact number of rows that are available, it will discover new rows when the user scrolls to the bottom of the page. This means that getEstimatedRowCount() will not be called anymore. This might save you another query to the database. You should try it sometime.

About Post Author

Paco van der Linden

Software engineer with an interest in amazing and performant UI's, distributed systems and robotics. Graduated with a masters degree in Computer Science and Engineering, focusing on Information Security Technology (i.e. a lot of mathematics, cryptographic algorithms and protocols, secure coding and such). I focus on web application development, using the latest front-end technologies, e.g. WebComponents/Polymer, AngularJS, etc. Because of AMIS's long history with Oracle technology (almost exclusively), my speciality has become creating user-friendly interfaces on top of complex enterprise systems.
Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %
Next Post

Advanced SQL to find valid periods - juggling with outer joins, running totals and analytical functions

After teaching the Advanced SQL Masterclass recently, one of the attendees confronted me with an interesting challenge for me to solve with all the tools I had been discussing all day. This challenge originates in the world of insurance and revolves around policies. Apparently (I am not much of an […]
%d bloggers like this: