Pseudo masses p: message out of form components

I am using JSF 2.0 and Primefaces 3.2.

I use Facelets for templates, and I built a three-column layout:

Left column - mainContent column - right column. Each column received its own xhtml file template with ui: composition, which I insert in mainTemplate.

In the mainContent column, I have an info button (p: commandButton):

<h:form id="mainForm">
<p:commandButton id="infoButton" value="Info" actionListener="#{faceletsAttachment.addInfo}"/> 
</h:form>

But I want the information to appear in the right column with

<h:form id="rightColumnForm">
<p:message for="infoButton">
</h:form>

This obviously does not work because it does not find infoButton. Any idea how I can make this work? I tried

<p:message for="mainForm:infoButton"> 

too, but no cigar.

, p:, , , y, -. , , .

+3
1

,

<p:message id="myInfoButton" for="myInfoButton" />

myInfoButton

FacesContext.getCurrentInstance.addMessage("myInfoButton ", new FacesMessage("My Message", "Some Text goes here..."));

:rightColumnForm id <p:commandButton id="infoButton"

+3

All Articles