You should see the same alert again when you submit the form, also on ajax submits. This would not happen
for ajax submits when you have used the standard
Note that the point of the
<o:onloadScript> is not the annoying alert, but that a particular
want to re-execute a specific helper script to manipulate the HTML DOM tree, such as (re-)adding fancy tooltips,
performing highlights, etcetera, on every ajax request, also after changes in the HTML DOM tree on ajax responses.
<o:onloadScript> is implicitly relocated to the end of the
exactly like as
<h:outputScript target="body"> does. So it's always executed when the entire
<body> is finished populating and thus you don't need a
window.onload or a
$(document).ready() in there. Again, the difference with
is that the
<o:onloadScript> is also executed on every ajax request.