Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/jsf/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
JSF和PrimeFaces更新_Jsf_Jsf 2_Primefaces - Fatal编程技术网

JSF和PrimeFaces更新

JSF和PrimeFaces更新,jsf,jsf-2,primefaces,Jsf,Jsf 2,Primefaces,我试图在运行进程时更新outputLabel,但该值不更新。希望有人能帮忙 <p:graphicImage url="img/package.png" alt="a" width="20%" style="margin-left: 40%; margin-top: 3%;"/><br/> <div class="form"> <h:form id="form">

我试图在运行进程时更新outputLabel,但该值不更新。希望有人能帮忙

        <p:graphicImage url="img/package.png" alt="a" width="20%" style="margin-left: 40%; margin-top: 3%;"/><br/>
        <div class="form">
            <h:form id="form">
                <h2>ANO</h2>
                <h:inputText value="#{processos.numeroAno}"/><br/>
                <h2>MESES</h2>
                <h:inputText value="#{processos.numeroMeses}"/><br/>
                <p:commandButton value="IMPORTAR" ajax="true" process="@form" actionListener="#{processos.processa}" update="form:mensagemErro" onstart="PF('statusDialog').show()" oncomplete="PF('statusDialog').hide()"></p:commandButton>
                <p:outputLabel value="#{processos.mensagemErro}" id="mensagemErro"/>
            </h:form>
        </div>

        <p:dialog widgetVar="statusDialog" modal="true" draggable="false" closable="false" resizable="false" showHeader="false">
            <p:graphicImage url="img/rubiks.gif" styleClass="" alt="a"/><br/>
        </p:dialog>

        <link rel="stylesheet" type="text/css" href="css/geral.css"/>

update=“mensageerro”
应该是
update=“form:mensageerro”
.dosent工作。我将发布完整的XHTMLD它是否输入了该方法?是的,问题是我希望该消息在该方法运行时更新,并且在结束时更新。您可以,也许最简单的选项是使用。您将更新来自javascript处理程序的消息。
            files = pastaSap.listFiles();
        if (files.length == 1) {
            mensagemErro = "PASTA SAP OK";
            escreveLog("PASTA SAP OK", "GERAL");
        } else {
            mensagemErro = "PASTA SAP NÃO CONTÉM O NÚMERO NESCESSÁRIO DE ARQUIVOS (1)";
            return false;
        }