Not sure what is up with the generator folder in the showcase, haven't actually looked at it in a while (note to self, take a look at the new stuff from GWT 1.5) But I can answer the java.io issue. Not every java class library is importable by GWT. Remember, GWT compiles javascript from your java source, but to do so, it has to understand how to. And not every java library on the planet is understandable by GWT...java.io being one of them. And it makes sense. Again, since GWT's javascript code is running client side in a web browser, everything that it can or can't do is defined by the browser. Browsers are severely limited (by design) when it comes to things like file system access....which is what java.io does. So there are things inside java.io that even if GWT could convert it to javascript, the browser container security prevents it from happening. If you are interested in a project that has more of java.io in it, look at http://code.google.com/p/gwtx/ . It's a third party type of deal, but it has some interesting stuff in it allowing you more compatibility with java.io, but natively (and anyone who knows for sure chime in, I'm doing this off of my head) GWT supports java.io.Serializable for GWT-RPC. That's about all I know about this. If I get a chance today I'll look at the showcase and see what they are doing with generator...
Later, Shaffer On Nov 7, 11:32 pm, ship <[EMAIL PROTECTED]> wrote: > Hi, > > I could not understand that what is the use of "generator" folder in > "showcase" example in GWT 1.5.2. > Actually I want to use java's io package at client side in GWT but it > gives errors when i use io class in client folder. I read showcase > example in which io class is used in a java file which is put in > generator folder in showcase example. > > Pl help me to resolve this problem. > Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
