DataTable Not Update Data

UI Components for JSF
Post Reply
jsaavedra_us
Posts: 5
Joined: 23 Mar 2013, 20:03

12 Mar 2017, 04:45

Hi guys, please a need you help

I have a table with Paginator, but this not refresh de data I see the data but when i change page not refresh.
Iam using PF 6.0, lombok1.16.12, primefaces-extensions 6.0.0, omnifaces2.5.1 and GlassFish Server Open Source Edition 4.1
Thanks any help

TABLE
<p:dataTable id="tblSellos"
value="#{consultaSelloTemplado.sellosTemplado}" var="sello"
widgetVar="selloTable"
lazy="true" nativeElements="true"
tableStyle="width:100%"
emptyMessage="#{msgs.mesajeVacios}" resizableColumns="true"
paginatorPosition="bottom"
paginator="true" rows="#{msgs.registrosPorPagina}"
paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
rowsPerPageTemplate="#{msgs.registrosPorPaginaTemplate}">
<f:facet name="header">
#{msgs.tituloSellos}
</f:facet>
....

BEAN
...
@PostConstruct
public void init() {
inicializarVariables();
consultar();
}

private void inicializarVariables() {
sellosTemplado = new ArrayList<SelloTemplado>();
}

public void consultar() {
try {
sellosTemplado = servicioAdministracionSelloTemplado.getByNitEmpresa(getIdEmpresa());
LOGGER.debug("Total sellos templado encontrados {} ", sellosTemplado.size());

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 18 guests