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

tabPanel with ui:iterator tabs returns "java.lang.IllegalStateException: No active tabs!"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: 3.0.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Seam 2.0b1
      RichFaces 3.0.1

      Description

      I have a simple tabbed page layout:
      <rich:tabPanel rendered="#

      {not empty agreement.agreementParties}

      ">
      <ui:repeat var="agParty" value="#

      {agreement.agreementParties}

      ">
      <rich:tab label="#

      {agParty.party.name}

      " ...>
      </ui:repeat>
      </rich:tabPanel>

      Which yields the following exception:
      java.lang.IllegalStateException: No active tabs!

      This is traced down to line:
      org.richfaces.renderkit.TabPanelRendererBase.encodeTabs(TabPanelRendererBase.java:225)

      It appears as the code is looking to direct children only for tabs. Since the direct child is a ui:iterator, it isn't finding any tabs.

      If I hack the code to go down one more layer and grab the tabs, the code will now throw an exception stating that the tabs parent is not a TabPanel.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  nbelaevski Nick Belaevski
                  Reporter:
                  james_hays James Hays
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: