I have a very strange problem with tag commandButton; I use it in a dataGrid to call an action which is correctly written in my bean and this is the code:
Code: Select all
<p:commandButton value="value" action="#{myBean.myAction}" oncomplete="mydialog.show(); update=":myform:formData:myUpdated">
<f:setPropertyActionListener value="#{resultSetObject.objectKEY}" target="#{resultSetCtrl.selectedObjectKEY}" />
</p:commandButton>
Here is the code working correctly:
Code: Select all
<h:commandButton value="value" action="#{myBean.myAction}" onclick="qdvDialog.show();">
<f:setPropertyActionListener value="#{resultSetObject.objectKEY}" target="#{resultSetCtrl.selectedObjectKEY}" />
<f:ajax render=":myform:formData:myUpdated" />
</h:commandButton>