Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-12765

Rich:tabPanel not possible to switch tabs when only dynamic tabs are present

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.3.0.M3, 4.3.0.CR2, 4.3.0.Final, 4.3.1
    • Fix Version/s: 4.3.2, 5.0.0.Alpha1
    • Component/s: component-output
    • Labels:
      None
    • Environment:

      Linux, windows any browser Chrom, Mozilla

    • Sprint:
      4.3.1 Sprint - Critical + tabs
    • Steps to Reproduce:
      Hide

      Remove from example that comes with richfaces distribution first static tab for dynamic tabs and you'll be able to reproduce this behaviour.
      richfaces/tabPanel/samples/dynamic-sample.xhtml

       <rich:tabPanel activeItem="#{dynamicPanelBean.activeTab}">
                 <ui:remove>
                  <rich:tab header="Static">
                      <p>This tab is static one.</p>
                     
                      <p>All of the following tabs are dynamically generated using <b>a4j:repeat</b>.</p>
                  </rich:tab>
                  </ui:remove>
                  <a4j:repeat value="#{skinBean.skins}" var="skinName">
                 
                      <rich:tab header="#{skinName}" name="#{skinName}">
                          <f:facet name="header">#{skinName}</f:facet>
      
                          <i> All the controls below are just standard JSF components skinned with RichFaces: </i>
                          <hr />
                          <h:form>
      
      Show
      Remove from example that comes with richfaces distribution first static tab for dynamic tabs and you'll be able to reproduce this behaviour. richfaces/tabPanel/samples/dynamic-sample.xhtml <rich:tabPanel activeItem= "#{dynamicPanelBean.activeTab}" > <ui:remove> <rich:tab header= "Static" > <p>This tab is static one.</p> <p>All of the following tabs are dynamically generated using <b>a4j:repeat</b>.</p> </rich:tab> </ui:remove> <a4j:repeat value= "#{skinBean.skins}" var = "skinName" > <rich:tab header= "#{skinName}" name= "#{skinName}" > <f:facet name= "header" >#{skinName}</f:facet> <i> All the controls below are just standard JSF components skinned with RichFaces: </i> <hr /> <h:form>
    • Affects:
      Interactive Demo/Tutorial
    • Workaround Description:
      Hide

      No work around

      Show
      No work around
    • Estimated Difficulty:
      Medium
    • Bugzilla Update:
      Perform

      Description

      Rih:Tab panel functionality is broken.
      If you have dynamically generated tabs, you'll be able to switch from first to last, and then to first, but you'll not be able to switch to any other tab again.

      Remove from example that comes with richfaces distribution first static tab for dynamic tabs and you'll be able to reproduce this behaviour.
      richfaces/tabPanel/samples/dynamic-sample.xhtml

       <rich:tabPanel activeItem="#{dynamicPanelBean.activeTab}">
                 <ui:remove>
                  <rich:tab header="Static">
                      <p>This tab is static one.</p>
                     
                      <p>All of the following tabs are dynamically generated using <b>a4j:repeat</b>.</p>
                  </rich:tab>
                  </ui:remove>
                  <a4j:repeat value="#{skinBean.skins}" var="skinName">
                 
                      <rich:tab header="#{skinName}" name="#{skinName}">
                          <f:facet name="header">#{skinName}</f:facet>
      
                          <i> All the controls below are just standard JSF components skinned with RichFaces: </i>
                          <hr />
                          <h:form>
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  lfryc Lukáš Fryč
                  Reporter:
                  talik Tali Han
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 2 hours
                    2h
                    Remaining:
                    Remaining Estimate - 2 hours
                    2h
                    Logged:
                    Time Spent - Not Specified
                    Not Specified