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
            Priority: Minor


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