title: p:commandbutton action doesn't work inside p:dialog
body: <p>I have a p:dialog and there is a panel inside it. The problem is "Save" button's action method is not working. It doesn't even calls the method. I can reach the method def. with ctrl+lm so there is no problem with method name.</p>
  
  <pre><code>&lt;h:body&gt;
      &lt;h:form id="createAppUserForm" prependId="false"&gt;
        ....
        &lt;p:dialog id="newRoleDialogId"
                    header="Add New Role"
                    resizable="true"
                    draggable="true"
                    widgetVar="newRoleDetailsDialog"  
                    appendToBody="true"
                    &gt;
              &lt;p:panel id="newRoleDialogPanel"&gt;
                  &lt;p:panelGrid id="newRoleDialogPanelGrid" columns="2" style="width: 100%" styleClass="panelGridWithoutBorder"&gt;
                      &lt;h:outputText value="Role Name :"/&gt;
                      &lt;p:inputText value="#{createAppUserController.selectedRole.name}"/&gt;
                      &lt;h:outputText value="Role Desc :"/&gt;
                      &lt;p:inputText value="#{createAppUserController.selectedRole.description}"/&gt;
                  &lt;/p:panelGrid&gt;
                  &lt;center&gt;
                      &lt;p:commandButton value="Save"
                                       update="roleListDataTable newRoleDialogPanelGrid growlCreateAppUser"
                                       oncomplete="if (!args.validationFailed) newRoleDetailsDialog.hide()"                                     
                                       action="#{createAppUserController.saveNewRole()}"/&gt;
                      &lt;p:commandButton value="Cancel"                                         
                                       immediate="true"
                                       onclick="newRoleDetailsDialog.hide()" /&gt;
                  &lt;/center&gt;
              &lt;/p:panel&gt;
          &lt;/p:dialog&gt;
         &lt;/h:form&gt;
      &lt;/h:body&gt;
  </code></pre>