Re: GWT + iText + Eclipse Problem

2008-10-14 Thread prof3ta
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

Re: GWT + iText + Eclipse Problem

2008-10-14 Thread Paul Robinson
Search the group for "external link opening" or similar. You should find suggestions like: HTML *link* = new HTML("http://www.google.com\ ">Take me to Google"); prof3ta wrote: > The content type is correctly set from the server, as I can see from > the firebug logs. > If

Re: GWT + iText + Eclipse Problem

2008-10-14 Thread Paul Robinson
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-Disposi

Re: GWT + iText + Eclipse Problem

2008-10-14 Thread prof3ta
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 sys

Re: GWT + iText + Eclipse Problem

2008-10-14 Thread Paul Robinson
Yes. Do it in the server. prof3ta wrote: > 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 translatab

Re: GWT + iText + Eclipse Problem

2008-10-14 Thread prof3ta
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. > > prof3ta wrote: > > Pardon me, Dean. What

Re: GWT + iText + Eclipse Problem

2008-10-14 Thread Paul Robinson
GWT compiles java into javascript client-side. That means you can't use any old java library in the client, only translatable java. prof3ta wrote: > 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

Re: GWT + iText + Eclipse Problem

2008-10-14 Thread prof3ta
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

Re: GWT + iText + Eclipse Problem

2008-10-13 Thread Dean S. Jones
This doesn't matter really, the classpath can be correct, the error is that the GWT compiler can't find the SOURCE for the iText library, which makes sense: it's not a Client Side Library. On Oct 13, 4:58 pm, "Jeremiah Elliott" <[EMAIL PROTECTED]> wrote: > Did you edit the classpath in the App-co

Re: GWT + iText + Eclipse Problem

2008-10-13 Thread Jeremiah Elliott
Did you edit the classpath in the App-compile script? or just the one in eclipse? On Mon, Oct 13, 2008 at 3:53 PM, Dean S. Jones <[EMAIL PROTECTED]> wrote: > > iText is a SERVER SIDE library for creating PDF's... you are trying to > use it on the client side. > > On Oct 13, 2:25 pm, prof3ta <[EM

Re: GWT + iText + Eclipse Problem

2008-10-13 Thread Dean S. Jones
iText is a SERVER SIDE library for creating PDF's... you are trying to use it on the client side. On Oct 13, 2:25 pm, prof3ta <[EMAIL PROTECTED]> wrote: > Hello everyone, > I'm developing a web application using the gwt and I need to import > some external libraries in the project. > In the speci

GWT + iText + Eclipse Problem

2008-10-13 Thread prof3ta
Hello everyone, I'm developing a web application using the gwt and I need to import some external libraries in the project. In the specific, I'm trying to import the iText libraries for dynamically generating pdf from java. I added the libraries as an external jar file in eclipse, but I obtain the