3 Replies Latest reply on Jun 13, 2008 9:59 AM by German Figueroa

    rich:tabPanel valueChangeListener

    German Figueroa Newbie

      i have a problem with valueChangeListener

      xhtml


      <rich:tabPanel switchType="client"
      selectedTab="#{bean.tabSelected}"
      valueChangeListener="#{bean.valueChanged}" >
      <rich:tab label="Title 1" name="tab1">
      ....
      </rich>
      <rich:tab label="Title 2" name="tab2">
      ....
      </rich>


      bean

      private String tabSelected;
      //getter and setter

      public void valueChanged(ValueChangeEvent event) {
      tabSelected = event.getComponent().toString();
      System.out.println("Tab Changed : " + tabSelected);
      }


      but when i click in the tab, nothing happened!

      how to works this?


      thank's, very much! :D