开发者

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

开发者 https://www.devze.com 2022-12-31 08:43 出处:网络
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.

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?


  • 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() {..}
0

精彩评论

暂无评论...
验证码 换一张
取 消