[Help] RE: Embedding one display:table within another..?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Help] RE: Embedding one display:table within another..?

SourceForge.net

The following forum message was posted by dineshsub at http://sourceforge.net/projects/displaytag/forums/forum/249318/topic/1167598:

Anthony,
Are you able to resolve this?(embedding one table within another)
I am having a similar problem. This is my jsp


<c:if test="${not empty producerList}">
        <display:table class="dataTable"  name="producerList" id="producerObj"  offset="0"
cellpadding="3" cellspacing="2" requestURI="Add.do?paging=true" pagesize="10">
                        <display:setProperty name="basic.empty.showtable" value="true"/>
                        <display:setProperty name="paging.banner.placement" value="bottom" />
                        <display:setProperty name="paging.banner.group_size" value="2" />
                   <display:setProperty name="paging.banner.some_items_found">
                      <span class="pagebanner">Showing {2} to {3} of {0}.</span>
                        </display:setProperty>
                    <display:setProperty
name="paging.banner.full">Test</display:setProperty>
                    <display:setProperty name="paging.banner.first">
                                <span class="pagelinks">
                                        <<First <Prev
                                         <a href="{3}">>Next</a>
                                         <a href="{4}"> >>Last</a>
                        </span>
                        </display:setProperty>
                    <display:setProperty name="paging.banner.last">
                    <span class="pagelinks">
                                                <a href="{1}"><<First</a>
                                                <a href="{2}"> <Prev</a>
                                                {0}  Next>Last>>
                                </span>
                    </display:setProperty>
                   
                <display:setProperty name="basic.empty.showtable" value="bottom" />
               
                <display:column property="producerName" title="Producer" />
                <display:table class="dataTable"  name="${producerObj.payGroups}" id="payGroupObj"
offset="0" cellpadding="3" cellspacing="2" requestURI="Add.do?paging=true"
decorator="xxxx.decorator.PayGroupDecorator">
                        <display:column property="unitNumber" title="Unit" />
                        <display:column property="payGroup" title="Pay Group" />
                        <display:column property="disasterStartDate" title="Disaster Startdate" />
                        <display:column property="disasterEndDate" title="Disaster End Date" />
                        <display:column property="status" title="Status"  />
                        <display:column property="viewPrint"  headerClass="hidden" title="" />
                        <display:column property="edit"  headerClass="hidden" title="" />
                       
                </display:table>
        </display:table>


I dont get any errors, but the contents of the embedded table are not displayed


Producer
Smith,Mr.Richard A.
Tomlinson,Dr.Ivanonewski R.

It displays only the producer name which is defined in the outer table. I am
able to display the collection in the java controller(using MVC 3) which is
shown below


14:00:10,691 INFO  [STDOUT] DEBUG AddApplicationController - Size of producer
list=2
14:00:10,691 INFO  [STDOUT] DEBUG AddApplicationController - Producer
name=Smith,Mr.Richard A.
14:00:10,691 INFO  [STDOUT] DEBUG AddApplicationController - Unit Number=257
14:00:10,691 INFO  [STDOUT] DEBUG AddApplicationController -
Pay Group=Barley,002,01
14:00:10,691 INFO  [STDOUT] DEBUG AddApplicationController - Disaster Startdate=Wed
Feb 02 00:00:00 CST 2011
14:00:10,691 INFO  [STDOUT] DEBUG AddApplicationController - Disaster End Date=Wed
Feb 02 00:00:00 CST 2011
14:00:10,691 INFO  [STDOUT] DEBUG AddApplicationController - Status=Active
14:00:10,691 INFO  [STDOUT] DEBUG AddApplicationController - Unit Number=257
14:00:10,691 INFO  [STDOUT] DEBUG AddApplicationController -
Pay Group=Mollusk,001,01
14:00:10,691 INFO  [STDOUT] DEBUG AddApplicationController - Disaster Startdate=Wed
Feb 02 00:00:00 CST 2011
14:00:10,691 INFO  [STDOUT] DEBUG AddApplicationController - Disaster End Date=Wed
Feb 02 00:00:00 CST 2011
14:00:10,691 INFO  [STDOUT] DEBUG AddApplicationController - Status=Pending
14:00:10,691 INFO  [STDOUT] DEBUG AddApplicationController - Unit Number=257
14:00:10,691 INFO  [STDOUT] DEBUG AddApplicationController -
Pay Group=Oranges,001,01
14:00:10,691 INFO  [STDOUT] DEBUG AddApplicationController - Disaster Startdate=Tue
Feb 15 00:00:00 CST 2011
14:00:10,691 INFO  [STDOUT] DEBUG AddApplicationController - Disaster End Date=Tue
Feb 15 00:00:00 CST 2011
14:00:10,691 INFO  [STDOUT] DEBUG AddApplicationController - Status=Initiated
14:00:10,691 INFO  [STDOUT] DEBUG AddApplicationController - Unit Number=259
14:00:10,691 INFO  [STDOUT] DEBUG AddApplicationController -
Pay Group=Apples,001,01
14:00:10,691 INFO  [STDOUT] DEBUG AddApplicationController - Disaster Startdate=Tue
Feb 15 00:00:00 CST 2011
14:00:10,691 INFO  [STDOUT] DEBUG AddApplicationController - Disaster End Date=Tue
Feb 15 00:00:00 CST 2011
14:00:10,691 INFO  [STDOUT] DEBUG AddApplicationController - Status=Initiated
14:00:10,691 INFO  [STDOUT] DEBUG AddApplicationController - Producer
name=Tomlinson,Dr.Ivanonewski R.
14:00:10,691 INFO  [STDOUT] DEBUG AddApplicationController - Unit Number=350
14:00:10,691 INFO  [STDOUT] DEBUG AddApplicationController -
Pay Group=Apples,001,01
14:00:10,691 INFO  [STDOUT] DEBUG AddApplicationController - Disaster Startdate=Tue
Feb 15 00:00:00 CST 2011
14:00:10,691 INFO  [STDOUT] DEBUG

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today.  Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
displaytag-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/displaytag-user