aspose file tools*
The moose likes Portals and Portlets and the fly likes onload function is not working in portlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "onload function is not working in portlets" Watch "onload function is not working in portlets" New topic
Author

onload function is not working in portlets

kasyaparushi kiran
Ranch Hand

Joined: May 05, 2009
Posts: 33
Hi,

I am working on websphere portal server.
I think portal server doesnt support body tag
I have placed onload tag in body tag.
Is there any alternative method to call onload functionality in portlets?

Thanks & Regards,
K.Kiran Kumar
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
kasyaparushi kiran wrote:Hi,

I am working on websphere portal server.
I think portal server doesnt support body tag
I have placed onload tag in body tag.
Is there any alternative method to call onload functionality in portlets?

Thanks & Regards,
K.Kiran Kumar


You need to think how "portal" creates a page that is served to browser.
Typically a portal page has many portlets in it. If you put <body> tag in each of the "portlet" you will end up with too many <body> tags in "final" page that is served to browser.

May be you can call your function in <body> tag added by "portal". I am not sure which JSP in WebSphere Portal.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: onload function is not working in portlets