I think you'll need to create a wrapper object that 'flattens' your
lists and pass that to displaytag. In other words, you want to pass
displaytag an object which has the sales order and sales item data as
a single list. You should be able to write a trivial wrapper for your
sales order list (say an implementation of the Iterator interface) to
do that.
L.
On 15-Sep-05, at 9:58 AM, SourceForge.net wrote:
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=3340233
By: shaneka
This is what I have in my struts project. This is a list inside a
list. I want
to display this with displaytag.
I tried in severl mode, but without success…. Could you help me?
<logic:notEmpty name="listSalesOrders">
<table class="standard">
<tr>
<td width="5%"> </td>
<td>
<table class="item" rules="all">
<logic:iterate id="listSalesOrder" name="listSalesOrders"
indexId="indexSalesOrder">
<tr>
header
</tr>
<tr>
<td class="itemlist">bean:write name="listSalesOrder"
property="number"/></td>
<td class="itemlist"><bean:write name="listSalesOrder"
property="data"/></td>
<td class="itemlist"><bean:write name="listSalesOrder"
property="purchaseOrder"/>td>
<td class="itemlist"><bean:write name="listSalesOrder"
property="block"/></td>
<td class="itemlist"><bean:write name="listSalesOrder"
property="status"/></td>
<td class="itemlist"><bean:write name="listSalesOrder"
property="number"/></td>
</tr>
<tr>
Another heder
</tr>
<logic:iterate id="listSalesItem" name="listSalesOrder"
property="listSalesItems">
<tr>
<td class="itemlist"><bean:write
name="listSalesItem"property="item"/></td>
<td class="itemlist">bean:write name="listSalesItem"
property="description"/></td>
<td class="itemlist">bean:write name="listSalesItem"
property="quantity"/></td >
<td class="itemlist"><bean:write name="listSalesItem"
property="umquantity"/></td>
<td class="itemlist"><bean:write name="listSalesItem"
property="price"/></td>
<td class="itemlist"><bean:write name="listSalesItem"
property="currency"/></td>
</tr>
</logic:iterate>
</logic:iterate>
</table>
</td>
</tr>
</table>
</logic:notEmpty>
Thanks
Annalisa
______________________________________________________________________
You are receiving this email because you elected to monitor this
forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=249318
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user
--
Laurie Harper
Open Source advocate, Java geek: http://www.holoweb.net/laurie
Founder, Zotech Software: http://www.zotechsoftware.com/
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user