2 Replies Latest reply on Mar 24, 2009 9:26 AM by ajanz

    rerender only tab not tabpanel

    ajanz

      i got a page with two tabpanels. on some button click i want a specfic tab to be rerendered. but it only works if i rerender the whole tab.

      what can i do?

      page is



      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
       "http://www.w3.org/TR/html4/strict.dtd">
      
      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
       xmlns:s="http://jboss.com/products/seam/taglib"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:rich="http://richfaces.org/rich"
       xmlns:a4j="http://richfaces.org/a4j">
      
      
      <rich:tabPanel id="tabs" limitToList="true" switchType="ajax">
      <rich:tab label="tab1" id="tab1" disabled="#{TestBean.disabled}">
      <h:outputText value="Text1" />
      </rich:tab>
      <rich:tab label="tab2" id="tab2" disabled="#{TestBean.disabled}">
      <h:outputText value="Text2" />
      </rich:tab>
      
      <rich:tab label="tab3" id="tab3">
      <h:outputText value="Text3" />
      <rich:tabPanel>
      <rich:tab label="tab11" id="tab11">
      <h:outputText value="Text11" />
      </rich:tab>
      <rich:tab label="tab12" id="tab12">
      <h:outputText value="Text12" />
      </rich:tab>
      <rich:tab label="tab13" id="tab13">
      
      <h:outputText value="Text13" />
       <a4j:form id="a4jlog">
       Log
       <a4j:log popup="false" level="ALL" style="width: 800px; height: 200px;" rendered="true"></a4j:log>
      </a4j:form>
      <a4j:form>
      
      <a4j:commandButton action="#{TestBean.switchdis}" immediate="true" bypassUpdates="true" value="a4j" reRender="tab2"></a4j:commandButton>
      </a4j:form>
      </rich:tab>
      
      </rich:tabPanel>
      </rich:tab>
      
      </rich:tabPanel>
      
      </ui:composition>