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

Items/Tabs are not working when mode/switchType=null in MyFaces

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Duplicate Issue
    • Affects Version/s: 4.0.0.Milestone6
    • Fix Version/s: None
    • Component/s: component-menu
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      1. http://localhost:8080/metamer/faces/components/richAccordion/simple.xhtml
      2. set @mode=null
      3. click on Item 2
      4. click on Item 1
      Mojarra: OK: Item 1 is opened
      MyFaces: FAIL: Item 2 stays toggled

      Show
      1. http://localhost:8080/metamer/faces/components/richAccordion/simple.xhtml 2. set @mode=null 3. click on Item 2 4. click on Item 1 Mojarra: OK: Item 1 is opened MyFaces: FAIL: Item 2 stays toggled
    • Affects:
      Compatibility/Configuration

      Description

      This is MyFaces-Mojarra compatibility issue.

      When following code is defined:

      <rich:tabPanel mode="ajax">
      <rich:tab mode="" />
      <rich:tab />
      </rich:tab>

      sample works in Mojarra and tabPanel mode is used for first tab.
      But in MyFaces, tab panel can't be switched in any way.

      This breaks following components either:

      • tab
      • panelMenuGroup
      • panelMenuItem
      • accordionMenuItem
      • togglePanelItem

      I propose to unify behavior in Mojarra way, since it is more comfortable for developers, considering following sample:

      <rich:tabPanel mode="ajax">
      <rich:tab mode="#

      {EL}" />
      <rich:tab />
      </rich:tab>

      where #{EL}

      is evaluated to null - sample stops to work in MyFaces but works in Mojarra.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  lfryc Lukáš Fryč
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: