You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2013/06/13 10:06:20 UTC

[jira] [Resolved] (WICKET-5232) ComponentRenderer.renderComponent could accept components with any markupId, not just "compId"

     [ https://issues.apache.org/jira/browse/WICKET-5232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-5232.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 7.0.0
                   6.9.0
         Assignee: Martin Grigorov
    
> ComponentRenderer.renderComponent could accept components with any markupId, not just "compId"
> ----------------------------------------------------------------------------------------------
>
>                 Key: WICKET-5232
>                 URL: https://issues.apache.org/jira/browse/WICKET-5232
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 6.8.0
>            Reporter: Edvard Fonsell
>            Assignee: Martin Grigorov
>            Priority: Minor
>             Fix For: 6.9.0, 7.0.0
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira