2 Replies Latest reply on Nov 2, 2008 10:44 PM by spratiha

    tab panel has no enabled or rendered tabs!

    spratiha

      Hi,

      I want to generate tabs in tabpanel dynamically. The tabs are not rendered at all. I get a message as mentioned in subject 'tab panel has no enabled or rendered tabs!' in server console. No clue how I can make my tabs rendered onto the screen.

      Any help on this would be truely appreciated.

      My ***.xhtml view has following code. What is wrong in it? I do not get any error on page but Tabs are not displayed. Suppose my messageActionBean.languages list has two values. So two tabs should be created but there is none displayed. Probably <a4j:repeat> tag I am not using properly.

      <rich:tabPanel id="tabs" switchType="ajax" valueChangeListener="#{messageActionBean.tabActionProcess}">
       <a4j:repeat value="#{messageActionBean.languages}" var="lang" reRender="id_tab">
       <rich:tab id="id_tab" name="#{lang}" label="#{lang}" rendered="true" disabled="false">
      
       <table cols="3">
       <tr>
       <td><h:outputText value="#{labels.msg_original}" /></td>
       <td><h:outputText value="#{labels.msg_actual}" /><h:commandButton
       action="#{messageActionBean.editMessage(messageActionBean.systemMessage)}" value="#{messageActionBean.buttonLabel}" class="button-normal" /></td>
       <td></td>
       </tr>
       <tr>
       <td><h:inputTextarea value="#{messageActionBean.originalText}" id="msgOriginalNL" rows="8" cols="50" disabled="true" /></td>
       <td><h:inputTextarea value="#{messageActionBean.actualText}" id="msgActualNL" rows="8" cols="50" disabled="#{messageActionBean.disable}" /></td>
       <td></td>
       </tr>
       <tr>
       <td></td>
       <td align="right"><h:commandButton action="#" value="#{labels.msg_ok}" styleClass="button-normal" /><h:commandButton action="#"
       value="#{labels.msg_cancel}" styleClass="button-normal" /></td>
       <td></td>
       </tr>
       </table>
       </rich:tab>
       </a4j:repeat>
      
      </rich:tabPanel>