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

isVisible should not be called after detach

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4-RC1
    • 1.4-RC2
    • wicket
    • None

    Description

      I think isVisible should not be called after detach to prevent model reloads.

      I found one call to isVisible after detach in method ComponentRequestTarget#respond(RequestCycle). That method initiates a detach and then calls page.endComponentRender. This leads to a call to Page#checkRendering which calls isVisibleInHierarchy() and from there isVisible(). Method checkRendering only does something when the debug setting 'componentUseCheck' is enabled (which according to the javadoc is true by default).

      Short term workaround: set debug setting 'componentUseCheck' to false.

      Attachments

        Activity

          People

            jdonnerstag Juegen Donnerstag
            erikvanoosten Erik van Oosten
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: