0
I’m using a dialog of the first faces:
<h:form>
<p:dialog widgetVar="dialog" modal="true" resizable="false">
<p:outputLabel value="Mensagem qualquer."/>
<p:commandButton value="Botão 1" action="#{chama um método no ManagedBean}"/>
<p:commandButton value="Botão 2" action="#{chama um método no ManagedBean}"/>
</p:dialog>
<p:link value="Abrir caixa de diálogo." onclick="PF('dialog').show()"/>
<h:form>
I was watching as I hovered over <p:link/>
the page address appears in the footer, as if it were a redirect.
Why does this happen? There is no URL. How can I resolve?
outcome="#"
made a mistake.href="#"
did not give error, but froze the page. I put the modal as false and stopped freezing, but it is not interesting for me to leave without this property. I think the problem now involves the modal. Is there any workaround?– ptkato
I believe that the Wakim solution will be the correct alternative if you want to use p:link
– deFreitas