Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4.4
    • 1.4.11
    • wicket-extensions
    • None

    Description

      By increasing the array before checking with 1 the code will work when user add only one tab to component...
      The applied solution break the correction made for the issue WICKET-2478
      I propose:
      ++ if (tabsVisibilityCache == null || tabsVisibilityCache.length != tabs.size())

      { tabsVisibilityCache = new Boolean[tabs.size()]; }

      – if (tabsVisibilityCache.length < tabIndex + 1)

      { -- Boolean[] resized = new Boolean[tabIndex + 1]; -- System.arraycopy(tabsVisibilityCache, 0, resized, 0, tabsVisibilityCache.length); -- tabsVisibilityCache = resized; -- }

      Attachments

        Activity

          People

            Unassigned Unassigned
            pedrosans Pedro Santos
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: