I had a problem today with the p:commandButton used in a dialog - the actionListener method wasn't called !
Code: Select all
<p:dialog header="#{msgs.kennwort_welcome}" widgetVar="dlgChangepassword" modal="true" >
<p:growl id="growl" showDetail="true" life="3000" />
<h:form id="changePasswordForm">
<h:panelGrid id="changePassword" columns="2" style="border:2px" >
<h:outputLabel for="kennwort" value="#{msgs.kennwort_neuesKennwort}" />
<h:inputSecret id="kennwort" value="#{kontoeinstellungenBean.kennwort}" />
<h:outputLabel for="kennwort2" value="#{msgs.kennwort_neuesKennwort2}" />
<h:inputSecret id="kennwort2" value="#{kontoeinstellungenBean.kennwort2}" />
</h:panelGrid>
<p:commandButton value="#{msgs.button_change}" update="growl" actionListener="#{kontoeinstellungenBean.changePassword}" oncomplete="dlgChangepassword.hide();"/>
</h:form>
</p:dialog>
Code: Select all
<p:dialog header="#{msgs.kennwort_welcome}" widgetVar="dlgChangepassword" modal="true" >
<p:growl id="growl" showDetail="true" life="3000" />
<h:panelGrid id="changePassword" columns="2" style="border:2px" >
<h:outputLabel for="kennwort" value="#{msgs.kennwort_neuesKennwort}" />
<h:inputSecret id="kennwort" value="#{kontoeinstellungenBean.kennwort}" />
<h:outputLabel for="kennwort2" value="#{msgs.kennwort_neuesKennwort2}" />
<h:inputSecret id="kennwort2" value="#{kontoeinstellungenBean.kennwort2}" />
</h:panelGrid>
<p:commandButton value="#{msgs.button_change}" update="growl" actionListener="#{kontoeinstellungenBean.changePassword}" oncomplete="dlgChangepassword.hide();"/>
</p:dialog>
best regards
Thomas