update @form not working, Java EE

0

I tried with the options @form,: matricula, matricula_form ... and nothing.

When I delete the bank registration, only after updating the page does it disappear, I'm forgetting something ???

Follow the code "enrollment_list" below

<!DOCTYPE html>

<p:commandButton value="Nova Matricula"
    action="#{matriculaBean.novaMatricula}" update="matricula_form"
    icon="novo-icon" />


<p:dataTable value="#{matriculaBean.matriculas}" var="matricula"
    style="margin-top:10px; width:100%" emptyMessage="Nenhuma matrícula cadastrada">

    <p:column headerText="Número" width="40" style="text-align:center;">

        <h:outputText value="#{matricula.numero}" />

    </p:column>

    <p:column headerText="Aluno" width="220" style="text-align:center;" >

        <h:outputText value="#{matricula.aluno.nome}" />

    </p:column>

    <p:column headerText="Curso" width="120" style="text-align:center;">

        <h:outputText value="#{matricula.curso.nome}" />

    </p:column>

    <p:column headerText="Data" sortBy="#{matricula.dataCriacao}" width="80" style="text-align:center;">
        <h:outputFormat value="#{matricula.dataMatricula}">
            <f:convertDateTime pattern="dd/MM/yyyy" />
        </h:outputFormat>

    </p:column>

    <p:column width="50" style="text-align:center">

        <p:commandButton icon="editar-icon"
            action="#{matriculaBean.editar(matricula)}" update=":matricula_form" />
        <p:commandButton icon="excluir-icon" action="#{matriculaBean.excluir(matricula)}"
                    style="color:red; margin-left:20px;" update="@form" />

    </p:column>

</p:dataTable>

    
asked by anonymous 03.11.2018 / 20:52

0 answers