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

Encapsulation of 3 enclosures leads to WicketRuntimeException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.1.0, 7.2.0
    • Fix Version/s: 7.3.0, 8.0.0-M1
    • Component/s: wicket
    • Labels:
      None

      Description

      The attached example is working in wicket 7.0.0, but broken since 7.1.0 and also in 7.2.0-SNAPSHOT, with a different error message.

      The attached code is already shrinked to a minimum to reproduce the problem.

      EnclosureTest.html
        <div wicket:enclosure="outer">
          <div wicket:id="outer">
            outer begin
            <div wicket:enclosure="middle">
              <div wicket:enclosure="inner">
                <div wicket:id="inner">inner</div>
              </div>
              <div wicket:id="middle">middle</div>
            </div>
            outer end
          </div>
        </div>
      
      EnclosureTest.java
        public EnclosureTest(String id) {
          super(id);
      
          WebMarkupContainer outer = new WebMarkupContainer("outer");
      
          outer.add(new WebMarkupContainer("inner"));
          outer.add(new WebMarkupContainer("middle"));
      
          add(outer);
        }
      

        Attachments

        1. wicket-enclosures.zip
          15 kB
          Fridolin Jackstadt

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: