- primefaces p:message outside the components form
- <h:form id="mainForm">
- <p:commandButton id="infoButton" value="Info" actionListener="#{faceletsAttachment.addInfo}"/>
- </h:form>
- <h:form id="rightColumnForm">
- <p:message for="infoButton">
- </h:form>
- <p:message for="mainForm:infoButton">
- FacesContext.getCurrentInstance.addMessage("myInfoButton ", new FacesMessage("My Message", "Some Text goes here..."));