Wicket
  1. Wicket
  2. WICKET-5300

ComponentRenderingRequestHandler does not clear renderedComponents (PrototypeApplication)

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.9.1, 7.0.0-M1
    • Fix Version/s: 6.10.0, 7.0.0-M1
    • Component/s: wicket
    • Labels:
      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.

        Activity

        Sven Meier made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 7.0.0 [ 12322958 ]
        Fix Version/s 6.10.0 [ 12324643 ]
        Resolution Fixed [ 1 ]
        Sven Meier made changes -
        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
        It seems the collection
        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.
        Sven Meier made changes -
        Field Original Value New Value
        Description A second click on a prototype link failse:

        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)
        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
        It seems the collection
        Sven Meier created issue -

          People

          • Assignee:
            Sven Meier
            Reporter:
            Sven Meier
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development