I have two command buttons, one edits a user and one adds a user, so the backing bean methods are slightly different. The syntax for the actual buttons are virtually the same, yet after one completes, the component updates, but the other does not. Can somebody explain the issue?
Button 1 (Works):
<p:dialog header="..." id="editUserDialog" widgetVar="editUserDialog" modal="true" appendTo="@(body)" draggable="false">
<h:form id="editUserForm">
<p:commandButton update=":form:tabs:adminView:userTable" value="submit" id="EditUserSubmitButton" actionListener="#{usersView.editUserRole}" oncomplete="PF('editUserDialog').hide();" />
</h:form>
</p:dialog>
Button 2 (Not Working):
<p:dialog header="..." id="addUserDialog" widgetVar="addUserDialog" modal="true" appendTo="@(body)" draggable="false">
<h:form id="addUserForm">
<p:commandButton update=":form:tabs:adminView:userTable" value="submit" id="AddUserSubmitButton" actionListener="#{addUserView.submit}" oncomplete="PF('addUserDialog').hide();" />
</h:form>
</p:dialog>
Thanks in advance.