3

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?

Luiggi Mendoza
  • 85,076
  • 16
  • 154
  • 332
flo8433
  • 377
  • 2
  • 4
  • 8

1 Answers1

5

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.

Community
  • 1
  • 1
Lucas
  • 14,227
  • 9
  • 74
  • 124