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, -. , , .