PrimeFaces数据表更新

I have this code for my webpage

    <h:form id="formTipoGeneracion"
            enctype="multipart/form-data">
        <p:growl id="mensajesCargaArchivos"
                 showDetail="true"/>
        <p:fileUpload mode="simple"
                      value="#{generador.archivoSeleccionado}"/>
        <br/>
        <p:commandButton value="Agregar"
                         ajax="false"
                         action="#{generador.doAgregarArchivo}"/>
        <p:dataTable id="dtArchivos"
                     var="archivo"
                     emptyMessage="No se ha cargado ningun archivo en el servidor."
                     value="#{generador.archivos}">
            <p:column>
                <f:facet name="header">
                    <h:outputText value="Nombre del archivo"/>
                </f:facet>
                <h:outputText value="#{archivo}"/>
            </p:column>
            <p:column>
                <f:facet name="header">
                    <h:outputText value="Quitar archivo?"/>
                </f:facet>
                <p:commandLink value="[  X  ]" update="@form"
                               action="#{generador.doEliminarArchivo(archivo)}"/>
            </p:column>
        </p:dataTable>
    </h:form>

I have a very big doubt, when I have <p:commandLink ... update="@form" .../> the table updates its data correctly but if I have <p:commandLink ... update="dtArchivos" .../> (instead of rendering the whole form just render the DataTable) the information on the table doesn't update.

Why is this happening? Tools: PrimeFaces 3.3, Mojarra 2.1.6, Tomcat 7.0.14 Bean's scope: ViewScope

you should use h:panelGroup

like:

<h:panelGroup id="updateTable">
    <p:dataTable id="dtArchivos"
                     var="archivo"
                     emptyMessage="No se ha cargado ningun archivo en el servidor."
                     value="#{generador.archivos}">
                                        ............
    </p:dataTable>
</h:panelGroup>

and set update like update="updateTable"