componente Dialog do primefaces só funciona no IE. No Chrome e no Firefox não funciona.
Código:<p:commandButton id="showDialogButton" type="button" value="Show" onclick="dlg.show()" />
<p:dialog header="Enter FirstName" widgetVar="dlg" resizable="false">
<h:form id="form">
<h:panelGrid columns="2" style="margin-bottom:10px">
<h:outputLabel for="firstname" value="Firstname:" />
<p:inputText id="firstname" value="#{pprBean.firstname}" />
</h:panelGrid>
<p:commandButton id="submitButton" value="Submit" update=":display" oncomplete="dlg.hide();"/>
</h:form>
</p:dialog>
<p:outputPanel id="display" style="display:block;margin-top:10px;">
<h:outputText id="name" value="Hello #{pprBean.firstname}" rendered="#{not empty pprBean.firstname}"/>
</p:outputPanel>
Inspecionando o javascript no Chrome verifiquei o seguinte erro: 111Uncaught ReferenceError: dlg is not defined
Alguém já passou por este problema e saberia como resolver? agradeço a ajuda.
