Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-2478

TabbedPanel rendering bug

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.1
    • 1.4.2, 1.5-M1
    • wicket-extensions
    • None

    Description

      In my application I have on TabbedPanel component that has no tab ( will to be removed since make no sense ). Any way, at some point I put the component to an AjaxRequestTarget response, an when the tabbed panel was re-rendered, it throw an java.lang.ArrayIndexOutOfBoundsException: 0 (I'm sending an test case attached)
      The problem is that on isTabVisible method, an visibility variable receive the visibility on cache using the tabIndex:

      Boolean visible = tabsVisibilityCache[tabIndex];

      at this moment, the tabsVisibility is empty ( and tabIndex == 0 )

      in my workspace I resolve the exception testing the array lenght (I'm sending a path)

      although is an rare occurrence bug, I think wicket should provide an solution.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ivaynberg Igor Vaynberg
            pedrosans Pedro Santos
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment