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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -