Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How can I Call javascript method during onload of jsf page

Gopal AggarwalMay 7 2012 — edited May 7 2012
Hi,

I want to call a JavaScript method on load of the jsff page.

I have written a code for setting the user name in the cookie of the browser, this is working fine.

I am also able to read the name using some method but I want to call this method on the page load so that the user name will get display in the input text field whenever the page loads.

Please can anyone help me??
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 4 2012
Added on May 7 2012
2 comments
1,042 views