ICEmobile
  1. ICEmobile
  2. MOBI-287

accordion jsf component may have more than one panel open at a time

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1 Beta
    • Component/s: None
    • Labels:
      None
    • Environment:
      jsf2 icefaces3 icemobile

      Description

      In mobitest can click on panel2 and then panel3 and then panel1

      since panel1 is client, it is not closing the panel3 so need to focus on proper behaviour of client="true" contentPanes to ensure the previous one is closed.

        Activity

        Hide
        Philip Breau added a comment -

        This is due to the hash that was added to the accordion script. Whenever the there's a dom update now, the script is re-evaluated, calling mobi.accordionController.initClient(), which calls Accordion.updateProperties(), which resets the paneOpId variable back to cfgIn.opened. The accordion then has the wrong state for the panel that's opened, thinking it's still the original. When the user then opens the closed panel that the component thinks is opened, it doesn't close the right panel.

        Show
        Philip Breau added a comment - This is due to the hash that was added to the accordion script. Whenever the there's a dom update now, the script is re-evaluated, calling mobi.accordionController.initClient(), which calls Accordion.updateProperties(), which resets the paneOpId variable back to cfgIn.opened. The accordion then has the wrong state for the panel that's opened, thinking it's still the original. When the user then opens the closed panel that the component thinks is opened, it doesn't close the right panel.
        Hide
        Philip Breau added a comment -

        Revision: 30267
        Author: philip.breau
        Date: July-26-12 12:27:23 PM
        Message:
        MOBI-288 - accordion can open multiple panes at the same time


        Modified : /icemobile/trunk/icemobile/jsf/components/component/resources/org.icefaces.component.accordion/accordion.js

        Show
        Philip Breau added a comment - Revision: 30267 Author: philip.breau Date: July-26-12 12:27:23 PM Message: MOBI-288 - accordion can open multiple panes at the same time Modified : /icemobile/trunk/icemobile/jsf/components/component/resources/org.icefaces.component.accordion/accordion.js

          People

          • Assignee:
            Philip Breau
            Reporter:
            Judy Guglielmin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: