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

ComponentRenderer.renderComponent() unexpectedly produces a WicketRuntimeException when called with a nested Component which contains a nested wicket:message

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Implemented
    • 7.0.0-M5, 6.19.0
    • 6.20.0, 7.0.0-M6
    • wicket
    • None

    Description

      ComponentRenderer.renderComponent() unexpectedly produces a WicketRuntimeException when called with a nested Component which contains a nested "wicket:message".

      The nested Component works OK in production.

      But our tests fail unexpectedly with a WicketRuntimeException when trying to obtain the HTML output from the nested component.

      The WicketRuntimeException is suppressed by getResourceSettings().setThrowExceptionOnMissingResource(false) but then renderComponent() does not produce the expected HTML.

      See the attached test case against Wicket version 6.19:

      SomeComponentTest.testBasic() PASSES
      SomeComponentTest.testRenderPageToHtml() PASSES
      SomeComponentTest.testRenderSomeComponentToHtml() PASSES
      SomeComponentTest.testRenderLinkToHtml() FAILS unexpectedly

      Hopefully this makes sense.

      Thanks to the Wicket team for a great product.

      Attachments

        1. 5875.zip
          9 kB
          Jon Mann

        Activity

          People

            bitstorm Andrea Del Bene
            Jon Mann Jon Mann
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: