[jboss-user] [JBoss Portal] - Re: Multiple instance of same portlet on same page

sohil.shah@jboss.com do-not-reply at jboss.com
Wed Jul 18 14:05:14 EDT 2007


I don't think the onload javascript execution issue has anything to do with the fact you have instances of the same portlet on the same page.

This issue is more related to the way AJAX based Partial refresh works, and when that happens, only your pages DOM model is getting updated, but the actual Page is not getting refreshed (typical AJAX usecase).

Hence, the Page is not doing a complete refresh, the onLoad event is not fired, and your JavaScript is not executed.

I bet if you put the 


  | <Script language="JavaScript">
  |     alert('Test');
  | </Script>
  | 

inside your Portlet markup, they will probably work even in "Partial Refresh" mode

Thanks

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065515#4065515

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065515



More information about the jboss-user mailing list