hi im kind of new at jsf enviroment, im trying to update a primefaces growl and then redirect to a page from a commandButton action.
Because Flash has bug, my solution is to make a separated redirect button which will be hit after showing msg:
HTML:
Bean:
public void process(){
addInfoMsg(summary, msgDetail); //Add msg func
RequestContext.getCurrentInstance().execute("setTimeout(function(){ $('#rdr-btn').click(); }, 3000);"); // 3 seconds delay. I put the script in Constants to config later.
}