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

The wicket:enclosure attribute doesn't work properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.17
    • 1.4.18
    • wicket
    • None

    Description

      When the hidden child becomes visible again, it fails to appear on the page. The same thing works correctly with the wicket:enclosure tag.

      Example code:

      public class TestPage extends WebPage {
      public TestPage() {
      final Label l = new Label("msg", "hi");
      add(l);
      add(new Link<Void>("b") {
      private static final long serialVersionUID = 1L;

      @Override
      public void onClick()

      { l.setVisible(!l.isVisible()); }

      });
      }
      }

      TestPage.html:

      <html xmlns:wicket>
      <body>
      <div wicket:enclosure="msg"><span wicket:id="msg"></span></div>
      <input type="button" value="Toggle" wicket:id="b">
      </body>
      </html>

      Attachments

        1. wicket-1.4.x-3842.patch
          5 kB
          Juegen Donnerstag
        2. patch.txt
          2 kB
          Igor Vaynberg

        Activity

          People

            jdonnerstag Juegen Donnerstag
            aditsu Adrian Sándor
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: