Menu

BinaryExportView

Help
mistral
2005-01-27
2012-10-08
  • mistral

    mistral - 2005-01-27

    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.

     
    • claudiu dumitrescu

      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

       
      • claudiu dumitrescu

        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.

         

Log in to post a comment.

MongoDB Logo MongoDB