The content type is correctly set from the server, as I can see from
the firebug logs.
If I make the browser pointing to the correct address, the pdf open/
save dialog is showed and everything works fine.
But, if I make a request from within gwt, the callback mechanism seems
to override the normal behaviour of the browser.
Do you know if it is possible to make a standard HTTP request from gwt
without using callbacks?

On Oct 14, 1:48 pm, Paul Robinson <[EMAIL PROTECTED]> wrote:
> Security prohibits javascript from direct access to the filesystem.
>
> You could make the same HTTP response you get when downloading a file
> from any web server, so the browser (rather than javascript) shows the
> save pop-up. You should probably set the mime type ("Content-Type") and
> "Content-Disposition" fields in the http response header.
>
> Whether you can do this with RequestBuilder or not, I don't know.
>
> prof3ta wrote:
> > Ok, I'm creating the PDF file in the server.
> > I'm using a HTTP POST request (through the RequestBuilder object) to
> > get the file in the client.
> > The problem now is that I can just see the content of the file in the
> > callback function as a string, but I'm not able to write this string
> > into the file system, since I cannot use the standard java libraries
> > for writing files for the same reason as above.
> > I'd like to get the usual open/save file window dialog in my gwt
> > application when getting the HTTP response.
> > Any hint?
>
> > On Oct 14, 10:49 am, Paul Robinson <[EMAIL PROTECTED]> wrote:
>
> >> Yes. Do it in the server.
>
> >> prof3tawrote:
>
> >>> So, any hint on how to generate a pdf file withi gwt?
>
> >>> On Oct 14, 10:32 am, Paul Robinson <[EMAIL PROTECTED]> wrote:
>
> >>>> GWT compiles java into javascript client-side. That means you can't use
> >>>> any old java library in the client, only translatable java.
>
> >>>> prof3tawrote:
>
> >>>>> Pardon me, Dean. What do you mean with "server-side library"???
> >>>>> That's java code, there should be no distinction between server and
> >>>>> client.
> >>>>> I tried to add the sources for the package and add them to the
> >>>>> classpath, but no luck
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to