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 2011/09/12 16:22:09 UTC

[jira] [Resolved] (WICKET-4016) MarkupContainer.toString(true) fails with MarkupNotFoundException if the call is made in the component constructor

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

Martin Grigorov resolved WICKET-4016.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5.1
         Assignee: Martin Grigorov

Thanks Andrea!
I extended even more your patch + a test.

> MarkupContainer.toString(true) fails with MarkupNotFoundException if the call is made in the component constructor
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-4016
>                 URL: https://issues.apache.org/jira/browse/WICKET-4016
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-RC7
>            Reporter: Martin Grigorov
>            Assignee: Martin Grigorov
>             Fix For: 1.5.1
>
>         Attachments: toStringComponentPatch.txt
>
>
> org.apache.wicket.MarkupContainer.toString(boolean) uses "if (getMarkup() != null)" to decide whether to write something for the markup but since recently Component#getMarkup() throws MarkupNotFoundException when there is no markup and doesn't return null.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira