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

Problem with queued components and setting the model

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.2.0, 8.0.0-M1
    • Fix Version/s: 7.3.0, 8.0.0-M1
    • Component/s: wicket
    • Labels:
      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-6088.patch
          5 kB
          Andrea Del Bene
        2. wicket-queuing.zip
          15 kB
          Fridolin Jackstadt

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: