<a:form>
<a:editor id="editor" widgetVar="editorWidget" value="#{editorView.text}" width="600" />
<h:panelGrid columns="2" style="margin-top: 10px">
<a:commandButton value="Submit" update="display" oncomplete="PF('dlg').show()" icon="ui-icon-disk" />
<a:commandButton value="Clear" type="button" onclick="PF('editorWidget').clear();" icon="ui-icon-close" />
</h:panelGrid>
<a:dialog header="Content" widgetVar="dlg" showEffect="fade" hideEffect="fade">
<h:outputText id="display" value="#{editorView.text}" escape="false" />
</a:dialog>
</a:form>