首页 > 应用开发 > Java > < a4j:jsFunction >
...
<body onload="callScript()">
...
<a4j:jsFunction name="callScript" data="#{bean.someProperty1}" reRender="someComponent" oncomplete="myScript(data.subProperty1, data.subProperty2)">
<a4j:actionparam name="param_name" assignTo="#{bean.someProperty2}"/>
</a4j:jsFunction>
...
...
</body>
...
Information about the "process" attribute usage you can find "Decide what to process" guide section.
Visit the jsFunction page at RichFaces LiveDemo for component usage and sources for the given examples.
Useful articles:
"JsFunctionJson" article in the RichFaces Cookbook describes how to use "a4j:jsFunction" to call the jsonTest backing bean that generates some random data in a JSON String;
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/21634320/viewspace-1982437/ ,如需转载,请注明出处,否则将追究法律责任。