Javascript function tied to the html <body:onload > is not going to get
called until the page is being rendered and executed at the browser. That is
probably going to be too late.
Maybe you can put a <t:hidden value="#{myBean.dummyField}" /> right after
<f:view> and place your onload code in the setter method of dummyField.
If the backing bean is in request scope you can also have a dummy managed
property and execute your onload code there.
Regards,
Yee
On 12/17/05, Sergio Flor <[EMAIL PROTECTED]> wrote:
> What about to try use onload body tag method?
>
> You can call a javascript function on onload method and execute your code
> there.
>
> On 12/17/05, Marco <[EMAIL PROTECTED] > wrote:
> > How can i make a code executing on page load ?
> >
> > Thanks in advance
> >
>
>
>
> --
> Sérgio Flôr
> Enterprise Solutions Architect And J2EE Senior Specialist
> Getronics Brasil
> R. Verbo Divino, 1207 - 3º andar Cep: 04719-002
> Chac. Santo Antônio - São Paulo Brasil
> Tel.: + 55 11 5854-6959
> Cel.: + 55 11 8266-2269
> [EMAIL PROTECTED]
--
Alexandre Poitras
Québec, Canada