开发者

is it possible to have child table in a parent table

开发者 https://www.devze.com 2023-04-13 04:50 出处:网络
Is it possible to create a displaytag table with embedded child table ? Example below is to create an Employee report with his/her contact means as child table.

Is it possible to create a displaytag table with embedded child table ? Example below is to create an Employee report with his/her contact means as child table.

<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<display:table id="employees" name="employees" uid="1">
    <display:column title="Id" property开发者_JAVA技巧="employeeId" />
    <display:column title="Department" property="department" />
    <display:column title="Contact Points" property="contacts">
    <display:table id="contacts" name="contacts" uid="2">
        <display:column title="Postal Address" property="postalAddress" />
        <display:column title="Email" property="emailAddress" />
        <display:column title="Cell Phone" property="cellPhoneNumber" />
    </display:table>
    </display:column>
</display:table>


It's possible to create displaytag nested tables: just follow this example

0

精彩评论

暂无评论...
验证码 换一张
取 消