Eai pessoal eu tenho um p:dialog e preciso que quando ele feche, um campo do formulario acima atualiza
mas só me aparece essa mensagem de erro
Cannot find component with identifier ":formularioPedido:cliente" referenced from "dlgC"
Codigo abaixo
<h:form name="formularioPedido">
<p:growl closable="true" severity="info"/>
<p:messages closable="true" severity="fatal,error"/>
<h:panelGrid columns="3">
<h:outputLabel value="Data: " for="data"/>
<h:panelGroup layout="block">
<p:calendar locale="pt" pattern="dd/MM/yyyy" showButtonPanel="true" navigator="true" value="#{vendaManager.pedido.data}" required="true"/>
<p:spacer height="1" width="30"/>
<h:panelGroup layout="block" style="text-align:right; float:right">
<h:outputLabel value="Pedido de Compra: " for="pedidocompra"/>
<p:inputText id="pedidocompra" value="#{vendaManager.pedido.pedidoCompra}"/>
</h:panelGroup>
</h:panelGroup>
<h:outputText value=""/>
<h:outputText value="Cliente: " for="cliente"/>
<p:autoComplete id="cliente" size="80" completeMethod="#{vendaManager.preencherCliente}"
forceSelection="true" var="c" itemLabel="#{c.nome}" itemValue="#{c}" converter="clienteConverter" value="#{vendaManager.cliente}" styleClass="cliente">
<p:ajax event="itemSelect" listener="#{vendaManager.selecionarCliente}" />
</p:autoComplete>
<p:commandButton icon="ui-icon-search" oncomplete="dlgCliente.show()"/>
</h:panelGrid>
</h:form>
<p:dialog position="top" modal="true" width="900" height="300" widgetVar="dlgCliente" id="dlgC" header="Pesquisar Cliente">
<p:ajax event="close" update=":formularioPedido:cliente" />
<util:pesquisacliente selecionar="true" />
</p:dialog>