2 Replies Latest reply on Mar 29, 2007 4:38 PM by carloszaniolo

    OnSwitch js event on Tabpanel

    carloszaniolo

      Hi,

      I hava a rich:tabpanel with switchType="client" and I want to execute some javascript when the active tab changes. I've tried "onclick" event of <rich:tab> but it doesn't work.

      It will be great if the Javascriptf of the "onclick" property of rich:tab could be together with the "RichFaces.swicthTab(...)" call...

      Example:
      I would be interesting if something like this:

      <rich:tab label="locked" onclick="return false;">


      Could be rendered like this:
      <table onclick="return false;RichFaces.switchTab('tabs','test','test');" ...>


      Please guys, could you do something???

      many thanks,

      Carlos Zaniolo