2 Replies Latest reply on Feb 1, 2010 6:56 PM by molarisapa

    tabpanel don't work in dataTable

    molarisapa

      Hello,

       

      My tabPanel don't work when I put it in a dataTable. Do you know why ?

       

      Thanks

      Code  :
      <rich:dataTable value="dt">
          <rich:columnGroup>

              <rich:column><ui:insert name="login">LOGIN</ui:insert></rich:column>

              <rich:column>
                  <rich:tabPanel>
                      <rich:tab label="Exemple 1"></rich:tab>
                      <rich:tab label="Exemple 2"></rich:tab>
                  </rich:tabPanel>
              </rich:column>

          </rich:columnGroup>
      </rich:dataTable>

        • 1. Re: tabpanel don't work in dataTable
          nbelaevski

          Hi,

           

          Iteration components reset internal state of nested components before rendering, so you have to bind current tab to the model:

                         <rich:dataTable var="item" ...>
                              <rich:column>
                                   <rich:tabPanel selectedTab="#{item.selecteTab}">
                                        <rich:tab></rich:tab>
                                        <rich:tab></rich:tab>
                                   </rich:tabPanel>
                              </rich:column>
                         </rich:dataTable>
          
          • 2. Re: tabpanel don't work in dataTable
            molarisapa

            Hi!

             

            It's work great! Thanks

             

             

            olivier