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
  • 83,472
  • 15
  • 149
  • 315
flo8433
  • 367
  • 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
  • 12,877
  • 9
  • 67
  • 118