I have set a message in FacesContext as following
FacesContext facesContext = phaseEvent.getFacesContext();
facesContext.addMessage("lynasTest", ExceptionConverter.getFacesMessage(facesContext, cee, false));
now in the xhml page i want to see this message. I have tried following
<h:message for="lynasTest" />
<h:messages for="lynasTest" globalOnly="true" warnClass="color:orange" />
#{lynasTest}
its not showing my message. How to fix this??