Markos Fragkakis
Markos Fragkakis

Reputation: 7781

JSF, Richfaces: How to run Javascript method each time rich:datatable (re)renders?

I have a rich:datatable which may be reRendered my multiple components in my page.

I want to run a Javascript method each time it is rendered, including the first time the page loads.

How can I do this?

Upvotes: 0

Views: 1857

Answers (1)

Bozho
Bozho

Reputation: 597382

  • You can call the function on oncomplete of each of the components that reRender the datatable
  • the initial call is jsf-agnostic - just place the call at the end of the document, or window.onload = function() {..}

Upvotes: 3

Related Questions