Wicket listview跳过`list`标签

时间:2011-06-30 16:56:12

标签: listview wicket

如何生成下一个列表

<span wicket:id="listview">
   this label is: <span wicket:id="label">a</span><br/>
   this label is: <span wicket:id="label">b</span><br/>
   this label is: <span wicket:id="label">c</span><br/>
</span>

而不是

<span wicket:id="listview">
   this label is: <span wicket:id="label">a</span><br/>
</span>
<span wicket:id="listview">
   this label is: <span wicket:id="label">b</span><br/>
</span>
<span wicket:id="listview">
   this label is: <span wicket:id="label">c</span><br/>
</span>

如果有什么不清楚请写。

2 个答案:

答案 0 :(得分:4)

这个怎么样? wicket:container标签不会出现在最终标记中。

<span>
    <wicket:container wicket:id="listview">
        this label is: <span wicket:id="label">a</span><br/>
    </wicket:container>
</span>

答案 1 :(得分:0)

&LT;跨度&GT;   &lt; span wicket:id =“repeatingView”&gt;&lt; / span&gt; &LT; /跨度&GT;

即。请参阅RepeatingView。