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

Component visible-in-hierarchy cache not used but cleared

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 9.0.0, 8.9.0
    • 9.2.0, 8.11.0
    • wicket-core
    • None

    Description

      When the visibility of a component is changed via setVisible(), the Component and especially the MarkupContainer clears a cache flag (RFLAG_VISIBLE_IN_HIERARCHY_SET) on all contained components.

      Unlike the flag for isEnabledInHiearchy (RFLAG_ENABLED_IN_HIERARCHY_SET), the flag for visibility seems not to be updated and used in isVisibleInHiearchy.

      Resolution: either use the cache or avoid the (expensive) clearance for all children.

      Attachments

        Issue Links

          Activity

            People

              thomas.heigl Thomas Heigl
              tobiashaupt Tobias Haupt
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: