I'm trying to create a small notification feature in my personal project, I'm using **JSF**, **Primefaces** as technologies, and i would like to make the **ul** and **li** dynamically behaving based on the size od data retrieved from database, like **github** or **stackoverflow** or **facebook** does.

I hope you guys can give a clue solution, suggestion, a tutorial.

Thanks in advance.