File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes clear h:messages? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "clear h:messages?" Watch "clear h:messages?" New topic
Author

clear h:messages?

nimo frey
Ranch Hand

Joined: Jun 28, 2008
Posts: 580
Does anyone know how I can clear the list of facesMessages in a managedBean?
Anil kumar
Greenhorn

Joined: Dec 05, 2008
Posts: 3
try ..

Iterator messageIterator = FacesContext.getCurrentInstance().getMessages();
while (messageIterator.hasNext()) {
messageIterator.remove();
}
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: clear h:messages?