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

Juergen Donnerstag resolved WICKET-2720.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5-M1
                   1.4.7
         Assignee: Juergen Donnerstag

thanks

> Panel throws MarkupException without passing MarkupStream
> ---------------------------------------------------------
>
>                 Key: WICKET-2720
>                 URL: https://issues.apache.org/jira/browse/WICKET-2720
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 1.4.6
>            Reporter: Sven Rienstra
>            Assignee: Juergen Donnerstag
>            Priority: Minor
>             Fix For: 1.4.7, 1.5-M1
>
>
> Panel throws a MarkupException without passing the MarkupStream while the 
> MarkupStream is available. This makes debugging some errors harder. Code 
> fragment:
>          /**
>        * 
>        * @see 
> org.apache.wicket.Component#onComponentTagBody(org.apache.wicket.markup.MarkupStream,
>        *      org.apache.wicket.markup.ComponentTag)
>        */
>       @Override
>       protected void onComponentTagBody(final MarkupStream markupStream, 
> final ComponentTag openTag)
>       {
>               // Render the associated markup
>               renderAssociatedMarkup("panel",
>                       "Markup for a panel component has to contain part 
> '<wicket:panel>'");
>               if (wasOpenCloseTag == false)
>               {
>                       // Skip any raw markup in the body
>                       markupStream.skipRawMarkup();
>                       if (markupStream.get().closes(openTag) == false)
>                       {
>                               throw new MarkupException("close tag not found 
> for tag: " + openTag.toString() +
>                                       ". Component: " + this.toString());
>                       }
>               }
>       }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to