Forums Register Login

clear h:messages?

+Pie Number of slices to send: Send
Does anyone know how I can clear the list of facesMessages in a managedBean?
+Pie Number of slices to send: Send
try ..

Iterator messageIterator = FacesContext.getCurrentInstance().getMessages();
while (messageIterator.hasNext()) {
messageIterator.remove();
}
Sasparilla and fresh horses for all my men! You will see to it, won't you tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 4050 times.
Similar Threads
Need solution for Question
SortNames
nested for loop
wrapper classes in servlets
String literal pool
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 07:58:17.