Wicket 多个 listViews
我有一个值列表,我会按域对它们进行排序并显示它们,并且在加载时我不确切知道列表的项目,所以我无法将其设为静态。那么我们可以动态创建 listView 的 listView 还是有任何组件可以执行如下所示的特定层次结构:
*List1:
- ELEM1
- ELEM2
- ELEM3
*List2:
- ELEM1
- ELEM2
- ELEM3
I have a list of values and i would sort them by there domain and display them, and on loading i don't know exactly the list's items so i can't make it static. So can we create, dynamically a listView of listView or is there any component which do a particular hierarchic like this:
*List1:
- ELEM1
- ELEM2
- ELEM3
*List2:
- ELEM1
- ELEM2
- ELEM3
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
没有什么可以阻止 ListView 在其项目中包含更多 ListView。
作为旁注:从过去几天你的其他问题来看,也许从一些文献开始是个好主意,例如Wicket 实际操作 或 示例检票口主页。
Nothing prevents a ListView from containing more ListViews in its items.
As a side-note: Judging from your other questions during the last few days, maybe it's a good idea to start with some literature like Wicket in Action or the examples at the wicket homepage.
是的,你可以这样做。
例如,您的 HTML 可能具有以下结构:
您的 Java 代码将遵循相同的结构,但我将把它作为练习,供您学习。
Yes you can do this.
For example, your HTML may have the following structure:
Your Java code would follow the same structure, but I'll leave that as an excercise for you to learn something.