I want to call ActionListener and reload some parts of my page when the page has been loaded ( window.onload ). How can i do this?
ActionListener
window.onload
I cannot edit the body tag. I have a portlet inside the portal server.
body
Use <a4j:jsFunction> .
<a4j:jsFunction>
<h:form> <a4j:jsFunction name="init" actionListener="#{bean.init}" reRender="some" /> </h:form> <script>window.onload = init;</script>
<h:form> <a4j:jsFunction name="doSome" actionListener="#{bean.init}" reRender="some" /> </h:form> <jsfc:verbatim> <script type="text/javascript"> window.onload = doSome(); </script> </jsfc:verbatim>
Source: https://habr.com/ru/post/1381870/More articles:Adding an item to a collection using LINQ - c #how does intellij compute 4 digit identifiers of object instances? - javaUsing a linq or lambda expression in C # returns a collection plus one value - c #How to add multiple rows to a chart in Excel using C # - c #Show spinner in AlertDialog - androidHow to create a private model field in Django? - djangoJavaScript submenu no longer works after updating iPhone iOS 5 - javascriptAndroid KeyBoard.Key disable iconPreview special keys? - androidPHP multidimensional array algorithm? - arraysDelete favorites and disable iscsi targets using iscsicli.exe & powershell - windowsAll Articles