helmut8080 commented on issue #403: Iteration stops with nested containers URL: https://github.com/apache/wicket/pull/403#issuecomment-586646881 Sure. Hope its ok to just post the unit test here: @Test void streamChildrenNestedContainer() { WebMarkupContainer wmc = new WebMarkupContainer("parent"); WebMarkupContainer wmc1 = new WebMarkupContainer("wmc1"); wmc.add(wmc1); WebMarkupContainer wmc1_2= new WebMarkupContainer("wmc1_2"); wmc1.add(wmc1_2); Label lbl2 = new Label("lbl2"); wmc.add(lbl2); List<String> l = wmc.streamChildren().map(t -> t.getId()).collect(Collectors.toList()); // System.out.println(l); assertEquals(l.toString(), "[wmc1, wmc1_2, lbl2]"); }
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
