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

Nested TransparentWebMarkupContainer, markup of inner component not found

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 7.1.0
    • 7.2.0, 8.0.0-M1
    • wicket
    • None

    Description

      In the attached example page a FeedbackPanel should be rendered on AJAX-Request by pressing an AjaxButton. If you submit the form with empty input in TextField 'username" you get a MarkupNotFoundError for the FeedbackPanel:

      "org.apache.wicket.markup.MarkupNotFoundException: Markup not found for Component: [FeedbackPanel [Component id = feedback]]
      at org.apache.wicket.Component.internalRender(Component.java:2348)
      at org.apache.wicket.Component.render(Component.java:2308)
      at org.apache.wicket.page.XmlPartialPageUpdate.writeComponent(XmlPartialPageUpdate.java:119)
      at org.apache.wicket.page.PartialPageUpdate.writeComponents(PartialPageUpdate.java:245)"

      The MarkupNotFoundError is associated to the two TransparentWebMarkupContainer's in the page. If you remove one of them for example, the problem is gone.

      Attachments

        1. MarkupNotFoundPage.html
          0.5 kB
          Roland Foerther
        2. MarkupNotFoundPage.java
          1 kB
          Roland Foerther

        Issue Links

          Activity

            People

              bitstorm Andrea Del Bene
              rfoerthe Roland Foerther
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: