1) User attempts to save record but has a validation error. Growl displays the validation error.
2) User corrects error and saves. The save successful message displays but the validation error message is not removed.
If I use a non ajax command it works properly but that causes other problems. Does anyone have a suggestion on how to fix this?
Code: Select all
<p:growl id="message" sticky="true" />
<p:commandButton value="Save" action="#{prop.save}" update="message goal" />
How to I clear out old growl messages with an ajax call?