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

using TransparentWebMarkupContainer results in Markup not found for Component...

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.5-M2.1
    • None
    • None
    • None

    Description

      I used in wicket 1.4.x a WebMarkupContainer (isTransparentResolver = true) to add additional css styles to a div tag.

      if I replace the WebMarkupContainer with the new TransparentWebMarkupContainer, this will result in a 'Markup not found for Component: [BookmarkablePageLink [Component id = homelink]]' Exception in the attached quickstart.tar.gz.

      The missing markup is for a bookmarkable link added to the ProfilePage and the TransparentWebMarkupContainer is part of the AbstractBasePage.

      – ProfilePage.java ----
      public class ProfilePage extends AbstractBasePage {
      public ProfilePage(PageParameters parameters)

      { super(parameters); add( homePageLink("homelink") ); }

      }

      – ProfilePage.html ----
      <html xmlns:wicket>
      <body>
      <wicket:extend>
      <h1>Profile</h1>
      <a wicket:id="homelink" href="#">back to home</a>
      </wicket:extend>
      </body>
      </html>

      – AbstractBasePage.java ----
      public class AbstractBasePage extends WebPage {
      public AbstractBasePage(PageParameters parameters)

      { super(parameters); WebMarkupContainer content = new TransparentWebMarkupContainer("content"); add(content); }

      }

      – AbstractBasePage.html ----
      <html xmlns:wicket>
      <body>
      <div id="header">header</div>
      <div id="main">
      <div id="sidebar">sidebar</div>
      <div wicket:id="content" id="content">
      <wicket:child/>
      </div>
      </div>
      <div id="footer">footer</div>
      </body>
      </html>

      Attachments

        1. myproject.zip
          8 kB
          Juegen Donnerstag
        2. quickstart.tar.gz
          5 kB
          Gabriel Bucher
        There are no Sub-Tasks for this issue.

        Activity

          People

            jdonnerstag Juegen Donnerstag
            gabriel.bucher Gabriel Bucher
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: