I want to call an JSF Action after the website has been fully loaded?
it tried something like
<h:body onload="#{service.getMessage()}">
but in this case the method is executed before the page is visible to the user
Any ideas?
JSF is server side, onload is client side. Your only option would be to have the onload fire off an ajax request. See this post for an example.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With