For exporting PDF document i need to add title (which depends on my page context) and all criterias used to get the table.
Is there a way to do this ?.
I created a class which implements BinaryExportView but i didn't see where i can get the page context.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I did manage to add a title, even if is kind of ugly for me.
So in order to obtain the page context I had to use an empty table decorator class for my displaytag:table.
In my pdf export class I have something like:
String reportTitle = (String)model.getTableDecorator()
.getPageContext()
.getAttribute("tableTitle");
This did the trick for now, but I'm waiting for other suggestions.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
For exporting PDF document i need to add title (which depends on my page context) and all criterias used to get the table.
Is there a way to do this ?.
I created a class which implements BinaryExportView but i didn't see where i can get the page context.
Hi
Did you managed to add a title to an pdf export table? Please let me know how as I'm facing the same problem now.
Thank you
I did manage to add a title, even if is kind of ugly for me.
So in order to obtain the page context I had to use an empty table decorator class for my displaytag:table.
In my pdf export class I have something like:
String reportTitle = (String)model.getTableDecorator()
.getPageContext()
.getAttribute("tableTitle");
This did the trick for now, but I'm waiting for other suggestions.