0 Replies Latest reply on Nov 27, 2008 9:11 AM by Mirek Okonoiewski

    How to change selectedTab using js

    Mirek Okonoiewski Newbie

      Hi
      I need to change tab on rich:tabPanel using javascript from rich:hotkey, in other words use keyboard to change tab's

      The code could be like this (except from that code don't work) :

      <rich:hotKey key="Shift+L" handler="changeTab();" />
      
      <script type="text/javascript">
       function changeTab (){
       ${rich:component('myTab')}. setSelectetTab('destinationTab');
       }
      </script>