Wicket
  1. Wicket
  2. WICKET-5232

ComponentRenderer.renderComponent could accept components with any markupId, not just "compId"

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 6.8.0
    • Fix Version/s: 6.9.0, 7.0.0
    • Component/s: wicket
    • Labels:
      None

      Description

      If you pass an existing component that has an arbitrary markupId to ComponentRenderer.renderComponent, it will fail:

      org.apache.wicket.markup.MarkupNotFoundException: Markup not found for Component: [Component id = myComponentId]

      This is because RenderPage markup uses a constant COMP_ID for the markupId:

      private static final String MARKUP = "<wicket:container wicket:id='" + COMP_ID + "'></wicket:container>";

      It would be nice if the ComponentRenderer would use the markupId of the given component.

        Activity

          People

          • Assignee:
            Martin Grigorov
            Reporter:
            Edvard Fonsell
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development