A repeater view that renders all of its children, using its body markup, in the order they were added.
Example:Java:
RepeatingView view = new RepeatingView("repeater"); view.add(new Label("1", "hello")); view.add(new Label("2", "goodbye")); view.add(new Label("3", "good morning"));
Markup:
<ul><li wicket:id="repeater"></li></ul>
Yields:
<ul><li>hello</li><li>goodbye</li><li>good morning</li></ul>To expand a bit: the repeater itself produces no markup, instead every direct child inherits the entire markup of the repeater. In the example above reeaters's markup is:
<li wicket:id="repeater"></li>and so this is the markup that is available to the direct children - the Label components. So as each label renders it produces a line of the output that has the
li
tag.
@author Igor Vaynberg ( ivaynberg )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|