jsf 2 - PrimeFaces. Update DataTable after Rendering -
i have datatable , want persist filters. can save filter values , put them calling datatable. put filter values on rendering. want table filtered.
yes, want call service , data want filter table values staying in filter fields.
i can't find solution start filtering after table got rendered. solution overriding primefaces methods can't used in situation.
update:i'm trying not use additional js, if problem solved java or xhtml
i'm using primefaces 3.5
do have ideas?
thank you! :)
i had similar problem. wanted put few persisted filters in dt , filter initialy.
after few houres came this:
<p:remotecommand name="onload" oncomplete="pf('tickettable').filter()" autorun="true"/>
the <p:remotecommand>
triggers pf("tickettable').filter()
after page loaded/reloaded.
it uses onload
event of <h:body>
.
i found here : execute managebean method javascript onload event
by way. i'm using pf 5.0, remotecommand present in 3.5 according documentation. should work in 3.5 too.
i hope can you.
regards flyingspaten
Comments
Post a Comment