2 Replies Latest reply on Aug 16, 2007 4:03 PM by grettke_spdr

    How to render pdfs (using iText) in a new window?

    grettke_spdr

      Hi folks,

      We are using the wonderful Seam iText integration to prepare simple reports for the users. This actually isn't a question about iText, since that works great.

      Right now they are redirected to a web page that generates the reports and this works fine, but there is no way to return to the previous page (in this case the search page) without clicking the URL for that page again (no back button of course!). The problem with this is that the selections on the search page actually get lost (not sure why, submitting the form ala commandButton).

      As such, I would like a solution to this, and I am thinking that one approach would be to redirect the user to the pdf page in a new window?

      What are some other approaches? What would you recommend?

        • 1. Re: How to render pdfs (using iText) in a new window?

          I think this is very browser-specific behavior. The back button works as expected for me in Safari. What

          • 2. Re: How to render pdfs (using iText) in a new window?
            grettke_spdr

             

            "norman.richards@jboss.com" wrote:
            I think this is very browser-specific behavior. The back button works as expected for me in Safari. What


            Hi Norman,

            We are using IE 7. After going to the page:

            http://localhost:8080/rms/seam-doc.seam?docId=1&cid=8

            Acrobat reader pops up with the pdf. Hitting the back button produces an error the first time (like you said perhaps browser specific) and now I notice the second time that it goes back to the search page (ScopeType.SESSION for the component) just fine.

            Perhaps this would be just fine having the users click back twice.

            Other than that, would you recommend any other approaches?

            I suppose this is a general web development thing, but I only care about it for Seam-iText ;).