Here's my .xhtml:
<h:form id="form_edit" prependId="false">
<p:commandButton value="#{filt.add}"
ajax="true"
icon="ui-icon-plus"
update=":messages :form_edit"
oncomplete="confDlg.show()"
action="#{agentsbean.clearSelectedAgent()}"/>
</h:form>
<p:dialog id="dialogId" widgetVar="confDlg" showEffect="fold" hideEffect="fade"
appendToBody="false">
<h:form>
<p:inputText value="#{agentsbean.selectedAgent.name==null?'null':agentsbean.selectedAgent.name}"/>
<p:commandButton id="agConfirmSave" value="#{filt.save}" update=":messages @form"
actionListener="#{agentsbean.saveAgent}" oncomplete="confDlg.hide();"/>
</h:form>
</p:dialog>
actionListener saveAgent :
public void saveAgent(ActionEvent actionEvent) {
System.out.println("SaveAgent");
}
When i click button (agConfirmSave) - dialog close, but action does not start!
- primmefaces 3.5
- Apache 7.0.35
UPD action work, if remove p:inputText or chang it by h:outputText!!! But i need input same text in dialog...