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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 6.8.0
    • 6.9.0, 7.0.0-M1
    • wicket
    • 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.

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            harmoniaa Edvard Fonsell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: