当我创建 SSCCE 项目以在此处共享时,我注意到 xmlns:p="http://primefaces.org/ui" 未在我使用 p:commandLink 的文件中声明。所以我来自这个:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:hrgi="http://java.sun.com/jsf/composite/hrgi">
<ui:component>
<h:form>
<p:commandLink value="#{popupMsg['painel.informacoes.conta.alterar']}"
actionListener="#{controladorPopupSelecaoConta.abrir}"
oncomplete="exibirPopup(xhr,status,args,dlgselecaoConta);"
title="#{popupMsg['painel.informacoes.conta.alterar.descricao']}"
update=":selecaoConta :alerta" process="@none"/>
</h:form>
</ui:component>
</html>
对此:
<ui:component xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui"
xmlns:f="http://java.sun.com/jsf/core">
<h:form>
<p:commandLink value="#{popupMsg['painel.informacoes.conta.alterar']}"
actionListener="#{controladorPopupSelecaoConta.abrir}"
oncomplete="exibirPopup(xhr,status,args,dlgselecaoConta);"
title="#{popupMsg['painel.informacoes.conta.alterar.descricao']}"
update=":selecaoConta :alerta" process="@none"/>
</h:form>
</ui:component>