Growl meets JSF
September 9, 2009 6 Comments
Mac OS X’s growl is an intuitive way to display messages from the system and other apps. So how can you bring this way of notification to web with JSF. It’s as simple as;
PrimeFaces Growl component simply replaces h:messages (lame) so growl is equipped with attributes such as showSummary, showDetail, globalOnly. Since growl displays FacesMessages severity information is provided with an icon that can be info, warn, error or fatal.
You can even integrate growl with your ajax request, following is an example;
<p:growl id="messages"/> <p:commandButton value="Save" update="messages" />
All sample applications of PrimeFaces use growl for notification here are some links;
Growl will also be integrated to PrimeFaces push support which is coming soon so all of a sudden clients can be notified of a message with Growl.