Continuous Scrolling in ADF Tables


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 Author

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.

Comments are closed.