How to render a HTTPResponse getText()
I'm using GWT 1.7 to implement an EAI (External Authentication Interface) application to handle WebSeal authentication. To make a very long story short, WebSeal responds to my RequestCallback, from my RequestBuilder, with a full html file in the Response variable. What I was expecting is that the browser would contain this HTML page and not receive a response in the RequestCallback onResponseReceived method. My goal is to show this web page to the user. How can I render this html page that I receive in the Response variable? I'm not sure I want to use a IFrame because it's not supported on all browsers. Is there an other way? Thanks, Erick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: question about Constants and Messages
Hi Guys, My Instantiation plugin was getting really slow because I was using the default static final CONSTANT ... in each client classe for my I18N translation strings I have implemented a simgleton and my Instantiations plugin is a lot faster. I guess Singleton does matter. public class Locale { private static final AppConstants CONSTANTS = (AppConstants) GWT.create(AppConstants.class); static Locale locale; public static AppConstants getCONSTANTS() { if (locale == null){ locale = new Locale(); } return CONSTANTS; } private Locale(){ } } - Erick On Sep 24, 6:19 pm, "Xavier Mathews" <[EMAIL PROTECTED]> wrote: > Yeah i like it better also! > > Xavier A. Mathews > Student/Developer/Web-Master > Client Based Tech Support > Hazel Crest Illinois > [EMAIL PROTECTED] > "Fear of a name, only increases fear of the thing itself." > > On Wed, Sep 24, 2008 at 5:14 PM, Alex Rice <[EMAIL PROTECTED]> wrote: > > > Thanks, I like this technique. > > > On Sep 24, 3:46 pm, Reinier Zwitserloot <[EMAIL PROTECTED]> wrote: > > > You can create the singleton inside the interface. e.g: > > > > public class MyImages implemens AbstractImageStoreThingie { > > > AbstractImagePrototype closeButton(); > > > ... more AIPs. > > > > public static MyImages STORE = > > > (MyImages)GWT.create(MyImages.class); > > > > } > > > > Then you can just go: > > > > MyImages.STORE.closeButton(); > > > > Looks a lot better than endless GWT.create() calls, regardless of > > > whether GWT optimizes it or not. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: GWT Maps API fails on host mode
Hi, I have found a workaround. It seems like Google team tested the 64bit Ubuntu Hardy and they say it works. I just don't know how this can be. Anyway, I have installed Sun VirtualBox with a Ubuntu Hardy 32bit and with the *SAME* setup Eclipse34, gwtmaps 290, JDK1.6, GWT 1.5 and HelloMaps, MAGIC!! Averything works like a charm. So I conclude by writing that one of those components is just not working properly under Ubuntu 8.04 64bit. I would say it is the hosted mode component since HelloMaps works fine when deployed on tomcat. This is a bug! - Erick On Sep 18, 9:07 am, Niko <[EMAIL PROTECTED]> wrote: > Hi > > Same problem here : identical stack trace and warning messages. > > I was working on several little testing projects in gwt/gwt-ext/ > gwtmaps a month ago. > Now I'm unable to launch any of them using gwtmaps in the host mode. > The platform environment (OS/eclipse/jars) didn't change - same PC, > none used it. > > Thus, if I compile and deploy these projects under my Tomcat, all is > working fine. > > One hour ago, I tried to launch the HelloMaps from the 290 release, > with the inner launch-scripts. > Same results : the shell command aborts with Einstein's trace, the > compile&deploy test is OK > > Any kind of idea would be appreciated :o) > > ps : I've check that my IE network/proxy settings were still good > > On 18 sep, 02:16, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > > > I didn't use eclipse at all. I ran "HelloMaps-shell" from the command line. > > > On Wed, Sep 17, 2008 at 5:23 PM, Einstein0970 <[EMAIL PROTECTED]> wrote: > > > > What version of eclipse did you use? > > > > On Sep 17, 2:20 pm, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > > > > I just loaded gwt 1.5.2 and gwt-mapsmilestone r290 onto a machine whose > > > > /etc/issue reports Ubuntu 8.04.1 (64 bit) > > > > > JVM is: /usr/lib/jvm/ia32-java-6-sun/jre/bin/java > > > > > I ran the stock HelloMaps demo without a problem. > > > > > Again, you might try the 'wireshark' tool to make sure that requests > > > > from > > > > hosted mode are actually making it off the machine. > > > > > On Wed, Sep 17, 2008 at 2:03 PM, Einstein0970 <[EMAIL PROTECTED]> wrote: > > > > > > Yeah it gets tohttp://maps.google.com/maps?gwt=1&file=api&v=2.x > > > > > from my machine using firefox 3. No proxies in my way either. > > > > > > On Sep 17, 1:58 pm, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > > > > > > Could it be that you have some sort of proxy setup to get to the > > > > > Internet? > > > > > > If so, the hosted mode browser probably isn't aware of it. > > > > > > > John T. on the GWT team suggested you try 'wireshark' to see if the > > > > > requests > > > > > > to fetch the GoogleMapsAPI were getting off of the machine. > > > > > > > -Eric. > > > > > > > On Wed, Sep 17, 2008 at 1:24 PM, Eric Ayers <[EMAIL PROTECTED]> > > > wrote: > > > > > > > I'm wondering if it is some sort of network issue - theMapsAPI > > > has to > > > > > > > load from a server at google. > > > > > > > > Also, even though you shouldn't need a key, you could go to > > > > > > >http://code.google.com/apis/mapsandgetonefor localhost. IIRC, > > > some > > > > > > > parts of the API (Geocoding maybe?) do need a key, even if its > > > > > localhost. > > > > > > > > On Wed, Sep 17, 2008 at 1:17 PM, Einstein0970 <[EMAIL PROTECTED]> > > > > > wrote: > > > > > > > >> Hi Eric, > > > > > > > >> I have installed the latest and greatest JVM32bit and stillfails > > > on > > > > > > >> the same error. > > > > > > >> Any other ideas? > > > > > > > >> - Erick > > > > > > > >> On Sep 15, 8:46 pm, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > > > > > > >> > We have had reports of GWT being used sucessfully on Ubuntu 8 > > > and 9. > > > > > > >> One > > > > > > >> > more thing - I think you must be using the 32 bit JVM or you > > > > > probably > > > > > > >> > wouldn't even see hosted mode, but just to be certain, are
Re: GWT Maps API fails on host mode
What version of eclipse did you use? On Sep 17, 2:20 pm, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > I just loaded gwt 1.5.2 and gwt-maps milestone r290 onto a machine whose > /etc/issue reports Ubuntu 8.04.1 (64 bit) > > JVM is: /usr/lib/jvm/ia32-java-6-sun/jre/bin/java > > I ran the stock HelloMaps demo without a problem. > > Again, you might try the 'wireshark' tool to make sure that requests from > hosted mode are actually making it off the machine. > > On Wed, Sep 17, 2008 at 2:03 PM, Einstein0970 <[EMAIL PROTECTED]> wrote: > > > Yeah it gets tohttp://maps.google.com/maps?gwt=1&file=api&v=2.x > > from my machine using firefox 3. No proxies in my way either. > > > On Sep 17, 1:58 pm, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > > > Could it be that you have some sort of proxy setup to get to the > > Internet? > > > If so, the hosted mode browser probably isn't aware of it. > > > > John T. on the GWT team suggested you try 'wireshark' to see if the > > requests > > > to fetch the Google Maps API were getting off of the machine. > > > > -Eric. > > > > On Wed, Sep 17, 2008 at 1:24 PM, Eric Ayers <[EMAIL PROTECTED]> wrote: > > > > I'm wondering if it is some sort of network issue - the Maps API has to > > > > load from a server at google. > > > > > Also, even though you shouldn't need a key, you could go to > > > >http://code.google.com/apis/mapsandget one for localhost. IIRC, some > > > > parts of the API (Geocoding maybe?) do need a key, even if its > > localhost. > > > > > On Wed, Sep 17, 2008 at 1:17 PM, Einstein0970 <[EMAIL PROTECTED]> > > wrote: > > > > >> Hi Eric, > > > > >> I have installed the latest and greatest JVM32bit and still fails on > > > >> the same error. > > > >> Any other ideas? > > > > >> - Erick > > > > >> On Sep 15, 8:46 pm, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > > > >> > We have had reports of GWT being used sucessfully on Ubuntu 8 and 9. > > > >> One > > > >> > more thing - I think you must be using the 32 bit JVM or you > > probably > > > >> > wouldn't even see hosted mode, but just to be certain, are you using > > a > > > >> 32 > > > >> > bit JVM? We've had reports of a bad version of the 1.6 JVM causing > > > >> > problems in one distro. Can you try upgrading or changing your JVM > > > >> > version? Any 32 bit 1.5.x or 1.6.x should work. > > > > >> > All these things aside, it still looks to me like the Maps API > > script is > > > >> not > > > >> > loading. I can't tell you why it would all of a sudden start to > > fail. > > > > >> > On Mon, Sep 15, 2008 at 8:35 PM, Eric Ayers <[EMAIL PROTECTED]> > > wrote: > > > >> > > What happens when you try to compile and run in web mode? > > > > >> > > On Mon, Sep 15, 2008 at 7:31 PM, Einstein0970 <[EMAIL PROTECTED]> > > > >> wrote: > > > > >> > >> Ran the HelloMaps demo and works great when deployed on my > > localhost > > > >> > >> tomcat but same error when ran from the Eclipse IDE host-mode. > > BTW, > > > >> > >> the same app ran well in GWT1.4, Ubuntu 7 and Eclipse 3.3... > > > >> > >> Can you guys reproduce my errors using HelloMaps in Ubuntu 8.04? > > > > >> > >> On 15 sep, 16:33, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > > > >> > >> > When you ran the tutorial, did the application in the tutorial > > work > > > >> for > > > >> > >> you > > > >> > >> > (the world's largest ball of twine)? > > > > >> > >> > Can you show a small segment of code that reproduces the > > problem? > > > > >> > >> > On Mon, Sep 15, 2008 at 4:26 PM, Einstein0970 < > > [EMAIL PROTECTED]> > > > >> wrote: > > > > >> > >> > > I use: gwt-maps.jar (0.0.290) from ( > > > >>http://code.google.com/p/gwt- > > > >> > >> > > google-apis/wiki/Downloads< > > > >> > >>http://code.google.com/p/gwt-google-apis/wiki/Downloads> > > > >> >
Re: GWT Maps API fails on host mode
You are right, the hosted mode does not get out of my machine. I have no clue why this is happening. I will continue to investigate. If you have any ideas, let me know. On Sep 17, 2:20 pm, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > I just loaded gwt 1.5.2 and gwt-maps milestone r290 onto a machine whose > /etc/issue reports Ubuntu 8.04.1 (64 bit) > > JVM is: /usr/lib/jvm/ia32-java-6-sun/jre/bin/java > > I ran the stock HelloMaps demo without a problem. > > Again, you might try the 'wireshark' tool to make sure that requests from > hosted mode are actually making it off the machine. > > On Wed, Sep 17, 2008 at 2:03 PM, Einstein0970 <[EMAIL PROTECTED]> wrote: > > > Yeah it gets tohttp://maps.google.com/maps?gwt=1&file=api&v=2.x > > from my machine using firefox 3. No proxies in my way either. > > > On Sep 17, 1:58 pm, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > > > Could it be that you have some sort of proxy setup to get to the > > Internet? > > > If so, the hosted mode browser probably isn't aware of it. > > > > John T. on the GWT team suggested you try 'wireshark' to see if the > > requests > > > to fetch the Google Maps API were getting off of the machine. > > > > -Eric. > > > > On Wed, Sep 17, 2008 at 1:24 PM, Eric Ayers <[EMAIL PROTECTED]> wrote: > > > > I'm wondering if it is some sort of network issue - the Maps API has to > > > > load from a server at google. > > > > > Also, even though you shouldn't need a key, you could go to > > > >http://code.google.com/apis/mapsandget one for localhost. IIRC, some > > > > parts of the API (Geocoding maybe?) do need a key, even if its > > localhost. > > > > > On Wed, Sep 17, 2008 at 1:17 PM, Einstein0970 <[EMAIL PROTECTED]> > > wrote: > > > > >> Hi Eric, > > > > >> I have installed the latest and greatest JVM32bit and still fails on > > > >> the same error. > > > >> Any other ideas? > > > > >> - Erick > > > > >> On Sep 15, 8:46 pm, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > > > >> > We have had reports of GWT being used sucessfully on Ubuntu 8 and 9. > > > >> One > > > >> > more thing - I think you must be using the 32 bit JVM or you > > probably > > > >> > wouldn't even see hosted mode, but just to be certain, are you using > > a > > > >> 32 > > > >> > bit JVM? We've had reports of a bad version of the 1.6 JVM causing > > > >> > problems in one distro. Can you try upgrading or changing your JVM > > > >> > version? Any 32 bit 1.5.x or 1.6.x should work. > > > > >> > All these things aside, it still looks to me like the Maps API > > script is > > > >> not > > > >> > loading. I can't tell you why it would all of a sudden start to > > fail. > > > > >> > On Mon, Sep 15, 2008 at 8:35 PM, Eric Ayers <[EMAIL PROTECTED]> > > wrote: > > > >> > > What happens when you try to compile and run in web mode? > > > > >> > > On Mon, Sep 15, 2008 at 7:31 PM, Einstein0970 <[EMAIL PROTECTED]> > > > >> wrote: > > > > >> > >> Ran the HelloMaps demo and works great when deployed on my > > localhost > > > >> > >> tomcat but same error when ran from the Eclipse IDE host-mode. > > BTW, > > > >> > >> the same app ran well in GWT1.4, Ubuntu 7 and Eclipse 3.3... > > > >> > >> Can you guys reproduce my errors using HelloMaps in Ubuntu 8.04? > > > > >> > >> On 15 sep, 16:33, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > > > >> > >> > When you ran the tutorial, did the application in the tutorial > > work > > > >> for > > > >> > >> you > > > >> > >> > (the world's largest ball of twine)? > > > > >> > >> > Can you show a small segment of code that reproduces the > > problem? > > > > >> > >> > On Mon, Sep 15, 2008 at 4:26 PM, Einstein0970 < > > [EMAIL PROTECTED]> > > > >> wrote: > > > > >> > >> > > I use: gwt-maps.jar (0.0.290) from ( > > > >>http://code.google.com/p/gwt- > > > >> > >> > > google-apis/wiki/Downloads< &g
Re: GWT Maps API fails on host mode
Yeah it gets to http://maps.google.com/maps?gwt=1&file=api&v=2.x from my machine using firefox 3. No proxies in my way either. On Sep 17, 1:58 pm, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > Could it be that you have some sort of proxy setup to get to the Internet? > If so, the hosted mode browser probably isn't aware of it. > > John T. on the GWT team suggested you try 'wireshark' to see if the requests > to fetch the Google Maps API were getting off of the machine. > > -Eric. > > On Wed, Sep 17, 2008 at 1:24 PM, Eric Ayers <[EMAIL PROTECTED]> wrote: > > I'm wondering if it is some sort of network issue - the Maps API has to > > load from a server at google. > > > Also, even though you shouldn't need a key, you could go to > >http://code.google.com/apis/mapsand get one for localhost. IIRC, some > > parts of the API (Geocoding maybe?) do need a key, even if its localhost. > > > On Wed, Sep 17, 2008 at 1:17 PM, Einstein0970 <[EMAIL PROTECTED]> wrote: > > >> Hi Eric, > > >> I have installed the latest and greatest JVM32bit and still fails on > >> the same error. > >> Any other ideas? > > >> - Erick > > >> On Sep 15, 8:46 pm, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > >> > We have had reports of GWT being used sucessfully on Ubuntu 8 and 9. > >> One > >> > more thing - I think you must be using the 32 bit JVM or you probably > >> > wouldn't even see hosted mode, but just to be certain, are you using a > >> 32 > >> > bit JVM? We've had reports of a bad version of the 1.6 JVM causing > >> > problems in one distro. Can you try upgrading or changing your JVM > >> > version? Any 32 bit 1.5.x or 1.6.x should work. > > >> > All these things aside, it still looks to me like the Maps API script is > >> not > >> > loading. I can't tell you why it would all of a sudden start to fail. > > >> > On Mon, Sep 15, 2008 at 8:35 PM, Eric Ayers <[EMAIL PROTECTED]> wrote: > >> > > What happens when you try to compile and run in web mode? > > >> > > On Mon, Sep 15, 2008 at 7:31 PM, Einstein0970 <[EMAIL PROTECTED]> > >> wrote: > > >> > >> Ran the HelloMaps demo and works great when deployed on my localhost > >> > >> tomcat but same error when ran from the Eclipse IDE host-mode. BTW, > >> > >> the same app ran well in GWT1.4, Ubuntu 7 and Eclipse 3.3... > >> > >> Can you guys reproduce my errors using HelloMaps in Ubuntu 8.04? > > >> > >> On 15 sep, 16:33, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > >> > >> > When you ran the tutorial, did the application in the tutorial work > >> for > >> > >> you > >> > >> > (the world's largest ball of twine)? > > >> > >> > Can you show a small segment of code that reproduces the problem? > > >> > >> > On Mon, Sep 15, 2008 at 4:26 PM, Einstein0970 <[EMAIL PROTECTED]> > >> wrote: > > >> > >> > > I use: gwt-maps.jar (0.0.290) from ( > >>http://code.google.com/p/gwt- > >> > >> > > google-apis/wiki/Downloads< > >> > >>http://code.google.com/p/gwt-google-apis/wiki/Downloads> > >> > >> > > ) > > >> > >> > > On Sep 15, 3:50 pm, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > >> > >> > > > When you say you are using the latest gwt-maps.jar file, can > >> you > >> > >> tell me > >> > >> > > > what version you downloaded? > > >> > >> > > > On Mon, Sep 15, 2008 at 3:46 PM, Einstein0970 < > >> [EMAIL PROTECTED]> > >> > >> wrote: > > >> > >> > > > > Still fails: > > >> > >> > > > > Here's my gwt.xml file: (followed the tut: > > >>http://code.google.com/p/gwt-google-apis/wiki/MapsGettingStarted) > > >> > >> > > > > > > >> > >> > > > > > >> > >> > > > > > >> > >> > > > > > >> > >> > > > > http://maps.google.com/maps</a>? > >> > >> > > > > gwt=1&file=api&v=2.x< > >>
Re: GWT Maps API fails on host mode
Hi Eric, I have installed the latest and greatest JVM32bit and still fails on the same error. Any other ideas? - Erick On Sep 15, 8:46 pm, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > We have had reports of GWT being used sucessfully on Ubuntu 8 and 9. One > more thing - I think you must be using the 32 bit JVM or you probably > wouldn't even see hosted mode, but just to be certain, are you using a 32 > bit JVM? We've had reports of a bad version of the 1.6 JVM causing > problems in one distro. Can you try upgrading or changing your JVM > version? Any 32 bit 1.5.x or 1.6.x should work. > > All these things aside, it still looks to me like the Maps API script is not > loading. I can't tell you why it would all of a sudden start to fail. > > > > On Mon, Sep 15, 2008 at 8:35 PM, Eric Ayers <[EMAIL PROTECTED]> wrote: > > What happens when you try to compile and run in web mode? > > > On Mon, Sep 15, 2008 at 7:31 PM, Einstein0970 <[EMAIL PROTECTED]> wrote: > > >> Ran the HelloMaps demo and works great when deployed on my localhost > >> tomcat but same error when ran from the Eclipse IDE host-mode. BTW, > >> the same app ran well in GWT1.4, Ubuntu 7 and Eclipse 3.3... > >> Can you guys reproduce my errors using HelloMaps in Ubuntu 8.04? > > >> On 15 sep, 16:33, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > >> > When you ran the tutorial, did the application in the tutorial work for > >> you > >> > (the world's largest ball of twine)? > > >> > Can you show a small segment of code that reproduces the problem? > > >> > On Mon, Sep 15, 2008 at 4:26 PM, Einstein0970 <[EMAIL PROTECTED]> wrote: > > >> > > I use: gwt-maps.jar (0.0.290) from (http://code.google.com/p/gwt- > >> > > google-apis/wiki/Downloads< > >>http://code.google.com/p/gwt-google-apis/wiki/Downloads> > >> > > ) > > >> > > On Sep 15, 3:50 pm, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > >> > > > When you say you are using the latest gwt-maps.jar file, can you > >> tell me > >> > > > what version you downloaded? > > >> > > > On Mon, Sep 15, 2008 at 3:46 PM, Einstein0970 <[EMAIL PROTECTED]> > >> wrote: > > >> > > > > Still fails: > > >> > > > > Here's my gwt.xml file: (followed the tut: > >> > > > >http://code.google.com/p/gwt-google-apis/wiki/MapsGettingStarted) > > >> > > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > http://maps.google.com/maps</a>? > >> > > > > gwt=1&file=api&v=2.x< > >> > ><a rel="nofollow" href="http://maps.google.com/maps?gwt=1&file=api&v=2.x">http://maps.google.com/maps?gwt=1&file=api&v=2.x</a>>" > >> > > > > /> > >> > > > > <entry-point class="com.mobigolf.gwt.client.MobiGolf"/> > > >> > > > > </module> > > >> > > > > On Sep 15, 1:44 pm, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > >> > > > > > Try loading the Maps API before your GWT script. Or move the > >> loading > >> > > of > >> > > > > the > >> > > > > > Maps script into your .gwt.xml file. There is an example of the > >> > > latter > >> > > > > in > >> > > > > > the online documentation at: > >> > ><a rel="nofollow" href="http://code.google.com/p/gwt-google-apis/">http://code.google.com/p/gwt-google-apis/</a> > > >> > > > > > On Mon, Sep 15, 2008 at 12:55 PM, Einstein0970 < > >> [EMAIL PROTECTED]> > >> > > wrote: > > >> > > > > > > Hi, > > >> > > > > > > I have tried all possibilities: > > >> > > > > > > 1- <scrip in my html file > >> > > > > > > 2- <cript in my web.xml file > > >> > > > > > > Still receive same error. > > >> > > > > > > Here are my files: > >> > > > > > > <html> > >> > > > > > > <head> > > >> > > > > > > <!-- > >> --&g
Re: GWT Maps API fails on host mode
Yes I am using a 32bit JVM. I will try to install an other 32bit jvmbut this bug's a though one. I have installed a vista vmware image and installed the same setup and it works perfectly. This must have something to do with the jvm ... but it still run on tomcat. I will let you know what happend with the new jvm. On 15 sep, 20:46, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > We have had reports of GWT being used sucessfully on Ubuntu 8 and 9. One > more thing - I think you must be using the 32 bit JVM or you probably > wouldn't even see hosted mode, but just to be certain, are you using a 32 > bit JVM? We've had reports of a bad version of the 1.6 JVM causing > problems in one distro. Can you try upgrading or changing your JVM > version? Any 32 bit 1.5.x or 1.6.x should work. > > All these things aside, it still looks to me like the Maps API script is not > loading. I can't tell you why it would all of a sudden start to fail. > > > > On Mon, Sep 15, 2008 at 8:35 PM, Eric Ayers <[EMAIL PROTECTED]> wrote: > > What happens when you try to compile and run in web mode? > > > On Mon, Sep 15, 2008 at 7:31 PM, Einstein0970 <[EMAIL PROTECTED]> wrote: > > >> Ran the HelloMaps demo and works great when deployed on my localhost > >> tomcat but same error when ran from the Eclipse IDE host-mode. BTW, > >> the same app ran well in GWT1.4, Ubuntu 7 and Eclipse 3.3... > >> Can you guys reproduce my errors using HelloMaps in Ubuntu 8.04? > > >> On 15 sep, 16:33, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > >> > When you ran the tutorial, did the application in the tutorial work for > >> you > >> > (the world's largest ball of twine)? > > >> > Can you show a small segment of code that reproduces the problem? > > >> > On Mon, Sep 15, 2008 at 4:26 PM, Einstein0970 <[EMAIL PROTECTED]> wrote: > > >> > > I use: gwt-maps.jar (0.0.290) from (http://code.google.com/p/gwt- > >> > > google-apis/wiki/Downloads< > >>http://code.google.com/p/gwt-google-apis/wiki/Downloads> > >> > > ) > > >> > > On Sep 15, 3:50 pm, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > >> > > > When you say you are using the latest gwt-maps.jar file, can you > >> tell me > >> > > > what version you downloaded? > > >> > > > On Mon, Sep 15, 2008 at 3:46 PM, Einstein0970 <[EMAIL PROTECTED]> > >> wrote: > > >> > > > > Still fails: > > >> > > > > Here's my gwt.xml file: (followed the tut: > >> > > > >http://code.google.com/p/gwt-google-apis/wiki/MapsGettingStarted) > > >> > > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > http://maps.google.com/maps</a>? > >> > > > > gwt=1&file=api&v=2.x< > >> > ><a rel="nofollow" href="http://maps.google.com/maps?gwt=1&file=api&v=2.x">http://maps.google.com/maps?gwt=1&file=api&v=2.x</a>>" > >> > > > > /> > >> > > > > <entry-point class="com.mobigolf.gwt.client.MobiGolf"/> > > >> > > > > </module> > > >> > > > > On Sep 15, 1:44 pm, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > >> > > > > > Try loading the Maps API before your GWT script. Or move the > >> loading > >> > > of > >> > > > > the > >> > > > > > Maps script into your .gwt.xml file. There is an example of the > >> > > latter > >> > > > > in > >> > > > > > the online documentation at: > >> > ><a rel="nofollow" href="http://code.google.com/p/gwt-google-apis/">http://code.google.com/p/gwt-google-apis/</a> > > >> > > > > > On Mon, Sep 15, 2008 at 12:55 PM, Einstein0970 < > >> [EMAIL PROTECTED]> > >> > > wrote: > > >> > > > > > > Hi, > > >> > > > > > > I have tried all possibilities: > > >> > > > > > > 1- <scrip in my html file > >> > > > > > > 2- <cript in my web.xml file > > >> > > > > > > Still receive same error. > > >> > > &
Re: GWT Maps API fails on host mode
Ran the HelloMaps demo and works great when deployed on my localhost tomcat but same error when ran from the Eclipse IDE host-mode. BTW, the same app ran well in GWT1.4, Ubuntu 7 and Eclipse 3.3... Can you guys reproduce my errors using HelloMaps in Ubuntu 8.04? On 15 sep, 16:33, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > When you ran the tutorial, did the application in the tutorial work for you > (the world's largest ball of twine)? > > Can you show a small segment of code that reproduces the problem? > > > > On Mon, Sep 15, 2008 at 4:26 PM, Einstein0970 <[EMAIL PROTECTED]> wrote: > > > I use: gwt-maps.jar (0.0.290) from (http://code.google.com/p/gwt- > > google-apis/wiki/Downloads<http://code.google.com/p/gwt-google-apis/wiki/Downloads> > > ) > > > On Sep 15, 3:50 pm, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > > > When you say you are using the latest gwt-maps.jar file, can you tell me > > > what version you downloaded? > > > > On Mon, Sep 15, 2008 at 3:46 PM, Einstein0970 <[EMAIL PROTECTED]> wrote: > > > > > Still fails: > > > > > Here's my gwt.xml file: (followed the tut: > > > >http://code.google.com/p/gwt-google-apis/wiki/MapsGettingStarted) > > > > > > > > > > > > > > > > > > > > > > http://maps.google.com/maps</a>? > > > > gwt=1&file=api&v=2.x< > ><a rel="nofollow" href="http://maps.google.com/maps?gwt=1&file=api&v=2.x">http://maps.google.com/maps?gwt=1&file=api&v=2.x</a>>" > > > > /> > > > > <entry-point class="com.mobigolf.gwt.client.MobiGolf"/> > > > > > </module> > > > > > On Sep 15, 1:44 pm, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > > > > > Try loading the Maps API before your GWT script. Or move the loading > > of > > > > the > > > > > Maps script into your .gwt.xml file. There is an example of the > > latter > > > > in > > > > > the online documentation at: > ><a rel="nofollow" href="http://code.google.com/p/gwt-google-apis/">http://code.google.com/p/gwt-google-apis/</a> > > > > > > On Mon, Sep 15, 2008 at 12:55 PM, Einstein0970 <[EMAIL PROTECTED]> > > wrote: > > > > > > > Hi, > > > > > > > I have tried all possibilities: > > > > > > > 1- <scrip in my html file > > > > > > 2- <cript in my web.xml file > > > > > > > Still receive same error. > > > > > > > Here are my files: > > > > > > <html> > > > > > > <head> > > > > > > > <!-- --> > > > > > > <!-- Any title is fine --> > > > > > > <!-- --> > > > > > > <title>Wrapper HTML for MobiGolf</title> > > > > > > > <!-- --> > > > > > > <!-- The module reference below is the link --> > > > > > > <!-- between html and your Web Toolkit module --> > > > > > > <!-- --> > > > > > > <meta name='gwt:module' > > > > > > content='com.mobigolf.gwt.MobiGolf'/> > > > > > > > <!-- --> > > > > > > <!-- Link CSS file --> > > > > > > <!-- --> > > > > > > <link type="text/css" rel='stylesheet' > > > > href='MobiGolf.css'/> > > > > > > > </head> > > > > > > > <!-- --> > > > > > > <!-- The body can have arbitrary html, or --> > > > > > > <!-- we leave the body empty because we want --> > > > > > > <!-- to create a completely dynamic ui --> > > > > > > <!-- --> > > > > > > <body> > > > > > > > <!-- --> > > > > > > <!-- This script is required bootstrap stuff. --> > > > > > > <!-- You can put it in the HEAD, but startup --> > > > > > > <!-- is slightly faster if you include it here. --> > > > > > > <!-- --> > > > > > > <script language="javascript" > > > > > > src="com.mobigolf.gwt.MobiGolf.nocache.js"> > > > > > > > > > > > > > > > > > > style="width:0;height:0;border:0"> > > > > > iframe> > > > > > > > > > > > > >
Re: GWT Maps API fails on host mode
I use: gwt-maps.jar (0.0.290) from (http://code.google.com/p/gwt- google-apis/wiki/Downloads) On Sep 15, 3:50 pm, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > When you say you are using the latest gwt-maps.jar file, can you tell me > what version you downloaded? > > > > On Mon, Sep 15, 2008 at 3:46 PM, Einstein0970 <[EMAIL PROTECTED]> wrote: > > > Still fails: > > > Here's my gwt.xml file: (followed the tut: > >http://code.google.com/p/gwt-google-apis/wiki/MapsGettingStarted) > > > > > > > > > > > > http://maps.google.com/maps</a>? > > gwt=1&file=api&v=2.x<<a rel="nofollow" href="http://maps.google.com/maps?gwt=1&file=api&v=2.x">http://maps.google.com/maps?gwt=1&file=api&v=2.x</a>>" > > /> > > <entry-point class="com.mobigolf.gwt.client.MobiGolf"/> > > > </module> > > > On Sep 15, 1:44 pm, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > > > Try loading the Maps API before your GWT script. Or move the loading of > > the > > > Maps script into your .gwt.xml file. There is an example of the latter > > in > > > the online documentation at:<a rel="nofollow" href="http://code.google.com/p/gwt-google-apis/">http://code.google.com/p/gwt-google-apis/</a> > > > > On Mon, Sep 15, 2008 at 12:55 PM, Einstein0970 <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > > I have tried all possibilities: > > > > > 1- <scrip in my html file > > > > 2- <cript in my web.xml file > > > > > Still receive same error. > > > > > Here are my files: > > > > <html> > > > > <head> > > > > > <!-- --> > > > > <!-- Any title is fine --> > > > > <!-- --> > > > > <title>Wrapper HTML for MobiGolf</title> > > > > > <!-- --> > > > > <!-- The module reference below is the link --> > > > > <!-- between html and your Web Toolkit module --> > > > > <!-- --> > > > > <meta name='gwt:module' > > > > content='com.mobigolf.gwt.MobiGolf'/> > > > > > <!-- --> > > > > <!-- Link CSS file --> > > > > <!-- --> > > > > <link type="text/css" rel='stylesheet' > > href='MobiGolf.css'/> > > > > > </head> > > > > > <!-- --> > > > > <!-- The body can have arbitrary html, or --> > > > > <!-- we leave the body empty because we want --> > > > > <!-- to create a completely dynamic ui --> > > > > <!-- --> > > > > <body> > > > > > <!-- --> > > > > <!-- This script is required bootstrap stuff. --> > > > > <!-- You can put it in the HEAD, but startup --> > > > > <!-- is slightly faster if you include it here. --> > > > > <!-- --> > > > > <script language="javascript" > > > > src="com.mobigolf.gwt.MobiGolf.nocache.js"> > > > > > > > > > > > > style="width:0;height:0;border:0"> > > > iframe> > > > > > > > > >
Re: GWT Maps API fails on host mode
Still fails: Here's my gwt.xml file: (followed the tut: http://code.google.com/p/gwt-google-apis/wiki/MapsGettingStarted) http://maps.google.com/maps</a>? gwt=1&file=api&v=2.x" /> <entry-point class="com.mobigolf.gwt.client.MobiGolf"/> </module> On Sep 15, 1:44 pm, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > Try loading the Maps API before your GWT script. Or move the loading of the > Maps script into your .gwt.xml file. There is an example of the latter in > the online documentation at:<a rel="nofollow" href="http://code.google.com/p/gwt-google-apis/">http://code.google.com/p/gwt-google-apis/</a> > > > > On Mon, Sep 15, 2008 at 12:55 PM, Einstein0970 <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I have tried all possibilities: > > > 1- <scrip in my html file > > 2- <cript in my web.xml file > > > Still receive same error. > > > Here are my files: > > <html> > > <head> > > > <!-- --> > > <!-- Any title is fine --> > > <!-- --> > > <title>Wrapper HTML for MobiGolf</title> > > > <!-- --> > > <!-- The module reference below is the link --> > > <!-- between html and your Web Toolkit module --> > > <!-- --> > > <meta name='gwt:module' > > content='com.mobigolf.gwt.MobiGolf'/> > > > <!-- --> > > <!-- Link CSS file --> > > <!-- --> > > <link type="text/css" rel='stylesheet' href='MobiGolf.css'/> > > > </head> > > > <!-- --> > > <!-- The body can have arbitrary html, or --> > > <!-- we leave the body empty because we want --> > > <!-- to create a completely dynamic ui --> > > <!-- --> > > <body> > > > <!-- --> > > <!-- This script is required bootstrap stuff. --> > > <!-- You can put it in the HEAD, but startup --> > > <!-- is slightly faster if you include it here. --> > > <!-- --> > > <script language="javascript" > > src="com.mobigolf.gwt.MobiGolf.nocache.js"> > > > > > > style="width:0;height:0;border:0"> > iframe> > > > > >
Re: GWT Maps API fails on host mode
Hi, I have tried all possibilities: 1- Wrapper HTML for MobiGolf
GWT Maps API fails on host mode
Hi Guys, Recently moved on Ubuntu 8.04 (64bit) and GWT 1.5. I am using the latest gwt-maps.api and my very simple code does not start on host mode but works perfectly when deployed under tomcat. Here is the error I get: [ERROR] Unable to load module entry point class com.mobigolf.gwt.client.MobiGolf (see associated exception for details) com.google.gwt.core.client.JavaScriptException: (TypeError): $wnd.GLatLng is not a constructor fileName: transient source for com.google.gwt.maps.client.impl.__LatLngImplImpl lineNumber: 14 stack: (46.870989,-71.217155)@transient source for com.google.gwt.maps.client.impl.__LatLngImplImpl:14 gwtOnLoad([object Window],"com.mobigolf.gwt.MobiGolf","1.5")@:0 gwtOnLoad((function () {alert("Failed to load module com.mobigolf.gwt.MobiGolf\".\nPlease see the log in the development shell for details.");}),"com.mobigolf.gwt.MobiGolf","http://localhost: /com.mobigolf.gwt.MobiGolf/")@http://localhost:/ com.mobigolf.gwt.MobiGolf/hosted.html?com_mobigolf_gwt_MobiGolf:20 maybeStartModule()@http://localhost:/com.mobigolf.gwt.MobiGolf/ com.mobigolf.gwt.MobiGolf.nocache.js:100 ()@http://localhost:/com.mobigolf.gwt.MobiGolf/ com.mobigolf.gwt.MobiGolf.nocache.js:393 @http://localhost:/com.mobigolf.gwt.MobiGolf/hosted.html? com_mobigolf_gwt_MobiGolf:39 at com.google.gwt.maps.client.impl.__LatLngImplImpl.construct(Native Method) at com.google.gwt.maps.client.geom.LatLng.(LatLng.java:65) at com.mobigolf.gwt.client.reservations.InfoWindowDemo.(InfoWindowDemo.java: 54) at com.mobigolf.gwt.client.Tabs.(Tabs.java:45) at com.mobigolf.gwt.client.MobiGolf.onModuleLoad(MobiGolf.java:51) Thanks for any help, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: Google Maps -> Problems when viewing the map
Thanks Guys, the map.checkResize(); solved my poblem too. - Erick On Jul 24, 11:59 am, Guillem <[EMAIL PROTECTED]> wrote: > I don't know if you already fixed this, but I'll share what I've > found. > > In my app, I add MapWidgets at runtime, all with setVisible(false). > By clicking on a link, you can show or hide any of the MapWidgets, but > all > MapWidgets added this way were having the same problem you report. > What I did to fix this is to add a checkResize() call after > setVisible(true). > This solved the problem. > > Example: > > final MapWidget map = new MapWidget(); > map.setVisible(false); > > Button b = new Button("Show", new ClickListener(){ > public void onClick(Widget arg0) { > map.setVisible(true); > map.checkResize(); > } > > }); > > RootPanel.get().add(map); > RootPanel.get().add(b); > Hope this helps. > > On 24 jul, 12:43, LFCPD <[EMAIL PROTECTED]> wrote: > > > I center the map when I create the markers. In the application there > > are some markers stored in the DB, and for each one I create a marker > > like this: > > > long lat = ... > > long lng = //lat and lng are from each point stored in DB > > > final LatLng point = new LatLng(lat, lng); > > Marker marker = new Marker(point); > > map.addOverlay(marker); > > map.setCenter(point); > > marker.addClickListener(new MarkerClickListener() > > { > > public void onClick(Marker sender) { > > map.setCenter(point); > > map.getInfoWindow().open(point, new > > InfoWindowContent("Endpoint IP: > > " + ip + ". GC: " + gc)); > > } > > }); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com 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 -~--~~~~--~~--~--~---