I am developing a JSF 2 web application and using implicit page-to-page navigation with result values ββand changing URL values. I also have some Ajax requests to be able to make changes to some pages without having to submit everything.
My problem arises when, for example, I edit user data and save changes. The managed Bean saves the user data and returns a string to go to the user list. When the user is correctly saved, FacesMessage will be added before the action is FacesMessage .
Button
<p:commandButton value="#{msg.UPDATE}" action="#{manager.actionSave}" ajax="false" />
Code in method
FacesContext.getCurrentInstance().addMessage(clientId, new FacesMessage(FacesMessage.SEVERITY_INFO, msg, msg));
However, and even I have a <h:messages /> on my main page, nothing is displayed there.
source share