You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Juergen Donnerstag (JIRA)" <ji...@apache.org> on 2010/02/13 18:38:27 UTC

[jira] Resolved: (WICKET-2720) Panel throws MarkupException without passing MarkupStream

     [ 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.