Hi,
I tried nested display tables and it worked
fine. BUT I still face problem in the display structure which I really
wanted.
The below code will display the related child
records expanding at the right side as below:
+ Parent employeeNum Parent
FirstName Parent
lastName
Related Child 1 Records
employeeNum firstName
lastName
What
I want to display is that all records be in the same heirarchy in a row
wise fashion as given below (with a link to show hide the child
records):
+ Parent
employeeNum
Parent FirstName Parent
lastName
+ Related Child
1 employeeNum Child
firstName Child
lastName
If any
one has tried this out, please share your ideas.
best
regds
Farruq
Code I tried
:
<display:table
name="recordResults" requestURI="DisplayTag.jsp" id="parent" pagesize="5" >
<%
// GOT CHILD DATA HERE
%>
<%
// GOT CHILD DATA HERE
%>
<display:column>
<a href="" > + </a>
</display:column>
<display:column title="Employee #" property="employeeNum" sortable="true" />
<display:column title="First Name" property="firstName" sortable="true" />
<display:column title="Last Name" property="lastName" sortable="true"/>
<a href="" > + </a>
</display:column>
<display:column title="Employee #" property="employeeNum" sortable="true" />
<display:column title="First Name" property="firstName" sortable="true" />
<display:column title="Last Name" property="lastName" sortable="true"/>
<display:column title="Related Child 1
Records">
<display:table name="recordSubResults" id="child">
<display:column title="Child Num" property="employeeNum"/>
<display:column title="Child First Name" property="firstName" />
<display:column title="Child Last Name" property="lastName" />
<display:table name="recordSubResults" id="child">
<display:column title="Child Num" property="employeeNum"/>
<display:column title="Child First Name" property="firstName" />
<display:column title="Child Last Name" property="lastName" />
<!-- MORE CHILDS GO
ON NESTED HERE.... -->
</display:table>
</display:column>
</display:table>
</display:table>
</display:column>
</display:table>
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Farruq Ahmed (WT01 - Retail, CPG & Distribution)
Sent: Monday, October 11, 2004 6:28 PM
To: [EMAIL PROTECTED]
Subject: [displaytag-user] nested display tag.
Can some one help
with multiple-level nested display tags?
I tried to code at
http://www.displaytag.org/example-nestedtables.jsp.source but
not able to achieve what I wanted.
If some one has
tried it out please share the code with me. thanks in
advance
best
regds
Farruq

