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

ComponentRenderingRequestHandler does not clear renderedComponents (PrototypeApplication)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.9.1, 7.0.0-M1
    • 6.10.0, 7.0.0-M1
    • wicket
    • None

    Description

      A second click on the prototype link fails:

      The component [Component id = counter] was rendered already. You can render it only once during a render phase. Class relative path: org.apache.wicket.markup.html.basic.Label:counter
      MarkupStream: [unknown]
      at org.apache.wicket.Page.componentRendered(Page.java:210)
      at org.apache.wicket.Component.rendered(Component.java:2610)
      at org.apache.wicket.Component.internalRender(Component.java:2383)
      at org.apache.wicket.Component.render(Component.java:2307)
      at org.apache.wicket.core.request.handler.ComponentRenderingRequestHandler.respond(ComponentRenderingRequestHandler.java:70)

      ComponentUseCheck has to be enabled (e.g. development config). It seems ComponentRenderingRequestHandler does not clear the collection of renderedComponents in the page.

      Attachments

        Activity

          People

            svenmeier Sven Meier
            svenmeier Sven Meier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: