![](/img/trans.png)
[英]How to insert a set of object which Contains list of objects into Firebase
[英]How to paginate a list of objects which contains a list of object
我有一個名為Person的對象,該對象具有以下屬性:
private String firstname;
private String lastname;
private List<UserDetails> userList;
現在,我必須顯示人員列表,並且需要進行分頁。 我正在考慮使用展示廣告代碼。 但是我無法顯示如何使用顯示標簽在對象列表中顯示列表,因為我是顯示標簽的新手。
<display:table name="test" id="person">
<c:set var="userListVar" value="test.item[${parent_rowNum -1}].userList" />
<display:column title="Related address">
<display:table name="${userListVar}" id="child${parent_rowNum}" class="simple sublist">
<display:column property="name" />
</display:table>
</display:column>
</display:table>
供您參考
http://demo.displaytag.org/displaytag-examples-1.1/example-nestedtables.jsp
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.