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

RenderStrategy REDIRECT_TO_RENDER lets fail test with BaseWicketTester#startComponentInPage

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.16.0
    • Fix Version/s: 7.0.0-M3, 6.17.0
    • Component/s: wicket
    • Labels:
      None

      Description

      After changing the RenderStrategy from REDIRECT_TO_BUFFER to REDIRECT_TO_RENDER tests with BaseWicketTester#startComponentInPage fail.

      Stacktrace:

      org.apache.wicket.markup.MarkupNotFoundException: Can not determine Markup. Component is not yet connected to a parent. [Page class = org.apache.wicket.util.tester.BaseWicketTester$StartComponentInPage, id = 0, render count = 1]
      at org.apache.wicket.Component.getMarkup(Component.java:749)
      at org.apache.wicket.util.tester.BaseWicketTester$StartComponentInPage.getMarkup(BaseWicketTester.java:1453)
      at org.apache.wicket.Component.internalRender(Component.java:2309)
      at org.apache.wicket.Component.render(Component.java:2272)
      at org.apache.wicket.Page.renderPage(Page.java:1024)
      at org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:122)
      at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:221)
      at org.apache.wicket.util.tester.BaseWicketTester$LastPageRecordingPageRendererProvider$1.respond(BaseWicketTester.java:2657)
      at org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:175)
      at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:862)
      at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
      at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
      at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
      at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
      at org.apache.wicket.util.tester.BaseWicketTester.processRequest(BaseWicketTester.java:654)
      at org.apache.wicket.util.tester.BaseWicketTester.processRequest(BaseWicketTester.java:712)
      at org.apache.wicket.util.tester.BaseWicketTester.processRequest(BaseWicketTester.java:593)
      at org.apache.wicket.util.tester.BaseWicketTester.startPage(BaseWicketTester.java:818)
      at org.apache.wicket.util.tester.BaseWicketTester.startPage(BaseWicketTester.java:835)
      at org.apache.wicket.util.tester.BaseWicketTester.startComponentInPage(BaseWicketTester.java:1387)
      at org.apache.wicket.util.tester.BaseWicketTester.startComponentInPage(BaseWicketTester.java:1317)
      at org.foo.StatelessTest.testComponents(StatelessTest.java:97)

        Attachments

        1. quickstart.zip
          49 kB
          Dirk Forchel

          Activity

            People

            • Assignee:
              mgrigorov Martin Tzvetanov Grigorov
              Reporter:
              forchel Dirk Forchel
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: