0
Message duplication problems in Primefaces p:messages.
In the application I call this method just to insert the message. Follow the code:
public class FacesUtil {
public static boolean isPostback() {
return FacesContext.getCurrentInstance().isPostback();
}
public static boolean isNotPostback() {
return !isPostback();
}
public static void addErrorMessage(String message) {
FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, message, message));
}
public static void addInfoMessage(String message) {
FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, message, message));
}
Does anyone know why ?
Guy like that gets tough, puts code for us to know the problem, the more codes the better.
– Matheus Miranda
In the application I call this method only to insert the message: http://pastebin.com/e8E7eLV1
– Jeremias Santos
to help, post more code.
– Roknauta
I appreciate everyone’s answer, but the problem was structural. It has already been solved.
– Jeremias Santos