Perhaps you also try the following:
 http://sourceforge.net/projects/jsf-comp

It's a OnLoad Phase listener.

Regards,
Andy

-----Ursprüngliche Nachricht-----
Von: Yee CN [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 20. Dezember 2005 16:49
An: 'MyFaces Discussion'
Betreff: RE: Question?



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


______________________________________________________________________

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
your system manager.

This footnote also confirms that this email message has been swept
for the presence of computer viruses.
______________________________________________________________________

Reply via email to