• Post Reply Bookmark Topic Watch Topic
  • New Topic

onload function is not working in portlets  RSS feed

 
kasyaparushi kiran
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!