I need to store the messages into the managed bean using Map. The tricky part is that I want to display the messages into the Map right after they are inserted. The solution I suppose will be to make Ajax calls infinitely to the server from the browser. How can I achieve this in JSF?