Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-2720

Panel throws MarkupException without passing MarkupStream

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4.6
    • 1.4.7, 1.5-M1
    • wicket
    • None

    Description

      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()); }

      }
      }

      Attachments

        Activity

          People

            jdonnerstag Juegen Donnerstag
            sv3n Sven Rienstra
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: