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

Problem with queued components and setting the model

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 7.2.0, 8.0.0-M1
    • 7.3.0, 8.0.0-M1
    • wicket
    • None

    Description

      The attached example works, if we use "add" instead of "queue". The quickstart is already shrinked to a minimum.

      7.3.0-SNAPSHOT is also affected.

      Panel.html
      <wicket:panel>
        <div wicket:id="container">
          <div wicket:enclosure="child">
            <p wicket:id="child">1</p>
            <a wicket:id="child2">2</a>
          </div>
        </div>
      </wicket:panel>
      
      TestPanel.java
      public TestPanel(String id) {
          super(id);
      
          WebMarkupContainer container = new WebMarkupContainer("container");
      
          container.queue(new Label("child") {
            @Override
            protected void onInitialize() {
              super.onInitialize();
      
              setDefaultModel(Model.of("test"));
            }
          });
          container.queue(new WebMarkupContainer("child2").setVisible(false));
      
          queue(container);
        }
      

      Attachments

        1. wicket-queuing.zip
          15 kB
          Fridolin Jackstadt
        2. wicket-6088.patch
          5 kB
          Andrea Del Bene

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            bitstorm Andrea Del Bene
            frido-lbm Fridolin Jackstadt
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment