using Decorator class giving problem in display tag

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

using Decorator class giving problem in display tag

                           
               
Raaja G
Hi,

I followed the instructions and modified accordingly and got the display in the format I want for the first time. But it is giving problem when I send a mail on clicking the link. After wards even for export options the link is getting attached and whenever I click on PDF / Excel first it sending the mail and exporting. Where I am going wrong please tell me.

Below I am giving my modified display table and view source of the jsp before sending the mail and after sending the mail.




My table declaration is:

<display:table id="data" name="logisticreport"
        requestURI="/GetLogisticReport.do" pagesize="10" export="true"
        decorator="com.scrabble.project.model.LogisticReportDecorator"> 
       
        <display:column property="hddBarcode" title="Barcode"
                sortable="true" style="text-align:center;" /> 
        <display:column property="clientname" title="Client"
                sortable="true" style="text-align:center;" /> 
        <display:column property="diskreturndate" title="HDD Return date"
                sortable="true" style="text-align:center;" /> 
     
        <display:column property="cemail" title="Email" media="html"/> 
        <display:column property="email" title="Email" media="pdf"/> 
        <display:column property="email" title="Email" media="excel"/>
       
        <display:setProperty name="export.pdf" value="true" /> 
        <display:setProperty name="export.pdf.filename" value="LogisticReport.pdf" /> 
        <display:setProperty name="export.excel.filename" value="LogisticReport.xls" /> 
        <display:setProperty name="export.xml" value="false" /> 
        <display:setProperty name="export.csv" value="false" /> 
        <display:setProperty name="export.xls" value="false" /> 
</display:table> 


view source before sending mail:

               
                   
                 
                 
                 
                   
     
  Barcode  Client  Submission Date  HDD Return date  Lapsed DaysEmail
121HyderabadClient06/01/201105/31/20114raaja.g@krishct.com
122ChennaiClient06/01/201105/31/20114sureshreddy@krishct.com
123MumbaiClient06/01/201105/26/20119raaja.g@krishct.com
125MumbaiClient06/01/201105/31/20114raaja.g@krishct.com
126HyderabadClient06/01/201102/31/201193a href="../GetLogisticReport.do?email=raaja.g@krishct.com&client=HyderabadClient&ldays=93&projectid=6&drdate=02/31/2011&bcode=126">raaja.g@krishct.com /a
129ChennaiClient06/01/201105/24/201111sureshreddy@krishct.com
124ChennaiClient06/01/201105/31/20114sureshreddy@krishct.com
<div class="exportlinks">Export To:
a href="/scrabble/GetLogisticReport.do?6578706f7274=1&pname=6&projectid=6&projectid=&d-49216-e=2">Excel  /a |
a href="/scrabble/GetLogisticReport.do?6578706f7274=1&pname=6&projectid=6&projectid=&d-49216-e=5">PDF /a</div></div> 
                                </center> 
                               
 

view source after sending the mail:


           
                 
                 
                   
                 
                 
           
  Barcode  a href="/scrabble/GetLogisticReport.do?d-49216-o=2&client=HyderabadClient&d-49216-s=1&email=raaja.g%40krishct.com&bcode=126&ldays=93&drdate=02%2F31%2F2011&projectid=6">Client /a  Submission Date  HDD Return date  Lapsed DaysEmail
121HyderabadClient06/01/201105/31/20114raaja.g@krishct.com
122ChennaiClient06/01/201105/31/20114sureshreddy@krishct.com
123MumbaiClient06/01/201105/26/20119raaja.g@krishct.com
125MumbaiClient06/01/201105/31/20114raaja.g@krishct.com
126HyderabadClient06/01/201102/31/201193a href="../GetLogisticReport.do?email=raaja.g@krishct.com&client=HyderabadClient&ldays=93&projectid=6&drdate=02/31/2011&bcode=126">raaja.g@krishct.com /a
129ChennaiClient06/01/201105/24/201111sureshreddy@krishct.com
124ChennaiClient06/01/201105/31/20114sureshreddy@krishct.com
<div class="exportlinks">Export To:
a href="/scrabble/GetLogisticReport.do?client=HyderabadClient&email=raaja.g%40krishct.com&6578706f7274=1&bcode=126&ldays=93&drdate=02%2F31%2F2011&projectid=6&d-49216-e=2">Excel /a|
a href="/scrabble/GetLogisticReport.do?client=HyderabadClient&email=raaja.g%40krishct.com&6578706f7274=1&bcode=126&ldays=93&drdate=02%2F31%2F2011&projectid=6&d-49216-e=5">PDF a</div></div> 

                                </center> 
                                                                             

The table export link is getting modified. I want whenever I click on export options only the data should get export not to send the mail.

Please help me in solving this.

--raaja.g