when i give media="excel pdf html" i can see footer in my jsp.
but not in the pdf and excel files generated.
is there anything i am missing ... i have been trying to figure this out the whole day today.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Displaytag can do this for you, with the "totals" function. Just add this to your display:table .
There is a small bug, that makes total incomplete sometimes, you can workaround by setting a defaultsort on your table.
I tried this and this works i get the total but it is not getting exported.
i didnt understand the workaround of setting a defaultsort on the table.
any idea how i can achieve export feature.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am new to display tags. Found it amazing.
So much of development time reduced.Thanks to
all its developers.
I have a small problem now
I have a table of which last row should have summation of all the column.
this last row shouldnt get sorted.
example would be
name apr may jun total
a 100 100 100 100
b 100 100 100 100
total 200 200 200 200
now the last row shouldnt get sorted when i click on column header.
when i give media="excel pdf html" i can see footer in my jsp.
but not in the pdf and excel files generated.
is there anything i am missing ... i have been trying to figure this out the whole day today.
Displaytag can do this for you, with the "totals" function. Just add this to your display:table .
There is a small bug, that makes total incomplete sometimes, you can workaround by setting a defaultsort on your table.
<display:footer >
<div class="table-footer" ><b>Total : <c:out value="${totals.column6}" /></b></td>
</display:footer>
Hi Akram,
Thanks for the reply.
I tried this and this works i get the total but it is not getting exported.
i didnt understand the workaround of setting a defaultsort on the table.
any idea how i can achieve export feature.
try this:
<display:footer media="excel pdf rtf">Sample footer</display:footer>
seen here:
http://displaytag.homeip.net/displaytag-examples-1.1/example-new-export.jsp.source
Thanks Akram,
I used the footer but its still not exporting it to PDF and Excel files.