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

Tab panel: switching tabs doesn't work when they have name specified

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 4.3.0.M2
    • Fix Version/s: 4.3.0.M2
    • Labels:
      None
    • Environment:

      RichFaces 4.3.0-SNAPSHOT
      Metamer 4.3.0-SNAPSHOT
      Mojarra 2.1.7
      JBoss AS 7.1.2.Final-redhat-1
      Java(TM) SE Runtime Environment 1.6.0_32-b05 @ Linux
      Chrome 22.0.1229.79 @ Linux x86_64

    • Sprint:
      4.3.0.M2 iteration sprint, 4.3.0.M2 - Final Sprint
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      don't use attribute "name" on tabs, i.e. instead of

      <rich:tabPanel activeItem="tab2" switchType="ajax">
          <rich:tab id="tab1" name="tab1">content 1</rich:tab>
          <rich:tab id="tab2" name="tab2">content 2</rich:tab>
      </rich:tabPanel>
      

      use this:

      <rich:tabPanel activeItem="form:tab2" switchType="ajax">
          <rich:tab id="tab1">content 1</rich:tab>
          <rich:tab id="tab2">content 2</rich:tab>
      </rich:tabPanel>
      

      Show
      don't use attribute "name" on tabs, i.e. instead of < rich :tabPanel activeItem = "tab2" switchType = "ajax" > < rich :tab id = "tab1" name = "tab1" >content 1</ rich :tab> < rich :tab id = "tab2" name = "tab2" >content 2</ rich :tab> </ rich :tabPanel> use this: < rich :tabPanel activeItem = "form:tab2" switchType = "ajax" > < rich :tab id = "tab1" >content 1</ rich :tab> < rich :tab id = "tab2" >content 2</ rich :tab> </ rich :tabPanel>

      Description

      1. deploy Metamer and open http://localhost:8080/metamer/faces/components/richTabPanel/simple.xhtml
      2. switch to tab2

      result:

      • ajax request is fired, item change listener is called but tab is not changed
      • after second click on the same tab it is changed correctly
      • sometimes a JS error is visible in browser console "Uncaught TypeError: Cannot read property 'disabled' of undefined" in togglePanel.js:363

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  lfryc Lukáš Fryč
                  Reporter:
                  ppitonak Pavol Pitonak
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: