Wicket
  1. Wicket
  2. WICKET-3842

The wicket:enclosure attribute doesn't work properly

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.17
    • Fix Version/s: 1.4.18
    • Component/s: wicket
    • Labels:
      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>

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

        Activity

        Juergen Donnerstag made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Fix Version/s 1.4.18 [ 12316329 ]
        Fix Version/s 1.5-RC6 [ 12316657 ]
        Resolution Fixed [ 1 ]
        Juergen Donnerstag made changes -
        Assignee Juergen Donnerstag [ jdonnerstag ]
        Juergen Donnerstag made changes -
        Attachment wicket-1.4.x-3842.patch [ 12485088 ]
        Martin Grigorov made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Juergen Donnerstag made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.5-RC6 [ 12316657 ]
        Resolution Fixed [ 1 ]
        Igor Vaynberg made changes -
        Field Original Value New Value
        Attachment patch.txt [ 12485067 ]
        Adrian Sandor created issue -

          People

          • Assignee:
            Juergen Donnerstag
            Reporter:
            Adrian Sandor
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development