This is a simple code for that problem:
Code: Select all
<h:head>
<title>title</title>
</h:head>
<body>
<h:form>
<p:inputText value="#{dialogSupport.output}" ></p:inputText>
<p:commandButton value="click" onclick="myDialog.show();" update="dialogForm"/>
</h:form>
<ccElem:dialogSuper ></ccElem:dialogSuper>
Code: Select all
<composite:interface>
</composite:interface>
<composite:implementation>
<p:dialog widgetVar="myDialog">
<h:form prependId="false" id="dialogForm">
<h:outputText value="#{dialogSupport.output}"></h:outputText>
</h:form>
</p:dialog>
Thanks for your help!!!!!