Menu

2 display:tables using export="true" problem

Help
Jeff
2007-10-29
2012-10-09
  • Jeff

    Jeff - 2007-10-29

    I have 2 display:table tags in a web page with export="true." Clicking on an export link for EITHER table shows data for first table. Export links work as expected when I remove the first display:table tags. Actually, it doesn't matter what value export is (true or false) for the first table, if the table exists then the 2nd tables export links shows the first tables data. Of course, the links are exactly the same. What am I doing wrong? Code follows.

    Jeff Boring

    Environment: DisplayTag v1.1.1, SiteMesh v2.3

    Link Value 1st table: http://10.0.0.196:8008/userDetails.do?hist=true&d-16544-e=3&6578706f7274=1&clientId=7
    Link Value 2nd table: http://10.0.0.196:8008/userDetails.do?hist=true&d-16544-e=3&6578706f7274=1&clientId=7

    Web Page [partial] Code:

    <display:table name="model.asses"
    pagesize="0" export="true"
    id="row" requestURI="userDetails.do"

        &gt;
        &lt;display:caption&gt;Policy Compliance Status&lt;/display:caption&gt;
        &lt;display:column property=&quot;enforcementPriority.policy.label&quot; title=&quot;Policy&quot; headerClass=&quot;thborder&quot; class=&quot;thborder&quot;  /&gt;
        &lt;display:column property=&quot;resultDisplay&quot; title=&quot;Compliant&quot;  headerClass=&quot;thborder&quot; class=&quot;thborder&quot;/&gt;
        &lt;display:column property=&quot;adminMessages&quot; title=&quot;Description&quot; headerClass=&quot;thborder&quot; class=&quot;thborder&quot; /&gt;
    

    </display:table>

    <display:table name="model.clientHist"
    pagesize="0"
    id="row"
    cellspacing="2" cellpadding="2" class="tablesetright"
    requestURI="userDetails.do" sort="list" defaultsort="1" export="true"
    >

    &lt;display:setProperty name=&quot;export.rtf&quot; value=&quot;false&quot; /&gt;
    &lt;display:setProperty name=&quot;export.pdf&quot; value=&quot;false&quot; /&gt;
    &lt;display:setProperty name=&quot;export.csv&quot; value=&quot;false&quot; /&gt;
    &lt;display:setProperty name=&quot;export.excel&quot; value=&quot;true&quot; /&gt;
    &lt;display:setProperty name=&quot;export.excel.filename&quot; value=&quot;example.xls&quot;/&gt;
    
    &lt;display:setProperty name=&quot;basic.msg.empty_list&quot; value=&quot;&quot; /&gt;
    &lt;display:caption &gt;Transaction History&lt;/display:caption&gt;
    &lt;display:column title=&quot;Date&quot; headerClass=&quot;thborder&quot; class=&quot;transactionDate&quot; sortable=&quot;true&quot;&gt;
        &lt;fmt:formatDate value=&quot;${row.transactionDate}&quot; pattern=&quot;yy-MM-dd HH:mm:ss&quot; /&gt;
    &lt;/display:column&gt;
    &lt;display:column property=&quot;transactionType&quot; title=&quot;Transaction&quot;  headerClass=&quot;thborder&quot; class=&quot;thborder&quot; sortable=&quot;true&quot;/&gt; 
    &lt;display:column property=&quot;groupLabel&quot; title=&quot;Group&quot;  headerClass=&quot;thborder&quot; class=&quot;thborder&quot;/&gt;
    &lt;display:column title=&quot;State&quot;  headerClass=&quot;thborder&quot; class=&quot;status&quot;&gt;
        &lt;dash:Status     policyId='${row.outCompliancePolicyId}' 
                        ilan='${row.ilan}' 
                        quarantined='${row.quarantined}' 
                        ip='${row.currentIpAddress}' 
                        clientStatusLink='false'
                        /&gt;
    &lt;/display:column&gt;
    &lt;display:column title=&quot;Policy Compliance&quot;  headerClass=&quot;thborder&quot; class=&quot;policyCompliance&quot;&gt;
        &lt;dash:PolicyCompliance   policyCompliance='${row.policyCompliance}' /&gt;
    &lt;/display:column&gt;
    

    </display:table>

     
    • Jeff

      Jeff - 2007-10-30

      Yes, Paul Cooper responded with the same thing, that both tables have the id=row. I changed this and it fixed the problem. I knew it something stupid :)

      THANKS YA'LL!

       
    • Harun

      Harun - 2007-10-30

      Export options are related to individual tables. Try giving unique UIDs for tables.

      Regards,
      Harun

       
    • Harun

      Harun - 2007-10-30

      Export options are related to individual tables. Try giving different UIDs for tables.

      Regards,
      Harun

       

Log in to post a comment.

MongoDB Logo MongoDB