1 Reply Latest reply on Mar 30, 2009 8:31 AM by Nick Belaevski

    JavaScript method for onload event is not invoked at the tim

    Tentu Polinaidu Newbie

      I am using Liferay portal, JBoss Portlet Bridge and JSF with XHTML extension & Rich faces.

      In my xhtml page i am calling one java script function to select my radio button bydefault onloading the page.

      here is

      what i observed is when we add the portlet to the new page then onload="selectFirstRadio()" method is not getting invoked.

      But if you logout and login agian the portelet will be loaded as it was already added to the page, this time onload="selectFirstRadio()" method is invoked

      or even if you refresh the page the onload="selectFirstRadio()" method is invoked.

      Why the onload="selectFirstRadio()" method is not getting invoked at the time of adding the portlet to the portal page.

      Could you please help me on how to call the script method onload event when adding the portlet to the portal page.

      Thank you.
      T P Naidu.