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

BaseWicketTester.isVisible() doesn't check Component.isRenderAllowed()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.3.1
    • 1.3.2
    • wicket
    • None

    Description

      BaseWicketTester.isVisible() only checks Component.isVisible(), not Component.isRenderAllowed(). So for a component whose RENDER action is disabled through role based authorization strategy, BaseWicketTester.isVisible() still returns true. BaseWicketTester.isInvisible() works correctly by using BaseWicketTester.getComponentFromLastRenderedPage() which checks both Component.isVisible() and isRenderAllowed().

      Attachments

        Activity

          People

            ivaynberg Igor Vaynberg
            ywang29 Yuesong Wang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: