2 Replies Latest reply on Oct 11, 2007 10:28 AM by Robin Young

    rich:tab, rich:region and a4j:status

    Robin Young Newbie

      I have a rich:tabPanel with many tabs on it. Each tab has switch type ajax.
      What I would like to do is indicate in each tab the status when the tab is clicked upon.

      However I have come across the following:-

      If I use

      <rich:tabPanel switchType="ajax" ...>
      <rich:tab id="tab1" switchType="ajax" ...>
      <f:facet name="label">
      <h:panelGrid columns="2">
       <a4j:status for="tab1">
       <f:facet name="start">
       <h:graphicImage value="/images/loading.gif"/>
       </f:facet>
       <f:facet name="stop">
       <rich:spacer height="16" width="16"/>
       </f:facet>
       </a4j:status>
      <h:outputText value="..."/>
      </h:panelGrid>
      </f:facet>
      ...
      </rich:tab>
      ...
      </rich:tabPanel>
      


      Then I get the following "Target pointed Attribute for of AjaxStatus component with id j_id33 not is AjaxContainer"

      If I however use

      <rich:tabPanel switchType="ajax" ...>
      <a4j:region>
      <rich:tab id="tab1" switchType="ajax" ...>
      <f:facet name="label">
      <h:panelGrid columns="2">
       <a4j:status>
       <f:facet name="start">
       <h:graphicImage value="/images/loading.gif"/>
       </f:facet>
       <f:facet name="stop">
       <rich:spacer height="16" width="16"/>
       </f:facet>
       </a4j:status>
      <h:outputText value="..."/>
      </h:panelGrid>
      </f:facet>
      ...
      </rich:tab>
      </a4j:region>
      ...
      </rich:tabPanel>
      


      Then the the tab doesn't display at all.

      Does anyone know how to specify an ajax enabled tab as a region so that I can use it in conjunction with a4j:status?