criei um botão para salvar, mas quando ele salva e fecha, ele n abre novamente… somente se atualizar
<p:dialog widgetVar="dlgoemNovo" closable="false" draggable="false"
resizable="false" header="Cadastar Montadora" modal="true"
appendTo="@(body)">
<h:form id="frmoemNovo">
<h:panelGrid id="pnoemNovo" columns="2">
<p:outputLabel value="Montadora: " for="txtDescNovo" />
<h:inputText size="30" maxlength="50" id="txtDescNovo"
value="#{MBOem.oem.OEM}" required="true"
requiredMessage="O campo Montadora é obrigatório." />
</h:panelGrid>
<h:panelGrid columns="2">
<p:commandButton value="Gravar" actionListener="#{MBOem.salvar}"
oncomplete="verificar(xhr, status, args, 'dlgoemNovo', 'tboem','pnggravar');"
update=":frmoem:tboem :msgGlobal" />
<p:commandButton value="Cancelar" process="@this"
onclick="PF('dlgoemNovo').hide();" />
</h:panelGrid>
</h:form>
</p:dialog>