6 Replies Latest reply on Jun 7, 2012 9:53 AM by sks.sauravs

    Invoking bean's method on <rich:tab> click

      Hello all,

      I'm trying (unsuccessfully) to invoke a method of my bean when I change the tab. I've tried various possibilities but nothing seems to work.

      Actually nothing happens when I change the tab. Below is my code (I also tried using 'action' and 'actionListener' properties)

      Could anybody, please, help me?

      Thanks in advance,

      Andre

      <rich:tabPanel id="tabClientes" styleClass="top_tab"
       contentClass="content_tab" headerClass="header_tabs_class"
       inactiveTabClass="inactive_tab"
       activeTabClass="active_tab"
       binding="#{clienteBean.tabPanel}">
      
       <rich:tab id="tabListagem" label="#{rebanhoBundle.listaClientesTitulo}">
       <ui:include src="listaClientes.xhtml"/>
       </rich:tab>
       <rich:tab id="tabDetalhe" label="#{rebanhoBundle.edicaoClienteTitulo}">
       <ui:include src="detalheCliente.xhtml"/>
       <a4j:support event="ontabchange" action="#{clienteBean.takeSelection}" />
       <a4j:support event="onclick" action="#{clienteBean.takeSelection}" />
       </rich:tab>
      </rich:tabPanel>