Dynamically lazyloading vertical layout with scrollbar - How?

Hi!
i am pretty new to vaadin and I have to implement the following application wit vaadin. I have a database containing a large number of html snippets. I want a scrolling vertical layout to present the html snippets to the user. The user should be able to browse further down through the available snippets using the scrollbar. The panel should grow dynamically with components when the user scrolls down. Snippets leaving the visible part of the screen should be marked as read. My question is, how to do this with vaadin. I especially encounter the following problems:

  • I don’t know the size of a snippet: how do I know, how many I have to load to fill the screen?
  • how do I know when to load another chunk of snippets?
  • how do I know that a snippet left the screen due to scrolling? How can I mark them as read?

Any help will be appreciated!

Andreas

Hi again!

Figured it out by myself. Created a custom widget for it.

So Long, and Thanks for All the Fish!

Andreas

Good you solved it. If you have some short example code for your solutions to post, it may be helpful for people experiencing similar problems. :slight_smile: