Re: Polygons using GWT
actually, there are different Canvas widgets avaiable now. I've been searhcing for this, and made small article on blog: http://lexaux.blogspot.com/2009/08/gwt-canvas-widget-drawing-in-browser.html I've tried these canvas implementations: http://code.google.com/p/gwt-canvas/ - seems to be good, but I only played with it a bit http://gwt-widget.sourceforge.net/ - used heavily, works mostly good. Though, PoC On Sep 5, 1:09 am, ThomasWrobel wrote: > You need to use the Canvas object for > this;http://code.google.com/p/google-web-toolkit-incubator/wiki/GWTCanvas > > On Sep 5, 1:14 am, jonty wrote: > > > Hi all, > > > Can someone tell on how to draw polygon using GWT ?? It will be good > > if someone can post some sample code. > > > Thanks, > > Bharat --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Google doesn't index text in GWT apps
Hi, I'm working on a GWT app (it's a search application) and the main window is not being indexed by google. Google indexes just the static text in the html file and the javascript generated text not at all. Probably the crawler doesn't run javascript. The disadvantage however is that my app does not get properly indexed. The only thing I can think of to improve things is that I make the main window mostly a static html page with static text and images If I then do a search, the static text in the HTML should be removed. Any ideas on how to do this? Load a new HTML page or so, or is there some way to hide the static text in the html programmatically? Jaap --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
error in gwt showcase on mac
Hi all, when launching the gwt showcase http://gwt.google.com/samples/Showcase/Showcase.html under Mac OS X 10.5.8 with Firefox 3.5.2, nothing is diplayed in the browser and I get the following error message in Firebug: invalid XML tag syntax at the line 548 of the following file: E943AC7B81BAEC8BF004F3678598AB22.cache.html And here is the line 548: function DEb(a){if(a<=30){return 1
Re: _________________How to fix the side-bar bug in this group.
It also happens with FF from time to time. A complete reload (with Shift hold) helps most of the times. hth On 8 Sep., 14:47, ThomasWrobel wrote: > no problem, Id get annoyed too if I see someone posted > just to get attention. > The problems been coming and going over the last few weeks. > Dosnt seem browser related, as that screen was from Chrome a few days > back. > The group is working ok for me now, again, although it had the glitch > this morning, hence the post. > Hopefully its gone for good, if not people can use my work-around. > > On Sep 8, 2:38 pm, Ivan Chappel wrote: > > > my bad, after seeing the screenshot I see why you added it. I read the > > forums using FF and the posts display normally. Glad you came up with > > a workaround. > > > On Sep 8, 8:31 am, ThomasWrobel wrote: > > > > I'm adding that to the benefit of those experiencing this > > > problem;http://www.lostagain.nl/tempspace/grouperror1.jpg > > > It allows people to actually read the title, rather then having it cut > > > off. > > > > On Sep 8, 2:02 pm, Ivan Chappel wrote: > > > > > Stop being a retard by adding _ to your subject. > > > > This is not craigslist. > > > > > On Sep 8, 7:57 am, darkflame wrote: > > > > > > I cant be the only one frustrated by the side-bar of those group > > > > > constantly going wrong and making it near impossible to post/browse, > > > > > so Id thought Id do a simple css fix to remove it completely. > > > > > > For those running Opera just download > > > > > this;http://www.lostagain.nl/tempspace/style.css > > > > > And right click "Edit Site Preferences" >> Display >> Select the > > > > > custom css. > > > > > > For those running Firefox youd need the stylish > > > > > plugin;https://addons.mozilla.org/en-US/firefox/addon/2108 > > > > > > Hope this helps people :) > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
what module contains com.google.gwt.core.ext.typeinfo.* ??
I'm trying to do some work with GWT Generators, but I cannot find a module which will allow me to access the classes in com.google.gwt.core.ext.* com.google.gwt.core.ext.typeinfo.* The documentation is sketchy, but it seems from the build files that is supposed to grant access to these classes, but it doesn't work for me - I still get: No source code is available for type com.google.gwt.core.ext.Generator; did you forget... No source code is available for type com.google.gwt.core.ext.typeinfo.TypeOracle; did you forget ... when I try test anything. I have inherited from every module I could find that doesn't break the module XML parsing to no avail. Can anyone shed some light getting access to these classes? --~--~-~--~~~---~--~~ 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: How to get URL in GWT?
Thanks to all of you for your help. Window.Location.getHostName() and Window.Location.getPort() is working fine for me :) On Sep 8, 9:41 pm, Thomas Broyer wrote: > On 8 sep, 11:55, Vikas wrote: > > > For RPC communication, I need server IP address and port which is > > specified inURL. > > e.g. In 'http://10.4.6.131:8181/webClient.html'url10.4.6.131 IP > > address and 8181 port. > > > How to get this IP and port in GWT? > > Window.Location.getHostName() and Window.Location.getPort() ? --~--~-~--~~~---~--~~ 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: Listen for click on VerticalPanel?
Hi also you can use this code: VerticalPanel verticalPanel = new VerticalPanel() { @Override public void onBrowserEvent(Event event) { super.onBrowserEvent(event); switch (DOM.eventGetType(event)) { case Event.ONCLICK: { //todo something break; } case Event.ONDBLCLICK: { //todo something break; } } } }; --~--~-~--~~~---~--~~ 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: FlowPanel
Hi You must add your vertical panel in a horizontal panel or decrease vertical panel width. --~--~-~--~~~---~--~~ 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: Your GWT based open source project(s)
Thank you for the many replies. I'm impressed by the number of responses. I'd also love you hear which open source project actually motivated you to share your code. Thanks again Fred On Thu, Sep 3, 2009 at 4:40 PM, Fred Sauer wrote: > From time to time I hear from people who have created GWT related open > source projects. > If that includes you, here's my 1 question, 10 second survey: > * Q. Were you encouraged to open source your project because of the > benefits* > * you gained from another open source project (GWT, or any other > project)?* > > (Private replies are fine too). > > > Thanks-- > Fred Sauer > Developer Advocate > Google Inc. 1600 Amphitheatre Parkway > Mountain View, CA 94043 > fre...@google.com > > > > -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Can I get at arbitrary events using GWT?
I need to implement a general event handler for text controls that lets me know every time the contents have changed in any way (I guess that would be through typing, cutting or pasting). I can get partway there now in GWT 1.7.0 with a combination of ONKEYPRESS and ONCHANGE, and I can get one step further in GWT 2.0 with the addition of ONPASTE. But I'm not seeing any way to get to the ONCUT event...or am I just missing it? Is it possible to see arbitrary browser events that aren't specifically supported by GWT (like, for example, the ONCUT event, assuming it's not currently supported)? --~--~-~--~~~---~--~~ 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: Does GWT work in Snow Leopard?
Hi Jim, All I was saying is that you seem to make this whole "hacking system directories" way scarier than it is. I've changed things multiple times over the years in "system directories" sometimes following Apple's own advices. This particular instance is a completely harmless copy. Anyway, don't run snow leopard if you don't want to. But until a proper fix is out, I much prefer (and some other people too I'm sure) giving GWT the JDK 1.5 it expects rather than changing all my scripts and eclipse projects to hack the gwt installation. Regards, Pascal On 8 sep, 22:30, Jim Douglas wrote: > Hi Pascal, > > If hacking system directories seems like an acceptable approach for > you, it's your system and your choice. My concern is that GWT > developers who come here looking for advice about getting GWT running > in Snow Leopard shouldn't be told that the correct solution is to hack > their operating system in ways that aren't supported or approved by > Apple. > > As a general rule, it's rarely a good idea to advise anyone that the > fix for a problem is to hack around in system directories. It's > especially bad advice when it's not necessary. There's nothing > compelling about Snow Leopard that makes it urgent for anyone to > install it right this second. I'm more than happy to leave it sitting > here in the shrink wrap until I'm sure that I can install it and get > back to work without any disruptions. But if someone feels the need > to install it (or installed it without realizing it would break GWT), > there are other ways to get GWT running again that don't involve > hacking in Apple's JVM directories. > > Regards, > Jim. > > On Sep 8, 6:16 pm, Pascal wrote: > > > Seriously, it takes around 20 seconds to copy the 1.5 directories over > > and redo the symlinks. If an update from Apple came in and deleted > > things, you'd need to spend another 20 seconds redoing things as all > > they'd do is delete what you did. I'm sure there will be a fix out at > > some point in the near future but in the interim, I can happily run > > hosted mode on Snow Leopard and I wouldn't describe the workaround as > > "horrific", it's just one directory and two symlinks. > > > Pascal > > > On Sep 8, 5:31 pm, Jim Douglas wrote: > > > > Don't follow that horrific advice; it will break the next time get get > > > a Java update from Apple: > > > >http://lists.apple.com/archives/java-dev/2009/Sep/msg00072.html > > > > There are only two legitimate workarounds for this right now -- > > > install a current build of GWT 2.0, or hack around the Java 5 check in > > > GWT 1.7 as described here: > > > >http://development.lombardi.com/?p=1012 > > > > On Sep 7, 1:12 pm, javacup wrote: > > > > > Hi All, > > > > > I followed the instructions from this page > > > > >http://wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard > > > > > but still I get > > > > > You must use a Java 1.5 runtime to use GWT Hosted Mode on Mac OS X. > > > > > I see some of you added hacks into the boot strap class. Does google > > > > view this seriously and try to release a patch ASAP? > > > > > Thanks > > > > > On Sep 3, 7:05 am, Alex Moffat wrote: > > > > > > I have another work around that involves changing the > > > > > BootStrapPlatform class in gwt-dev-mac.jar to remove the check for > > > > > java 1.5. If you do this then you can use java 1.6 with the -d32 flag > > > > > and it works fine. More details > > > > > athttp://development.lombardi.com/?p=1012 > > > > > > On Aug 31, 6:35 pm, Jim Douglas wrote: > > > > > > > Hi Sumit, > > > > > > > That "workaround" is really not acceptable. Because Apple considers > > > > > > the JVM to be part of the operating system, messing in those > > > > > > directories amounts to hacking the O/S. It's unsafe, unsupported, > > > > > > and > > > > > > can -- and probably will -- arbitrarily drop dead at any time with > > > > > > an > > > > > > O/S update. > > > > > > > I could easily be missing something important, but it seems like > > > > > > this > > > > > > should be a fairly easy thing for you to patch. My understanding is > > > > > > that the issue with GWT is that you need a 32-bit JVM, and in Mac > > > > > > OS X > > > > > > Leopard, the only way to get a 32-bit JVM is to use Java 5; the > > > > > > Leopard Java 6 is 64-bit-only. But in Snow Leopard, you can invoke > > > > > > Java 6 with "java -d32 ...", and you will get a 32-bit JVM. > > > > > > Wouldn't > > > > > > this work for GWT hosted mode? > > > > > > > Regards, > > > > > > Jim. > > > > > > > On Aug 31, 3:58 pm, Sumit Chandel wrote: > > > > > > > > Hi all, > > > > > > > Hosted mode will be getting an exciting makeover soon, in the > > > > > > > form of > > > > > > > Out-Of-Process Hosted Mode (OOPHM). With OOPHM, hosted mode runs > > > > > > > as a plugin > > > > > > > to your favourite browser so that you can debug with the browser > > > > > > > most > > > > > > > familiar to you using whichever other debugging tools it offers > > > >
Re: Does GWT work in Snow Leopard?
Hi Pascal, If hacking system directories seems like an acceptable approach for you, it's your system and your choice. My concern is that GWT developers who come here looking for advice about getting GWT running in Snow Leopard shouldn't be told that the correct solution is to hack their operating system in ways that aren't supported or approved by Apple. As a general rule, it's rarely a good idea to advise anyone that the fix for a problem is to hack around in system directories. It's especially bad advice when it's not necessary. There's nothing compelling about Snow Leopard that makes it urgent for anyone to install it right this second. I'm more than happy to leave it sitting here in the shrink wrap until I'm sure that I can install it and get back to work without any disruptions. But if someone feels the need to install it (or installed it without realizing it would break GWT), there are other ways to get GWT running again that don't involve hacking in Apple's JVM directories. Regards, Jim. On Sep 8, 6:16 pm, Pascal wrote: > Seriously, it takes around 20 seconds to copy the 1.5 directories over > and redo the symlinks. If an update from Apple came in and deleted > things, you'd need to spend another 20 seconds redoing things as all > they'd do is delete what you did. I'm sure there will be a fix out at > some point in the near future but in the interim, I can happily run > hosted mode on Snow Leopard and I wouldn't describe the workaround as > "horrific", it's just one directory and two symlinks. > > Pascal > > On Sep 8, 5:31 pm, Jim Douglas wrote: > > > > > Don't follow that horrific advice; it will break the next time get get > > a Java update from Apple: > > >http://lists.apple.com/archives/java-dev/2009/Sep/msg00072.html > > > There are only two legitimate workarounds for this right now -- > > install a current build of GWT 2.0, or hack around the Java 5 check in > > GWT 1.7 as described here: > > >http://development.lombardi.com/?p=1012 > > > On Sep 7, 1:12 pm, javacup wrote: > > > > Hi All, > > > > I followed the instructions from this page > > > >http://wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard > > > > but still I get > > > > You must use a Java 1.5 runtime to use GWT Hosted Mode on Mac OS X. > > > > I see some of you added hacks into the boot strap class. Does google > > > view this seriously and try to release a patch ASAP? > > > > Thanks > > > > On Sep 3, 7:05 am, Alex Moffat wrote: > > > > > I have another work around that involves changing the > > > > BootStrapPlatform class in gwt-dev-mac.jar to remove the check for > > > > java 1.5. If you do this then you can use java 1.6 with the -d32 flag > > > > and it works fine. More details > > > > athttp://development.lombardi.com/?p=1012 > > > > > On Aug 31, 6:35 pm, Jim Douglas wrote: > > > > > > Hi Sumit, > > > > > > That "workaround" is really not acceptable. Because Apple considers > > > > > the JVM to be part of the operating system, messing in those > > > > > directories amounts to hacking the O/S. It's unsafe, unsupported, and > > > > > can -- and probably will -- arbitrarily drop dead at any time with an > > > > > O/S update. > > > > > > I could easily be missing something important, but it seems like this > > > > > should be a fairly easy thing for you to patch. My understanding is > > > > > that the issue with GWT is that you need a 32-bit JVM, and in Mac OS X > > > > > Leopard, the only way to get a 32-bit JVM is to use Java 5; the > > > > > Leopard Java 6 is 64-bit-only. But in Snow Leopard, you can invoke > > > > > Java 6 with "java -d32 ...", and you will get a 32-bit JVM. Wouldn't > > > > > this work for GWT hosted mode? > > > > > > Regards, > > > > > Jim. > > > > > > On Aug 31, 3:58 pm, Sumit Chandel wrote: > > > > > > > Hi all, > > > > > > Hosted mode will be getting an exciting makeover soon, in the form > > > > > > of > > > > > > Out-Of-Process Hosted Mode (OOPHM). With OOPHM, hosted mode runs as > > > > > > a plugin > > > > > > to your favourite browser so that you can debug with the browser > > > > > > most > > > > > > familiar to you using whichever other debugging tools it offers > > > > > > while at the > > > > > > same time debugging your GWT code in hosted mode as you do now. > > > > > > > OOPHM is currently available in GWT trunk for those who want to > > > > > > give it a > > > > > > try (instructions linked below). > > > > > > > That said, OOPHM solves the problem of requiring 32-bit libraries > > > > > > that > > > > > > exists in other Mac builds where switching out to Java 1.5 was > > > > > > necessary. > > > > > > That means that OOPHM will also work perfectly well for Snow > > > > > > Leopard, or any > > > > > > other platform using any Java libraries, 32-bit or not. > > > > > > > Hopefully the workaround Dean linked to above will get you up and > > > > > > running > > > > > > until OOPHM comes out in the next major release. If that workaround > > > > > > doesn't > > > > >
Re: Custom boot-strap / setting locale from request headers
Hi Thomas - Thanks for the info. That sounds like it would work great if I had control over the host page. Unfortunately what I'm trying to do is make an embeddable widget, so I will not actually have any control over the host page. I've managed to dynamically insert CSS into the page, so I don't actually need the nocache.js file to do any of the CSS for me. I would need to load the js dependencies though... have you ever done this manually? Any idea where docs might be? Is this even possible? -Andrew On Thu, Sep 3, 2009 at 12:26 AM, Thomas Broyer wrote: > > > > On 2 sep, 23:50, mayop100 wrote: > > Hey Guys - > > > > There's a section on this page: > http://code.google.com/webtoolkit/tutorials/1.6/i18n.html > > > > That suggests that there's an easy way to set the user's locale by > > parsing the Accept-Language header in the user's request. I want to > > have my GWT app always display the locale specified in the client's > > Accept-Language header - not the locale specified in the host page. I > > think I should be able to write a servlet to do this... and it sounds > > like this is possible based on that page, but I don't know enough > > about the bootstrap process to actually make this work. Has anyone > > else done this? > > To make it simple, we're using Apache's MultiViews with several copies > (not copies actually, as we have some "static HTML" that needs to be > translated): index.html.fr, index.html.en, etc. > And each page "loads" the appropriate locale using a name="gwt:property" content="locale=fr"> > (see > http://code.google.com/webtoolkit/doc/1.6/DevGuideI18nAndA11y.html#DevGuideSpecifyingLocale > ) > > but you could achieve the same using some servlet or JSP as your host > page, and generating the appropriate ; there's something about > it in the GWT Incubator IIRC: > http://code.google.com/p/google-web-toolkit-incubator > > > A more general question is - is there a way I could write a servlet > > that pulls the client's browser type and locale from the request > > headers and returns the appropriate GWT permutation? This would let me > > skip the entire .nocache.js bootstrap process and speed up > > initialization. I feel like this shouldn't be too hard, but I don't > > really know what setup goes on in the nocache.js bootstrap file. Has > > anyone done this before? Can this be done? or is there essential setup > > that occurs in the bootstrap file? > > the *.nocache.js also loads the stylesheet and javascript > dependencies, so it's a bit more than just selecting the appropriate > permutation. > Also, although you could determine the "browser type" on the server > side, you would have to make a choice when it comes to IE8, as it > could use either the ie6 or ie8 permutation depending on the > "documentMode". > > > --~--~-~--~~~---~--~~ 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: Does GWT work in Snow Leopard?
Seriously, it takes around 20 seconds to copy the 1.5 directories over and redo the symlinks. If an update from Apple came in and deleted things, you'd need to spend another 20 seconds redoing things as all they'd do is delete what you did. I'm sure there will be a fix out at some point in the near future but in the interim, I can happily run hosted mode on Snow Leopard and I wouldn't describe the workaround as "horrific", it's just one directory and two symlinks. Pascal On Sep 8, 5:31 pm, Jim Douglas wrote: > Don't follow that horrific advice; it will break the next time get get > a Java update from Apple: > > http://lists.apple.com/archives/java-dev/2009/Sep/msg00072.html > > There are only two legitimate workarounds for this right now -- > install a current build of GWT 2.0, or hack around the Java 5 check in > GWT 1.7 as described here: > > http://development.lombardi.com/?p=1012 > > On Sep 7, 1:12 pm, javacup wrote: > > > Hi All, > > > I followed the instructions from this page > > >http://wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard > > > but still I get > > > You must use a Java 1.5 runtime to use GWT Hosted Mode on Mac OS X. > > > I see some of you added hacks into the boot strap class. Does google > > view this seriously and try to release a patch ASAP? > > > Thanks > > > On Sep 3, 7:05 am, Alex Moffat wrote: > > > > I have another work around that involves changing the > > > BootStrapPlatform class in gwt-dev-mac.jar to remove the check for > > > java 1.5. If you do this then you can use java 1.6 with the -d32 flag > > > and it works fine. More details athttp://development.lombardi.com/?p=1012 > > > > On Aug 31, 6:35 pm, Jim Douglas wrote: > > > > > Hi Sumit, > > > > > That "workaround" is really not acceptable. Because Apple considers > > > > the JVM to be part of the operating system, messing in those > > > > directories amounts to hacking the O/S. It's unsafe, unsupported, and > > > > can -- and probably will -- arbitrarily drop dead at any time with an > > > > O/S update. > > > > > I could easily be missing something important, but it seems like this > > > > should be a fairly easy thing for you to patch. My understanding is > > > > that the issue with GWT is that you need a 32-bit JVM, and in Mac OS X > > > > Leopard, the only way to get a 32-bit JVM is to use Java 5; the > > > > Leopard Java 6 is 64-bit-only. But in Snow Leopard, you can invoke > > > > Java 6 with "java -d32 ...", and you will get a 32-bit JVM. Wouldn't > > > > this work for GWT hosted mode? > > > > > Regards, > > > > Jim. > > > > > On Aug 31, 3:58 pm, Sumit Chandel wrote: > > > > > > Hi all, > > > > > Hosted mode will be getting an exciting makeover soon, in the form of > > > > > Out-Of-Process Hosted Mode (OOPHM). With OOPHM, hosted mode runs as a > > > > > plugin > > > > > to your favourite browser so that you can debug with the browser most > > > > > familiar to you using whichever other debugging tools it offers while > > > > > at the > > > > > same time debugging your GWT code in hosted mode as you do now. > > > > > > OOPHM is currently available in GWT trunk for those who want to give > > > > > it a > > > > > try (instructions linked below). > > > > > > That said, OOPHM solves the problem of requiring 32-bit libraries that > > > > > exists in other Mac builds where switching out to Java 1.5 was > > > > > necessary. > > > > > That means that OOPHM will also work perfectly well for Snow Leopard, > > > > > or any > > > > > other platform using any Java libraries, 32-bit or not. > > > > > > Hopefully the workaround Dean linked to above will get you up and > > > > > running > > > > > until OOPHM comes out in the next major release. If that workaround > > > > > doesn't > > > > > work, please feel free to reply back and let us know. > > > > > > Using OOPHM from > > > > > trunk:http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM > > > > > > Hope that helps, > > > > > -Sumit Chandel > > > > > > On Mon, Aug 31, 2009 at 11:35 AM, mdwarne > > > > > wrote: > > > > > > > Hi, > > > > > > After watching a bunch of Googles GWT videos, and seminar speeches, > > > > > > I > > > > > > noticed some of the presenters are using Macbooks. > > > > > > I have to believe they are well aware of this issue. > > > > > > Mike. > > > > > > > On Aug 31, 4:04 am, Michael Shantzis wrote: > > > > > > > The question I have is how high it is on google's list to release > > > > > > > a > > > > > > > version of GWT that runs on snow leopard without any > > > > > > > modifications. > > > > > > > I'm working in an environment where I'm testing jboss (which > > > > > > > requires > > > > > > > java 1.6) and have had to jump through hoops to get my server > > > > > > > running > > > > > > > 1.6 and my GWT client running 1.5. > > > > > > > > I'm sure they're already aware of this and it's certainly the case > > > > > > > that all the pieces are out there for them. > > > > > > > > I'm patiently waiting!!! > > > > > > >
Null pointer in generated createStreamWriter method
Hi, I'm developing with GWT (version 1.7.0) and having trouble figuring out the source of a runtime exception. My application compiles, runs, and behaves as expected in hosted mode (on both Windows and Linux). In browser mode (also on Windows and Linux), I get a runtime exception: 'com_google_gwt_user_client_rpc_impl_RemoteServiceProxy_s...' is null or not an object The generated javascript where the exception occurs is: function com_google_gwt_user_client_rpc_impl_RemoteServiceProxy_ $createStreamWriter__Lcom_google_gwt_user_client_rpc_impl_RemoteServiceProxy_2 (this$static){ var clientSerializationStreamWriter; clientSerializationStreamWriter = com_google_gwt_user_client_rpc_impl_ClientSerializationStreamWriter_ $ClientSerializationStreamWriter__Lcom_google_gwt_user_client_rpc_impl_ClientSerializationStreamWriter_2Lcom_google_gwt_user_client_rpc_impl_Serializer_2Ljava_lang_String_2Ljava_lang_String_2 (new com_google_gwt_user_client_rpc_impl_ClientSerializationStreamWriter(), this $static.com_google_gwt_user_client_rpc_impl_RemoteServiceProxy_serializer, this $static.com_google_gwt_user_client_rpc_impl_RemoteServiceProxy_moduleBaseURL, this $static.com_google_gwt_user_client_rpc_impl_RemoteServiceProxy_serializationPolicyName); clientSerializationStreamWriter.com_google_gwt_user_client_rpc_impl_AbstractSerializationStreamWriter_objectCount = 0; java_util_AbstractHashMap_$clearImpl__Ljava_util_AbstractHashMap_2 (clientSerializationStreamWriter.com_google_gwt_user_client_rpc_impl_AbstractSerializationStreamWriter_objectMap); clientSerializationStreamWriter.com_google_gwt_user_client_rpc_impl_AbstractSerializationStreamWriter_stringMap.clear__ (); java_util_ArrayList_$clear__Ljava_util_ArrayList_2 (clientSerializationStreamWriter.com_google_gwt_user_client_rpc_impl_AbstractSerializationStreamWriter_stringTable); clientSerializationStreamWriter.com_google_gwt_user_client_rpc_impl_ClientSerializationStreamWriter_encodeBuffer = java_lang_StringBuffer_$StringBuffer__Ljava_lang_StringBuffer_2(new java_lang_StringBuffer()); com_google_gwt_user_client_rpc_impl_AbstractSerializationStreamWriter_ $writeString__Lcom_google_gwt_user_client_rpc_impl_AbstractSerializationStreamWriter_2Ljava_lang_String_2 (clientSerializationStreamWriter, clientSerializationStreamWriter.com_google_gwt_user_client_rpc_impl_ClientSerializationStreamWriter_moduleBaseURL); com_google_gwt_user_client_rpc_impl_AbstractSerializationStreamWriter_ $writeString__Lcom_google_gwt_user_client_rpc_impl_AbstractSerializationStreamWriter_2Ljava_lang_String_2 (clientSerializationStreamWriter, clientSerializationStreamWriter.com_google_gwt_user_client_rpc_impl_ClientSerializationStreamWriter_serializationPolicyStrongName); return clientSerializationStreamWriter; } The browser's script debugger reports that "this$static" is null, but I don't know what could be causing this. Can anyone give suggestions here? Thank you, Jennifer --~--~-~--~~~---~--~~ 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: GWT RPC Problem with JDP
You cannot return StreamingQueryResult from your RPC Method. The RPC Method must return an object that implements Serializable and has a default no-args constructor. Also, this class should not depend on any server specific class. Remember - the object you return from your RPC method will ultimately be converted to javascript, so you really cannot return any arbitrary class. On Sep 8, 1:19 am, vasem want wrote: > This is no RPC issue but it is the thread invokation > it seems all yours threads are busy and on top of > that it is not able to find the object you are riding > the data on , check your object response and check > your pooling first > > On Mon, Sep 7, 2009 at 6:08 PM, webnazar wrote: > > > Mudassar Nazar : Software Engineer > > > This is not only a problem, but also a bug issue, i was trying from > > app the possiblities of trial and error method for ruuning the program > > but it is failed. > > > Sep 7, 2009 3:32:55 PM > > com.google.appengine.tools.development.ApiProxyLocalImpl log > > SEVERE: [1252317775578000] javax.servlet.ServletContext log: Exception > > while dispatching incoming RPC call > > com.google.gwt.user.client.rpc.SerializationException: Type > > 'org.datanucleus.store.appengine.query.StreamingQueryResult' was not > > included in the set of types which can be serialized by this > > SerializationPolicy or its Class object could not be loaded. For > > security purposes, this type will not be serialized. > > at > > > com.google.gwt.user.server.rpc.impl.StandardSerializationPolicy.validateSerialize > > (StandardSerializationPolicy.java:83) > > at > > > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize > > (ServerSerializationStreamWriter.java:591) > > at > > > com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject > > (AbstractSerializationStreamWriter.java:129) > > at > > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter > > $ValueWriter$8.write(ServerSerializationStreamWriter.java:146) > > at > > > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue > > (ServerSerializationStreamWriter.java:530) > > at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:573) > > at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess > > (RPC.java:441) > > at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse > > (RPC.java:529) > > at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall > > (RemoteServiceServlet.java:166) > > at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost > > (RemoteServiceServlet.java:86) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) > > at > > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: > > 487) > > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter > > (ServletHandler.java:1093) > > at > > com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter > > (TransactionCleanupFilter.java:43) > > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter > > (ServletHandler.java:1084) > > at com.google.appengine.tools.development.StaticFileFilter.doFilter > > (StaticFileFilter.java:121) > > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter > > (ServletHandler.java:1084) > > at org.mortbay.jetty.servlet.ServletHandler.handle > > (ServletHandler.java:360) > > at org.mortbay.jetty.security.SecurityHandler.handle > > (SecurityHandler.java:216) > > at org.mortbay.jetty.servlet.SessionHandler.handle > > (SessionHandler.java:181) > > at org.mortbay.jetty.handler.ContextHandler.handle > > (ContextHandler.java:712) > > at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: > > 405) > > at > > com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle > > (DevAppEngineWebAppContext.java:54) > > at org.mortbay.jetty.handler.HandlerWrapper.handle > > (HandlerWrapper.java:139) > > at com.google.appengine.tools.development.JettyContainerService > > $ApiProxyHandler.handle(JettyContainerService.java:313) > > at org.mortbay.jetty.handler.HandlerWrapper.handle > > (HandlerWrapper.java:139) > > at org.mortbay.jetty.Server.handle(Server.java:313) > > at > > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: > > 506) > > at org.mortbay.jetty.HttpConnection$RequestHandler.content > > (HttpConnection.java:844) > > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) > > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205) > > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) > > at org.mortbay.io.nio.SelectChannelEndPoint.run > > (SelectChannelEndPoint.java:396) > > at org.m
Javascript security discussion
There ought to be two different discussions - (1) for attacks on the user that use the web site as an unwitting accomplice, perhaps intended to compromise the user's account and send unauthorised information to timbuktu. (2) attacks on the web site itself, perhaps intended to extract bulk data that was not indended to be published. It seems to me that any security features for type 2 attacks are intrinsically shams if they depend on the browser enforcing security policies. The browsers are open source. I can compile my own "attack assistant" version of firefox right now. I don't have to use a browser at all, just a telnet window. --~--~-~--~~~---~--~~ 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: HttpServletRequest returns wrong session?
GWT doesn't do anything with the session, so it is strange you are facing such a problem. Perhaps you could make a simple servlet/jsp (independent of gwt) which prints the same information as above (ie. sessionid and user object), and access the URL via a browser. If you are seeing the same behaviour (session id changing), then you would have eliminated GWT from being the culprit. On Sep 8, 4:11 am, "philipp.bouil...@gmail.com" wrote: > Hi, > > for a GWT application, I need a user management servlet, thus I am > setting an attribute for a session in which the current user is stored > (like this: > > HttpSession session = getThreadLocalRequest().getSession(true); > session.setAttribute("user", "myUserName"); > > Now, I do have a different service, which I use to display some data. > When I click on a button on the client side, the data is displayed > correctly -- in about 59 of 60 cases. If I click the button often > enough, at one point, the following code will _not_ work: > > HttpSession session = getThreadLocalRequest().getSession(); > String userName = (String) session.getAttribute("user"); > > and at this point, userName suddenly is null! > As I said, most of the time, the code above works, but sometimes, it > doesn't... Why? > > Also: I have printed the session id to the screen: It is correct (i.e. > always the same) as long as the above code works, but in the failure > case, the session id suddenly is different (although I am positive > that I neither started a new session nor asked GWT to do so...). > > Any ideas? Do you need more information? What am I doing wrong? > > Thanks for your help! > Philipp --~--~-~--~~~---~--~~ 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: Plugin GWT 1.7 SDK "missing"
Hi Jason, I don't see anything in .log. In Properties->Google->Web Toolkit I changed from "Use default SDK(1.7.0) to Use specific SDK 1.7.0 and the problem hasn't been back. --~--~-~--~~~---~--~~ 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: DeckPanel with visible layers?
2009/9/8 David Given > > Ian Bambury wrote: > [...] > > It might be helpful (well it would for me anyway) if you were to > > describe the effect you were trying to get. > > Simple enough, really: I want a progress bar with text over the top. > > > To some extent I think I understand, but I don't understand the reason > > for the problem for absolute positioning. > > Using an AbsolutePanel would require me to pick a pixel size for the > panel. Unfortunately, space is limited. Given that HTML doesn't do > queryable font metrics, I cannot manually size the panel to fit the text > inside. The normal solution here is to just make the panel bigger than > necessary, but I can't do that for space reasons. The progress bar needs > to tightly wrap the text. > > [...] > > But certainly this time the quick answer is 'out of luck' because the > > deck panel doesn't do that. > > It's an odd omission --- HTML and CSS should be able to produce the > effect I need using raw DOM. This kind of widget is usually one of the > primitives in most other widget sets I've seen, so I thought I should > check before writing my own. Well, a DeckPanel is designed to show one panel at a time, I don't think its raison d'etre was to allow layering. There are a number of options I can think of. The easiest would be to use a label and move a background image across to get the progressbar effect. Or you could put 2 labels in an absolutepanel, one for the text and then increase the size of the other (with a lower z-index and a background colour) as the progress increases as a percentage of the text label width. BTW - you can manually query the width of the text if you wish by adding an inline label to the screen and getting its width. It shouldn't show up (except in one strange version of FF but you can still set left : -1px; if you want) Ian http://examples.roughian.com --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Double.toString() behaviour inconsistency
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 If I run this: String s = Double.toString(1234.0); ...then on the hosted browser I get "1234.0", but on Firefox 3.5 I get "1234". I haven't tried it on anything else yet. Is this a known issue? Should I file a bug report? - -- ┌─── dg@cowlark.com ─ http://www.cowlark.com ─ │ │ "People who think they know everything really annoy those of us who │ know we don't." --- Bjarne Stroustrup -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFKpui/f9E0noFvlzgRAgqSAKCw+kaq0lNS1wGrymP8/iMShbrf4gCgvtYJ t9OoUs9WwAXH79Ri1vwgzQY= =dqME -END PGP SIGNATURE- --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Generation of useful random ID
Hi I would like to be able to generate a random ID, which can be used as a key in a database. I found a md5 implementation in javascript, which works fine on the client side of my code, but not on the server side. On the other hand I have also found alot of good examples of random string generators to use on the server side, but they all use libraries which are not usable on the client side. I am only thinking about md5 because it should be fairly unique. I would like to be able to call the same function on both client and server side, as I use this in connection with creation of data objects that should be sent back and forth with GWT RPC, and if they dont have an ID, I will generate it. This means that I need an algorithm for a unique random string that can be translated by GWT. Any suggestions to a solution? /Morten --~--~-~--~~~---~--~~ 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: RPC and MYSql interacting / complied code not working
Are you sure you included the mysql-connector jar file in the WAR file? If this jar file is not in your lib it will not work. This is just a suggestion to what could be wrong --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Hosted Mode - Keyboard Shortcuts?
Are there keyboard shortcuts in the hosted mode browser? In particular, for 'Refresh'? ⌘R doesn't do the trick in OS X. I haven't had a lot of luck searching for GWT hosted mode browser keyboard shortcuts in general. There's nothing obvious in the menus. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Test method with Timer object
Hello I have some problem during create TestNG for my code. I have control class in my MVC project GWT, and in one method I have object com.google.gwt.user.client.Timer. During run the unit test I have some exception java.lang.UnsupportedOperationException: ERROR: GWT.create() is only usable in client code! It cannot be called, for example, from server code. If you are running a unit test, check that your test case extends GWTTestCase and that GWT.create() is not called from within an initializer or constructor. My question is how I can test my method with Timer object or Random object. How create mock object for this classes. Mayby someone know injec object to class by guice. I dont want to use GWTTestCase but TestNG --~--~-~--~~~---~--~~ 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: Does GWT work in Snow Leopard?
Don't follow that horrific advice; it will break the next time get get a Java update from Apple: http://lists.apple.com/archives/java-dev/2009/Sep/msg00072.html There are only two legitimate workarounds for this right now -- install a current build of GWT 2.0, or hack around the Java 5 check in GWT 1.7 as described here: http://development.lombardi.com/?p=1012 On Sep 7, 1:12 pm, javacup wrote: > Hi All, > > I followed the instructions from this page > > http://wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard > > but still I get > > You must use a Java 1.5 runtime to use GWT Hosted Mode on Mac OS X. > > I see some of you added hacks into the boot strap class. Does google > view this seriously and try to release a patch ASAP? > > Thanks > > On Sep 3, 7:05 am, Alex Moffat wrote: > > > > > I have another work around that involves changing the > > BootStrapPlatform class in gwt-dev-mac.jar to remove the check for > > java 1.5. If you do this then you can use java 1.6 with the -d32 flag > > and it works fine. More details athttp://development.lombardi.com/?p=1012 > > > On Aug 31, 6:35 pm, Jim Douglas wrote: > > > > Hi Sumit, > > > > That "workaround" is really not acceptable. Because Apple considers > > > the JVM to be part of the operating system, messing in those > > > directories amounts to hacking the O/S. It's unsafe, unsupported, and > > > can -- and probably will -- arbitrarily drop dead at any time with an > > > O/S update. > > > > I could easily be missing something important, but it seems like this > > > should be a fairly easy thing for you to patch. My understanding is > > > that the issue with GWT is that you need a 32-bit JVM, and in Mac OS X > > > Leopard, the only way to get a 32-bit JVM is to use Java 5; the > > > Leopard Java 6 is 64-bit-only. But in Snow Leopard, you can invoke > > > Java 6 with "java -d32 ...", and you will get a 32-bit JVM. Wouldn't > > > this work for GWT hosted mode? > > > > Regards, > > > Jim. > > > > On Aug 31, 3:58 pm, Sumit Chandel wrote: > > > > > Hi all, > > > > Hosted mode will be getting an exciting makeover soon, in the form of > > > > Out-Of-Process Hosted Mode (OOPHM). With OOPHM, hosted mode runs as a > > > > plugin > > > > to your favourite browser so that you can debug with the browser most > > > > familiar to you using whichever other debugging tools it offers while > > > > at the > > > > same time debugging your GWT code in hosted mode as you do now. > > > > > OOPHM is currently available in GWT trunk for those who want to give it > > > > a > > > > try (instructions linked below). > > > > > That said, OOPHM solves the problem of requiring 32-bit libraries that > > > > exists in other Mac builds where switching out to Java 1.5 was > > > > necessary. > > > > That means that OOPHM will also work perfectly well for Snow Leopard, > > > > or any > > > > other platform using any Java libraries, 32-bit or not. > > > > > Hopefully the workaround Dean linked to above will get you up and > > > > running > > > > until OOPHM comes out in the next major release. If that workaround > > > > doesn't > > > > work, please feel free to reply back and let us know. > > > > > Using OOPHM from > > > > trunk:http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM > > > > > Hope that helps, > > > > -Sumit Chandel > > > > > On Mon, Aug 31, 2009 at 11:35 AM, mdwarne wrote: > > > > > > Hi, > > > > > After watching a bunch of Googles GWT videos, and seminar speeches, I > > > > > noticed some of the presenters are using Macbooks. > > > > > I have to believe they are well aware of this issue. > > > > > Mike. > > > > > > On Aug 31, 4:04 am, Michael Shantzis wrote: > > > > > > The question I have is how high it is on google's list to release a > > > > > > version of GWT that runs on snow leopard without any modifications. > > > > > > I'm working in an environment where I'm testing jboss (which > > > > > > requires > > > > > > java 1.6) and have had to jump through hoops to get my server > > > > > > running > > > > > > 1.6 and my GWT client running 1.5. > > > > > > > I'm sure they're already aware of this and it's certainly the case > > > > > > that all the pieces are out there for them. > > > > > > > I'm patiently waiting!!! > > > > > > > On Aug 29, 9:21 pm, James wrote: > > > > > > > > Hi... I just wanted to add that along with the suggestions on: > > > > > > > >http://wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard > > > > > > > > I had to rename the "CurrentJDK" symbolic link in > > > > > > > > /System/Library/Frameworks/JavaVM.framework/Versions/ > > > > > > > > from 1.6.0 to the (newly added) 1.5.0 because it appears that ant > > > > > > > was > > > > > > > looking at the "CurrentJDK" for its version not the env. --~--~-~--~~~---~--~~ 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 unsubs
Re: Listen for click on VerticalPanel?
Thanks, this is all I had to add after the 'implements': @Override public HandlerRegistration addClickHandler(ClickHandler handler) { return addDomHandler(handler, ClickEvent.getType()); } Thanks again, Mark On Sep 8, 3:11 pm, Tamás Gömbös wrote: > Hi, > > Just extend VerticalPanel and implement the HasClickHandlers interface with > this widget. I hope this helps. > > bye! > > 2009/9/8 markww > > > > > Hi, > > > Is it possible to listen for a click event on a VerticalPanel? I don't > > see any methods like addClickHandler() for it? > > > Thanks > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Simple jQuery plugin not working with GWT
Hello all, Most my experience using Gwt was via Ext-Gwt. I wanted to try plain vanilla Gwt. It wasn't a very difficult transition. I was looking for a form validator much like the native Ext one. My google hits lead me to a simple jQuery form validator: http://docs.jquery.com/Plugins/Validation#Isn.27t_that_nice_and_easy.3F. I generated code to match the jQuery window via GWT but alas the plugin didn't work. I view the generated HTML and created a simple html page containing the generated code and the plugin worked. Does anyone know if what I'm trying to do is possible. Am I overlooking something? Thanks, Shannon Gwt Code: public void onModuleLoad() { VerticalPanel pnlContent = new VerticalPanel(); DOM.setStyleAttribute(pnlContent.getElement(), "padding", "20px"); Element elemBrandImg = DOM.createElement("img"); elemBrandImg.setAttribute("border", "0"); elemBrandImg.setAttribute("src", "images/CCNewLogo.jpg"); elemBrandImg.setAttribute("width", "250"); elemBrandImg.setAttribute("height", "36"); HTMLPanel pnlBrand = new HTMLPanel(DOM.toString(elemBrandImg)); DOM.setStyleAttribute(pnlBrand.getElement(), "marginBottom", "20px"); frmLookup.getElement().setId("commentForm"); frmLookup.setStyleName("cmxform"); frmLookup.setAction(""); FlowPanel pnlSectionOne = new FlowPanel(); pnlContent.add(pnlBrand); Element elemFieldset = DOM.createElement("fieldset"); Element elemLegend = DOM.createElement("legend"); elemLegend .setInnerText("A simple comment form with submit validation and default messages"); elemFieldset.appendChild(elemLegend); Element elemParaName = DOM.createElement("p"); Element elemLabelName = DOM.createElement("label"); elemLabelName.setAttribute("for", "cname"); elemLabelName.setInnerText("Name"); Element elemEmName = DOM.createElement("em"); elemEmName.setInnerText("*"); TextBox txtName = new TextBox(); txtName.setName("name"); txtName.getElement().setId("cname"); txtName.getElement().setAttribute("size", "25"); txtName.getElement().setAttribute("class", "required"); txtName.getElement().setAttribute("minlength", "2"); elemParaName.appendChild(elemLabelName); elemParaName.appendChild(elemEmName); elemParaName.appendChild(txtName.getElement()); elemFieldset.appendChild(elemParaName); Element elemParaEmail = DOM.createElement("p"); Element elemLabelEmail = DOM.createElement("label"); elemLabelEmail.setAttribute("for", "cemail"); elemLabelEmail.setInnerText("E-Mail"); Element elemEmEmail = DOM.createElement("em"); elemEmEmail.setInnerText("*"); TextBox txtEmail = new TextBox(); txtEmail.setName("email"); txtEmail.getElement().setId("cemail"); txtEmail.getElement().setAttribute("size", "25"); txtEmail.getElement().setAttribute("class", "required email"); elemParaEmail.appendChild(elemLabelEmail); elemParaEmail.appendChild(elemEmEmail); elemParaEmail.appendChild(txtEmail.getElement()); elemFieldset.appendChild(elemParaEmail); Element elemParaURL = DOM.createElement("p"); Element elemLabelURL = DOM.createElement("label"); elemLabelURL.setAttribute("for", "curl"); elemLabelURL.setInnerText("URL"); Element elemEmURL = DOM.createElement("em"); elemEmURL.setInnerHTML(" "); TextBox txtURL = new TextBox(); txtURL.setName("url"); txtURL.getElement().setId("curl"); txtURL.getElement().setAttribute("size", "25"); txtURL.getElement().setAttribute("class", "url"); elemParaURL.appendChild(elemEmURL); elemParaURL.appendChild(elemLabelURL); elemParaURL.appendChild(txtURL.getElement()); elemFieldset.appendChild(elemParaURL); Element elemParaComments = DOM.createElement("p"); Element elemLabelComments = DOM.createElement("label"); elemLabelComments.setAttribute("for", "ccomments"); elemLabelComments.setInnerText("Your comment"); Element elemEmComments = DOM.createElement("em"); elemEmComments.setInnerText("*"); TextArea txtCommen
Re: GWT RPC Hibernate - again and again
Would you have some sample code that I could see ... or a link to some. I'm going to continue looking through my book, and use their example that uses the Command Pattern. I am getting tons of errors because my DAO's and POJO's are in another package, so I was working with GWT Modules to try and make that work. I finally gave that up and tried to move that code closer to the Client directory ... and there a still a ton of errors. The most bothersome was in my UserDaoImpl where I have a "getHibernateTemplate" method, and it says that the source code isn't there. So ... it is driving me crazy ... Thanks! Tom On Sep 8, 4:04 pm, David Durham wrote: > > After research in this group, and on Google in general, I have found > > that I should look at Gilead. > > So, I downloaded the latest jars and the latest sample (using GWT 1.6) > > and sure enough, AGAIN, the sample uses hibernate.cfg.xml and > > Object.hbm.xml files > > I was able to make GWT and Hiberate (JPA annotations) work without > Gilead. I just used the underlying beanlib replicators to undo the > cglib or javassist stuff before serializing to client. > > -Dave --~--~-~--~~~---~--~~ 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: Making a widget as big as possible (but no bigger!)
I think the main requirement (that often get missed) is that the parent element must have a width and height set. Nathan Wells On Tue, Sep 8, 2009 at 10:58 AM, David Given wrote: > > Nathan Wells wrote: > > I realize this example is rather naive, but I think we can use it as a > > starting point: > > > > http://nathanwells.net/work/cssTest.html > > > > Is that basically what you're looking for? I tested it in IE 8, 7 (via > > compatibility mode), Firefox, and Chrome. Everything looks fine to me. > > Again, for IE 6, some hacking may be necessary. > > Hmm. Very interesting. You're specifying both left: and right:. I tried > that, it didn't work, I checked the CSS spec, and saw that it wasn't > supposed to work, etc. > > Now I go back to the CSS spec to discover why your example works and > discover I misread it. I hate the CSS spec; it is second only to the > Javascript spec for sheer obscurity. > > That still doesn't explain why it didn't work for me. Possibly just a > mistake on my part, or possibly a rendering error in the hosted browser, > which has exceedingly dodgy rendering in places. > > I'll do some playing when I get home. Thanks. > > -- > ┌─── dg@cowlark.com ─ http://www.cowlark.com ─ > │ > │ "They laughed at Newton. They laughed at Einstein. Of course, they > │ also laughed at Bozo the Clown." --- Carl Sagan > > > > --~--~-~--~~~---~--~~ 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: GWT RPC Hibernate - again and again
> After research in this group, and on Google in general, I have found > that I should look at Gilead. > So, I downloaded the latest jars and the latest sample (using GWT 1.6) > and sure enough, AGAIN, the sample uses hibernate.cfg.xml and > Object.hbm.xml files I was able to make GWT and Hiberate (JPA annotations) work without Gilead. I just used the underlying beanlib replicators to undo the cglib or javassist stuff before serializing to client. -Dave --~--~-~--~~~---~--~~ 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: Chrome like tab behaviour possible using GWT?
Perhaps you could describe what features of the tabs in Chrome you wish to reproduce. On Tue, Sep 8, 2009 at 3:19 PM, myapplicationquestions wrote: > > yes. but i could not get the chrome like tabs using tab or decorated > tab panels.. > > On Sep 8, 11:54 am, Isaac Truett wrote: >> Are you aware of the TabPanel class? >> >> http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/g... >> >> On Tue, Sep 8, 2009 at 11:39 AM, >> >> myapplicationquestions wrote: >> >> > Chrome like tab behaviour possible using GWT? I like chrome browser >> > tabs and want tp have the same kind of tabs for my application, has >> > anyone tried that using GWT or one of its extensions? > > > --~--~-~--~~~---~--~~ 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: Migration from 1.5 to 1.6 and 1.7
I am getting this as well. I never had Xerces in my project, but attempted to add it to fix this problem to no avail. Is there any resolution here? On Aug 21, 12:59 pm, Sumit Chandel wrote: > Hi Erik, > Are you using XercesImpl classes in your actual application code? If not, > try removing it from your project and hosted mode launch configuration > classpath and see if the error still occurs. You mentioned that you tried > adding it, which suggests that it wasn't present the first time it occurred. > In such a case, this may be an issue with GWT in that XercesImpl classes are > bundled and property files that Xerces depends on may have different values, > or it could also be an issue with the Apache module you're using if it uses > Xerces and also defines different property files. > > In any case, please let me know the scenarios under which you reproduced > this issue to follow-up from there. > > Cheers, > -Sumit Chandel > > > > On Tue, Aug 18, 2009 at 5:12 AM, erikhedb wrote: > > > Hello, > > > I am trying to migrate from GWT 1.5 on Mac to 1.7 and keep running > > into this error when stating hosted mode. I also switched to 1.6 and > > the same error occurs there. I did try to add xercesImpl.jar but the > > problem is still there. > > > Any clues to what is going on? > > > Thanx > > /Erik Hedblom > > > [WARN] Error deploying web application directory ROOT > > javax.xml.parsers.FactoryConfigurationError: Provider > > org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found > > at javax.xml.parsers.DocumentBuilderFactory.newInstance > > (DocumentBuilderFactory.java:104) > > at org.apache.commons.modeler.util.DomUtil.readXml(DomUtil.java:284) > > at > > org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.execute > > (MbeansDescriptorsDOMSource.java:130) > > at > > > org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.loadDescripto > > rs > > (MbeansDescriptorsDOMSource.java:120) > > at org.apache.commons.modeler.Registry.load(Registry.java:819) > > at > > org.apache.commons.modeler.Registry.loadDescriptors(Registry.java: > > 931) --~--~-~--~~~---~--~~ 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: Chrome like tab behaviour possible using GWT?
yes. but i could not get the chrome like tabs using tab or decorated tab panels.. On Sep 8, 11:54 am, Isaac Truett wrote: > Are you aware of the TabPanel class? > > http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/g... > > On Tue, Sep 8, 2009 at 11:39 AM, > > myapplicationquestions wrote: > > > Chrome like tab behaviour possible using GWT? I like chrome browser > > tabs and want tp have the same kind of tabs for my application, has > > anyone tried that using GWT or one of its extensions? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
FlowPanel
Hi all, I'm trying to add a verticalPanels to the flowPanel, but the flowpanel listed them vertically only, How I can list them horizontally? 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 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: Listen for click on VerticalPanel?
Hi, Just extend VerticalPanel and implement the HasClickHandlers interface with this widget. I hope this helps. bye! 2009/9/8 markww > > Hi, > > Is it possible to listen for a click event on a VerticalPanel? I don't > see any methods like addClickHandler() for it? > > Thanks > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Listen for click on VerticalPanel?
Hi, Is it possible to listen for a click event on a VerticalPanel? I don't see any methods like addClickHandler() for it? Thanks --~--~-~--~~~---~--~~ 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: Does GWT work in Snow Leopard?
Code 18 !! I forgot to change compiler compliance level for my project. Regards, Christian On Tue, Sep 8, 2009 at 2:21 PM, Christian Goudreau < goudreau.christ...@gmail.com> wrote: > I followed those instruction too, I don't get the message anymore, but > hosted mode opens for like 2 second and close without any error. > > Christian > > > On Mon, Sep 7, 2009 at 4:12 PM, javacup wrote: > >> >> Hi All, >> >> I followed the instructions from this page >> >> http://wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard >> >> but still I get >> >> You must use a Java 1.5 runtime to use GWT Hosted Mode on Mac OS X. >> >> >> I see some of you added hacks into the boot strap class. Does google >> view this seriously and try to release a patch ASAP? >> >> Thanks >> >> On Sep 3, 7:05 am, Alex Moffat wrote: >> > I have another work around that involves changing the >> > BootStrapPlatform class in gwt-dev-mac.jar to remove the check for >> > java 1.5. If you do this then you can use java 1.6 with the -d32 flag >> > and it works fine. More details athttp:// >> development.lombardi.com/?p=1012 >> > >> > On Aug 31, 6:35 pm, Jim Douglas wrote: >> > >> > >> > >> > > Hi Sumit, >> > >> > > That "workaround" is really not acceptable. Because Apple considers >> > > the JVM to be part of the operating system, messing in those >> > > directories amounts to hacking the O/S. It's unsafe, unsupported, and >> > > can -- and probably will -- arbitrarily drop dead at any time with an >> > > O/S update. >> > >> > > I could easily be missing something important, but it seems like this >> > > should be a fairly easy thing for you to patch. My understanding is >> > > that the issue with GWT is that you need a 32-bit JVM, and in Mac OS X >> > > Leopard, the only way to get a 32-bit JVM is to use Java 5; the >> > > Leopard Java 6 is 64-bit-only. But in Snow Leopard, you can invoke >> > > Java 6 with "java -d32 ...", and you will get a 32-bit JVM. Wouldn't >> > > this work for GWT hosted mode? >> > >> > > Regards, >> > > Jim. >> > >> > > On Aug 31, 3:58 pm, Sumit Chandel wrote: >> > >> > > > Hi all, >> > > > Hosted mode will be getting an exciting makeover soon, in the form >> of >> > > > Out-Of-Process Hosted Mode (OOPHM). With OOPHM, hosted mode runs as >> a plugin >> > > > to your favourite browser so that you can debug with the browser >> most >> > > > familiar to you using whichever other debugging tools it offers >> while at the >> > > > same time debugging your GWT code in hosted mode as you do now. >> > >> > > > OOPHM is currently available in GWT trunk for those who want to give >> it a >> > > > try (instructions linked below). >> > >> > > > That said, OOPHM solves the problem of requiring 32-bit libraries >> that >> > > > exists in other Mac builds where switching out to Java 1.5 was >> necessary. >> > > > That means that OOPHM will also work perfectly well for Snow >> Leopard, or any >> > > > other platform using any Java libraries, 32-bit or not. >> > >> > > > Hopefully the workaround Dean linked to above will get you up and >> running >> > > > until OOPHM comes out in the next major release. If that workaround >> doesn't >> > > > work, please feel free to reply back and let us know. >> > >> > > > Using OOPHM from trunk: >> http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM >> > >> > > > Hope that helps, >> > > > -Sumit Chandel >> > >> > > > On Mon, Aug 31, 2009 at 11:35 AM, mdwarne >> wrote: >> > >> > > > > Hi, >> > > > > After watching a bunch of Googles GWT videos, and seminar >> speeches, I >> > > > > noticed some of the presenters are using Macbooks. >> > > > > I have to believe they are well aware of this issue. >> > > > > Mike. >> > >> > > > > On Aug 31, 4:04 am, Michael Shantzis >> wrote: >> > > > > > The question I have is how high it is on google's list to >> release a >> > > > > > version of GWT that runs on snow leopard without any >> modifications. >> > > > > > I'm working in an environment where I'm testing jboss (which >> requires >> > > > > > java 1.6) and have had to jump through hoops to get my server >> running >> > > > > > 1.6 and my GWT client running 1.5. >> > >> > > > > > I'm sure they're already aware of this and it's certainly the >> case >> > > > > > that all the pieces are out there for them. >> > >> > > > > > I'm patiently waiting!!! >> > >> > > > > > On Aug 29, 9:21 pm, James >> wrote: >> > >> > > > > > > Hi... I just wanted to add that along with the suggestions on: >> > >> > > > > > >http://wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard >> > >> > > > > > > I had to rename the "CurrentJDK" symbolic link in >> > >> > > > > > > /System/Library/Frameworks/JavaVM.framework/Versions/ >> > >> > > > > > > from 1.6.0 to the (newly added) 1.5.0 because it appears that >> ant was >> > > > > > > looking at the "CurrentJDK" for its version not the env. >> >> >> >> > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G
GWT RPC Hibernate - again and again
I am going to keep asking and keep bugging and jumping up and down until I get an answer that can help me. I have the book "Pro Web 2.0 Application Development with GWT" and Chapter 6 is about saving work with Hibernate to the database ... too bad it expects a hibernate.cfg.xml file and Object.hbm.xml files, we have neither. We have Spring 2.5.6 Beans and use Hibernate-Annotations. The DAO's and POJO's all work, that is something we did ahead of time. After research in this group, and on Google in general, I have found that I should look at Gilead. So, I downloaded the latest jars and the latest sample (using GWT 1.6) and sure enough, AGAIN, the sample uses hibernate.cfg.xml and Object.hbm.xml files Maybe I just need to tweak that sample and get rid of the hibernate.cfg.xml and hbm.xml files ... Maybe I should just change them use use HIbernate-Annotations? I'll test this out and see if it works. If anyone can let me know if this will work, or if there is a better way, that would be great. Thanks! Tom --~--~-~--~~~---~--~~ 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: Does GWT work in Snow Leopard?
I followed those instruction too, I don't get the message anymore, but hosted mode opens for like 2 second and close without any error. Christian On Mon, Sep 7, 2009 at 4:12 PM, javacup wrote: > > Hi All, > > I followed the instructions from this page > > http://wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard > > but still I get > > You must use a Java 1.5 runtime to use GWT Hosted Mode on Mac OS X. > > > I see some of you added hacks into the boot strap class. Does google > view this seriously and try to release a patch ASAP? > > Thanks > > On Sep 3, 7:05 am, Alex Moffat wrote: > > I have another work around that involves changing the > > BootStrapPlatform class in gwt-dev-mac.jar to remove the check for > > java 1.5. If you do this then you can use java 1.6 with the -d32 flag > > and it works fine. More details athttp:// > development.lombardi.com/?p=1012 > > > > On Aug 31, 6:35 pm, Jim Douglas wrote: > > > > > > > > > Hi Sumit, > > > > > That "workaround" is really not acceptable. Because Apple considers > > > the JVM to be part of the operating system, messing in those > > > directories amounts to hacking the O/S. It's unsafe, unsupported, and > > > can -- and probably will -- arbitrarily drop dead at any time with an > > > O/S update. > > > > > I could easily be missing something important, but it seems like this > > > should be a fairly easy thing for you to patch. My understanding is > > > that the issue with GWT is that you need a 32-bit JVM, and in Mac OS X > > > Leopard, the only way to get a 32-bit JVM is to use Java 5; the > > > Leopard Java 6 is 64-bit-only. But in Snow Leopard, you can invoke > > > Java 6 with "java -d32 ...", and you will get a 32-bit JVM. Wouldn't > > > this work for GWT hosted mode? > > > > > Regards, > > > Jim. > > > > > On Aug 31, 3:58 pm, Sumit Chandel wrote: > > > > > > Hi all, > > > > Hosted mode will be getting an exciting makeover soon, in the form of > > > > Out-Of-Process Hosted Mode (OOPHM). With OOPHM, hosted mode runs as a > plugin > > > > to your favourite browser so that you can debug with the browser most > > > > familiar to you using whichever other debugging tools it offers while > at the > > > > same time debugging your GWT code in hosted mode as you do now. > > > > > > OOPHM is currently available in GWT trunk for those who want to give > it a > > > > try (instructions linked below). > > > > > > That said, OOPHM solves the problem of requiring 32-bit libraries > that > > > > exists in other Mac builds where switching out to Java 1.5 was > necessary. > > > > That means that OOPHM will also work perfectly well for Snow Leopard, > or any > > > > other platform using any Java libraries, 32-bit or not. > > > > > > Hopefully the workaround Dean linked to above will get you up and > running > > > > until OOPHM comes out in the next major release. If that workaround > doesn't > > > > work, please feel free to reply back and let us know. > > > > > > Using OOPHM from trunk: > http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM > > > > > > Hope that helps, > > > > -Sumit Chandel > > > > > > On Mon, Aug 31, 2009 at 11:35 AM, mdwarne > wrote: > > > > > > > Hi, > > > > > After watching a bunch of Googles GWT videos, and seminar speeches, > I > > > > > noticed some of the presenters are using Macbooks. > > > > > I have to believe they are well aware of this issue. > > > > > Mike. > > > > > > > On Aug 31, 4:04 am, Michael Shantzis wrote: > > > > > > The question I have is how high it is on google's list to release > a > > > > > > version of GWT that runs on snow leopard without any > modifications. > > > > > > I'm working in an environment where I'm testing jboss (which > requires > > > > > > java 1.6) and have had to jump through hoops to get my server > running > > > > > > 1.6 and my GWT client running 1.5. > > > > > > > > I'm sure they're already aware of this and it's certainly the > case > > > > > > that all the pieces are out there for them. > > > > > > > > I'm patiently waiting!!! > > > > > > > > On Aug 29, 9:21 pm, James wrote: > > > > > > > > > Hi... I just wanted to add that along with the suggestions on: > > > > > > > > >http://wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard > > > > > > > > > I had to rename the "CurrentJDK" symbolic link in > > > > > > > > > /System/Library/Frameworks/JavaVM.framework/Versions/ > > > > > > > > > from 1.6.0 to the (newly added) 1.5.0 because it appears that > ant was > > > > > > > looking at the "CurrentJDK" for its version not the env. > > > > --~--~-~--~~~---~--~~ 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: Hosted mode Caching problem
Hi Frank, Thanks a lot its working now On Sep 8, 1:43 pm, Frank Argueta wrote: > Use > > final RequestBuilder builder2 = new RequestBuilder > (RequestBuilder.GET,"A.xml?ts=" + new Date().getTime()); > > to prevent the browser from picking up a cached copy. > > On Sep 8, 1:29 pm, Rahul wrote: > > > Hi, > > Yes I am using the war structure > > Let us assume my xml file name is A.xml and my google web toolkit name > > is test > > > I store my A.xml inside test\war\test folder > > > This is the code at the client side i used to invoke A.xml > > > final RequestBuilder builder2 = new RequestBuilder > > (RequestBuilder.GET,"A.xml"); > > try > > { > > Request request2 = > > builder2.sendRequest(null, new > > RequestCallback() > > { > > public void > > onError(Request request2 , Throwable exceptopn) { > > > } > > public void > > onResponseReceived(Request request2, Response > > response2) > > { > > > > > Document xmlDoc11 = XMLParser.parse(response2.getText()); > > > // After this i parse xmlDoc11 to > > check attributes and tags and > > display the contents > > > If I delete A.xml from the folder i get an error "Uncaught exception > > escaped" because there is no file in the folder. If i paste the file i > > still get the old value the one was in the beginning. If i copy the > > contents of A.xml to B.xml and then run it (changing the > > Requestbuilder to A.xml to B.xml) I see in my hosted mode that the > > file is get from the server (because its the first time and not > > cached) and then i see the change in the values > > > Thanks for helping me, if theres any more information you require > > please tell. > > Can you give me a solution for my problem? > > > On Sep 8, 1:00 pm, ThomasWrobel wrote: > > > > Sorry, I didnt read your problem correctly. > > > Thats really bizarre. > > > Are you using the war structure? or the old one? > > > Have you tried deleteing the files before it compiles? > > > > On Sep 8, 6:21 pm, Rahul wrote: > > > > > Hi, > > > > Thanks for the reply > > > > I believe( i havent tired it yet) with this i would be able to have no > > > > caching when i deploy my application on the web server(Apache tomcat) > > > > > What about when i am developing my application and testing in the > > > > google webtoolkit hosted mode? > > > > > On Sep 6, 12:01 pm, ThomasWrobel wrote: > > > > > > Have you tried using a .htaccess file on the sever to force no- > > > > > cacheing? > > > > > > > > > > > Header set Cache-Control: "private, pre-check=0, post-check=0, max- > > > > > age=0" > > > > > Header set Expires: 0 > > > > > Header set Pragma: no-cache > > > > > > > > > > > (If you save this to a *.htaccess file this will set everything in > > > > > the directory not to be cached) > > > > > Assumeing your sever is apache. > > > > > > On Sep 4, 5:02 pm, Rahul wrote: > > > > > > > Hi, > > > > > > I am reading an file A.xml each time and modifying it and saving it > > > > > > on > > > > > > my server. Now how can the browser or the hosted mode that the file > > > > > > has been changed, because whenever it sees that the name of the file > > > > > > is same i.e. A.xml it never gets from the server, it just shows the > > > > > > content in it local cache which are the old values. > > > > > > > I believe its a cache problem, as the browser never gets A.xml the > > > > > > next time because when seen in the other window of hosted mode, i > > > > > > see > > > > > > that the first time there is a 200 - GET operation which is that the > > > > > > file is send from server to client but the second or the third time, > > > > > > not such GET operation is done > > > > > > > I hope i was clear with my problem statement, if not please ask so i > > > > > > can more elaborate. --~--~-~--~~~---~--~~ 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: Running hosted mode + weblogic
Hi, The "www" directory has been replaced with the "war" directory. It should be located as a peer of your "src" directory. If you're using the Google Plugin for Eclipse, your directory must be named "war". Otherwise, you can specify the location of the "war" directory via the -war argument. Rajeev Are you using the Google Plugin for Eclipse? If so, then On Fri, Sep 4, 2009 at 1:13 PM, ToddP wrote: > > We just upgraded from GWT 1.5.3 to 1.7. > > In Eclipse's debugger, we used to have a "Program arguments:" of "- > out target/www http://localhost:7001/mysite"; in the Debugger's > configuration. This allowed the app to run on WebLogic until it hit > the GWT modules. > > GWT 1.7 eliminated the "-out" parm. What is the configuration to > allow what we had in 1.5.3 to occur in 1.7? > > TIA > > > --~--~-~--~~~---~--~~ 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: Hosted mode Caching problem
Use final RequestBuilder builder2 = new RequestBuilder (RequestBuilder.GET,"A.xml?ts=" + new Date().getTime()); to prevent the browser from picking up a cached copy. On Sep 8, 1:29 pm, Rahul wrote: > Hi, > Yes I am using the war structure > Let us assume my xml file name is A.xml and my google web toolkit name > is test > > I store my A.xml inside test\war\test folder > > This is the code at the client side i used to invoke A.xml > > final RequestBuilder builder2 = new RequestBuilder > (RequestBuilder.GET,"A.xml"); > try > { > Request request2 = > builder2.sendRequest(null, new > RequestCallback() > { > public void > onError(Request request2 , Throwable exceptopn) { > > } > public void > onResponseReceived(Request request2, Response > response2) > { > > > Document xmlDoc11 = XMLParser.parse(response2.getText()); > > // After this i parse xmlDoc11 to > check attributes and tags and > display the contents > > If I delete A.xml from the folder i get an error "Uncaught exception > escaped" because there is no file in the folder. If i paste the file i > still get the old value the one was in the beginning. If i copy the > contents of A.xml to B.xml and then run it (changing the > Requestbuilder to A.xml to B.xml) I see in my hosted mode that the > file is get from the server (because its the first time and not > cached) and then i see the change in the values > > Thanks for helping me, if theres any more information you require > please tell. > Can you give me a solution for my problem? > > On Sep 8, 1:00 pm, ThomasWrobel wrote: > > > > > Sorry, I didnt read your problem correctly. > > Thats really bizarre. > > Are you using the war structure? or the old one? > > Have you tried deleteing the files before it compiles? > > > On Sep 8, 6:21 pm, Rahul wrote: > > > > Hi, > > > Thanks for the reply > > > I believe( i havent tired it yet) with this i would be able to have no > > > caching when i deploy my application on the web server(Apache tomcat) > > > > What about when i am developing my application and testing in the > > > google webtoolkit hosted mode? > > > > On Sep 6, 12:01 pm, ThomasWrobel wrote: > > > > > Have you tried using a .htaccess file on the sever to force no- > > > > cacheing? > > > > > > > > > Header set Cache-Control: "private, pre-check=0, post-check=0, max- > > > > age=0" > > > > Header set Expires: 0 > > > > Header set Pragma: no-cache > > > > > > > > > (If you save this to a *.htaccess file this will set everything in > > > > the directory not to be cached) > > > > Assumeing your sever is apache. > > > > > On Sep 4, 5:02 pm, Rahul wrote: > > > > > > Hi, > > > > > I am reading an file A.xml each time and modifying it and saving it on > > > > > my server. Now how can the browser or the hosted mode that the file > > > > > has been changed, because whenever it sees that the name of the file > > > > > is same i.e. A.xml it never gets from the server, it just shows the > > > > > content in it local cache which are the old values. > > > > > > I believe its a cache problem, as the browser never gets A.xml the > > > > > next time because when seen in the other window of hosted mode, i see > > > > > that the first time there is a 200 - GET operation which is that the > > > > > file is send from server to client but the second or the third time, > > > > > not such GET operation is done > > > > > > I hope i was clear with my problem statement, if not please ask so i > > > > > can more elaborate. --~--~-~--~~~---~--~~ 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: Hosted mode Caching problem
Hi, Yes I am using the war structure Let us assume my xml file name is A.xml and my google web toolkit name is test I store my A.xml inside test\war\test folder This is the code at the client side i used to invoke A.xml final RequestBuilder builder2 = new RequestBuilder (RequestBuilder.GET,"A.xml"); try { Request request2 = builder2.sendRequest(null, new RequestCallback() { public void onError(Request request2 , Throwable exceptopn) { } public void onResponseReceived(Request request2, Response response2) { DocumentxmlDoc11 = XMLParser.parse(response2.getText()); // After this i parse xmlDoc11 to check attributes and tags and display the contents If I delete A.xml from the folder i get an error "Uncaught exception escaped" because there is no file in the folder. If i paste the file i still get the old value the one was in the beginning. If i copy the contents of A.xml to B.xml and then run it (changing the Requestbuilder to A.xml to B.xml) I see in my hosted mode that the file is get from the server (because its the first time and not cached) and then i see the change in the values Thanks for helping me, if theres any more information you require please tell. Can you give me a solution for my problem? On Sep 8, 1:00 pm, ThomasWrobel wrote: > Sorry, I didnt read your problem correctly. > Thats really bizarre. > Are you using the war structure? or the old one? > Have you tried deleteing the files before it compiles? > > On Sep 8, 6:21 pm, Rahul wrote: > > > Hi, > > Thanks for the reply > > I believe( i havent tired it yet) with this i would be able to have no > > caching when i deploy my application on the web server(Apache tomcat) > > > What about when i am developing my application and testing in the > > google webtoolkit hosted mode? > > > On Sep 6, 12:01 pm, ThomasWrobel wrote: > > > > Have you tried using a .htaccess file on the sever to force no- > > > cacheing? > > > > > > > Header set Cache-Control: "private, pre-check=0, post-check=0, max- > > > age=0" > > > Header set Expires: 0 > > > Header set Pragma: no-cache > > > > > > > (If you save this to a *.htaccess file this will set everything in > > > the directory not to be cached) > > > Assumeing your sever is apache. > > > > On Sep 4, 5:02 pm, Rahul wrote: > > > > > Hi, > > > > I am reading an file A.xml each time and modifying it and saving it on > > > > my server. Now how can the browser or the hosted mode that the file > > > > has been changed, because whenever it sees that the name of the file > > > > is same i.e. A.xml it never gets from the server, it just shows the > > > > content in it local cache which are the old values. > > > > > I believe its a cache problem, as the browser never gets A.xml the > > > > next time because when seen in the other window of hosted mode, i see > > > > that the first time there is a 200 - GET operation which is that the > > > > file is send from server to client but the second or the third time, > > > > not such GET operation is done > > > > > I hope i was clear with my problem statement, if not please ask so i > > > > can more elaborate. --~--~-~--~~~---~--~~ 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: Hosted mode Caching problem
Sorry, I didnt read your problem correctly. Thats really bizarre. Are you using the war structure? or the old one? Have you tried deleteing the files before it compiles? On Sep 8, 6:21 pm, Rahul wrote: > Hi, > Thanks for the reply > I believe( i havent tired it yet) with this i would be able to have no > caching when i deploy my application on the web server(Apache tomcat) > > What about when i am developing my application and testing in the > google webtoolkit hosted mode? > > On Sep 6, 12:01 pm, ThomasWrobel wrote: > > > > > Have you tried using a .htaccess file on the sever to force no- > > cacheing? > > > > > Header set Cache-Control: "private, pre-check=0, post-check=0, max- > > age=0" > > Header set Expires: 0 > > Header set Pragma: no-cache > > > > > (If you save this to a *.htaccess file this will set everything in > > the directory not to be cached) > > Assumeing your sever is apache. > > > On Sep 4, 5:02 pm, Rahul wrote: > > > > Hi, > > > I am reading an file A.xml each time and modifying it and saving it on > > > my server. Now how can the browser or the hosted mode that the file > > > has been changed, because whenever it sees that the name of the file > > > is same i.e. A.xml it never gets from the server, it just shows the > > > content in it local cache which are the old values. > > > > I believe its a cache problem, as the browser never gets A.xml the > > > next time because when seen in the other window of hosted mode, i see > > > that the first time there is a 200 - GET operation which is that the > > > file is send from server to client but the second or the third time, > > > not such GET operation is done > > > > I hope i was clear with my problem statement, if not please ask so i > > > can more elaborate. --~--~-~--~~~---~--~~ 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: Making a widget as big as possible (but no bigger!)
Nathan Wells wrote: > I realize this example is rather naive, but I think we can use it as a > starting point: > > http://nathanwells.net/work/cssTest.html > > Is that basically what you're looking for? I tested it in IE 8, 7 (via > compatibility mode), Firefox, and Chrome. Everything looks fine to me. > Again, for IE 6, some hacking may be necessary. Hmm. Very interesting. You're specifying both left: and right:. I tried that, it didn't work, I checked the CSS spec, and saw that it wasn't supposed to work, etc. Now I go back to the CSS spec to discover why your example works and discover I misread it. I hate the CSS spec; it is second only to the Javascript spec for sheer obscurity. That still doesn't explain why it didn't work for me. Possibly just a mistake on my part, or possibly a rendering error in the hosted browser, which has exceedingly dodgy rendering in places. I'll do some playing when I get home. Thanks. -- ┌─── dg@cowlark.com ─ http://www.cowlark.com ─ │ │ "They laughed at Newton. They laughed at Einstein. Of course, they │ also laughed at Bozo the Clown." --- Carl Sagan --~--~-~--~~~---~--~~ 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: seo and google web toolkit
On Tue, Sep 8, 2009 at 10:45 AM, Alexander Cherednichenko wrote: > > I am not expert, though i have some recommendations. > > 1. Don't even try to generate _really_ different content for searchbot > and for the end-user. Sometimes googles sends request with 'normal' > user-agent, and if you have different content for users and bots, > you'll be banned (because of cloacking :) ) > Though, there are some ways to do so, > Though, not sure /me has enough time to work with google customer > support to clear this issue (if they have customer support, have never > heard of it:) ) > > 2. You may try create normal static application with unique URS, and > just wrap some page elements with javascript to provide rich > functionality. UIBinder is of new stuff. > > 3. You may try searhcing here (in this group) for such problems. > People resolve it in different ways. I've heard of interesting way - > generating html content by HTMLUnit and feeding it to the bot. Simply > - if your application sees it is a bot, it runs gwt (javascript) code > in headless browser on the serverside, and flushes momental DOM > snapshot to the response. > > 4. Look here - > http://lexaux.blogspot.com/2009/03/afraid-of-being-banned-by-google-for.html > I was going to make a little demo some time ago, but had no time to > complete it :( sorry. Though, there may still be some interesting > facts. @all: thanks for the ideas. htmlunit is a really cool idea. however, i am not sure if it will fail with adsense and related concepts. so my solution is roughly like this: - generate regular html output - enrich / regroup html output via gwt so - there is no double content (i hope at least). google is happy, because parsing my page is really simple. and the user is happy - because he can use nice web 2.0 goodies. ok. this breaks some things of the gwt (i was hoping that i can forget almost everything about html and css and cross browser compatability issues), but it works. btw. in my opinion, google should run a 1sec htmlunit against my webpage, not me. but - ok takes way more CPU and the result is not predictable (what is this funny js generating? so somehow i can understand google. however - that puts gwt applications in the same bucket as flash applications - a bucket called "not properly indexed by google". thanks again, r > > On Sep 7, 12:04 pm, Raphael André Bauer > wrote: >> hey everybody, >> >> as every friendly web inhabitant i want that google knows my website >> and people that are interested in my stuff can find it easily. >> however, as my first experiments suggest the google bot does not even >> try to analyze (execute) gwt code (a working test of my concept is at >> [1]). >> >> this can -- on the one hand -- be explained by the very nature of gwt >> - it is javascript - much like an application that should not be >> indexed by a search bot by nature. but -- on the other hand -- hey! it >> is so simple. execute the js, see if it generates a more or less >> stable DOM, parse the dom and you are done. and both is from google? >> seems that the GWT hits the same indexing hell flash did. >> >> ok. maybe i am wrong here. in my opinion it is really bad news that >> GWT stuff is not at all analyzed by the google search bot. >> >> to come up with a conclusion would involve to sacrifice a lot of GWT >> coolness. mainly because i have to generate a lot of HTML myself that >> can be analyzed by search robots. i also wrote about that at [2]. it >> is especially interesting how [3] did "solve" the "problem". >> >> do the experts have any recommendations? >> >> thanks! >> >> ra! >> [1]http://scisurfer.com/news >> [2]http://blog.scisurfer.com/2009/09/gwt-and-seo-concerns.html >> [3]http://examples.roughian.com > > > --~--~-~--~~~---~--~~ 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: How to get URL in GWT?
On 8 sep, 11:55, Vikas wrote: > For RPC communication, I need server IP address and port which is > specified in URL. > e.g. In 'http://10.4.6.131:8181/webClient.html'url 10.4.6.131 IP > address and 8181 port. > > How to get this IP and port in GWT? Window.Location.getHostName() and Window.Location.getPort() ? --~--~-~--~~~---~--~~ 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: How to fire events registered with a HandlerManager?
On 8 sep, 16:37, John V Denley wrote: > I sitll cant work out from the code in this article, how to fire an > event: > > final ListBox dropBox = new ListBox(false); > dropBox.addItem(""); > dropBox.addItem("a"); > dropBox.addItem("b"); > dropBox.addItem("c"); > dropBox.addItem("d"); > > dropBox.addChangeHandler(new ChangeHandler() > { > // �...@override > public void onChange(ChangeEvent event) > { > switch (dropBox.getSelectedIndex()) { > case 0: > ApptPrice.setText(""); > break; > case 1: > ApptPrice.setText("8.50"); > break; > case 2: > ApptPrice.setText("9.50"); > break; > case 3: > ApptPrice.setText("10.50"); > break; > case 4: > ApptPrice.setText("11.50"); > break; > default: > ApptPrice.setText("should never see > this"); > break; > > } > } > }); > dropBox.setItemSelected(setitemtoselect, true); > dropBox.fireEvent(onChange); > > Its this last line I want to implement, Im setting the selection > programattically (based on selections elsewhere in the code) and i > need to fire the onChange event because as stated in the javadoc: > "Note that setting the selection programmatically does not cause the > ChangeHandler.onChange(ChangeEvent) event to be fired. " Just keep a reference on your ChangeHandler and call its onChange method directly (you can pass 'null' as the argument as you don't use it): ChangeHandler handler = new ChangeHandler () { ... } dropBox.addChangeHandler(handler); dropBox.setItemSelected(setitemtoselect, true); handler.onChange(null); If you really, really can't do that, then you can actually fire a change event: DomEvent.fireNativeEvent(Document.get().createChangeEvent(), dropBox); --~--~-~--~~~---~--~~ 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: Hosted mode Caching problem
Hi, Thanks for the reply I believe( i havent tired it yet) with this i would be able to have no caching when i deploy my application on the web server(Apache tomcat) What about when i am developing my application and testing in the google webtoolkit hosted mode? On Sep 6, 12:01 pm, ThomasWrobel wrote: > Have you tried using a .htaccess file on the sever to force no- > cacheing? > > > Header set Cache-Control: "private, pre-check=0, post-check=0, max- > age=0" > Header set Expires: 0 > Header set Pragma: no-cache > > > (If you save this to a *.htaccess file this will set everything in > the directory not to be cached) > Assumeing your sever is apache. > > On Sep 4, 5:02 pm, Rahul wrote: > > > Hi, > > I am reading an file A.xml each time and modifying it and saving it on > > my server. Now how can the browser or the hosted mode that the file > > has been changed, because whenever it sees that the name of the file > > is same i.e. A.xml it never gets from the server, it just shows the > > content in it local cache which are the old values. > > > I believe its a cache problem, as the browser never gets A.xml the > > next time because when seen in the other window of hosted mode, i see > > that the first time there is a 200 - GET operation which is that the > > file is send from server to client but the second or the third time, > > not such GET operation is done > > > I hope i was clear with my problem statement, if not please ask so i > > can more elaborate. --~--~-~--~~~---~--~~ 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: How to exclude work module from the compile, when deploying to GAE ?
The deploy process will compile the set of entry point modules listed in the Google > Web Toolkit project property page. On Tue, Sep 8, 2009 at 3:35 AM, hjo1620 wrote: > > Our standard module file is: Myproject.gwt.xml > We have added an extra modulefile for fast compilation called: > MyprojectWork.gwt.xml > When deploying to GAE, it compiles both Myproject.gwt.xml and > MyprojectWork.gwt.xml. > > > How to exclude MyprojectWork.gwt.xml from the compile, when deploying > to GAE ? > > > > Regards, > hw > > Config: > GWT SDK 1.7.0 > Google Plugin for Eclipse 3.5 > GAE SDK 1.2.2 > > > > -- Miguel --~--~-~--~~~---~--~~ 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: RPC and MYSql interacting / complied code not working
Stephan, > Now to get this working I had to disable the "Google App Engine" (as > mentioned on this site forum), still not sure why but I can live with > this. You have to disable the App Engine portion of the Eclipse plugin because you aren't using App Engine. You *can* run GWT applications on App Engine, but in your specific case you have chosen (perhaps unconsciously) not to do so. > Now I compile the code, go to the WAR folder and run the HTML pages > and the connection to the MySQL DB fails and won't connect. You need to deploy your compiled application to an app server. See http://code.google.com/webtoolkit/doc/1.6/DevGuideDeploying.html - Isaac On Tue, Sep 8, 2009 at 9:19 AM, GumbyGWTBeginner wrote: > > Hi Guys, > > I know someone will now the answer to this one, for sure. > > I have a HTML page with 3 buttons. The buttons interact with a > Service etc to talk to a Server Side MySQL DB and retrieve data. > > Now to get this working I had to disable the "Google App Engine" (as > mentioned on this site forum), still not sure why but I can live with > this. > > All works fine while running the code Eclipse. > > Now I compile the code, go to the WAR folder and run the HTML pages > and the connection to the MySQL DB fails and won't connect. > (very similar to what happened when I had the Google App engine on) > > As anyone got any ideas as what is happening? > I am sure someone has figured this out or had the problem before. > > Any help would be greatly appreciated. > (Many thanks to anyone who trys to give me help, everyone here does a > great job at helping beginners) > > Stephan > > > --~--~-~--~~~---~--~~ 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: Announcing the Google Plugin for Eclipse 1.1.0
Oops, just realized the bug contains multiple workarounds. Look at the bottom of the bug for the proper workaround involving updating the ini file to point to the proper location of the missing jar. jason On Tue, Sep 8, 2009 at 11:28 AM, Jason Parekh wrote: > Hey Kirk, > Hmm, that's definitely a strange error. I searched around, and noticed > people running into this while updating other plugins too. > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=252425 has a solution that > may work for you. > > Thanks for reporting the issue. > > jason > > > On Fri, Sep 4, 2009 at 2:04 PM, Kirkalicious wrote: > >> >> I just updated my GWT plug-in for Eclipse (Galileo on OSX 10.6) and >> now Eclipse won't start: >> >> An error has occurred: >> See log . >> >> Log says: >> >> !SESSION Fri Sep 04 10:53:15 PDT 2009 >> --!ENTRY >> org.eclipse.equinox.launcher 4 0 2009-09-04 10:53:15.910 >> !MESSAGE Exception launching the Eclipse Platform: >> !STACK >> java.lang.ClassNotFoundException: >> org.eclipse.core.runtime.adaptor.EclipseStarter >>at java.net.URLClassLoader$1.run(URLClassLoader.java:200) >>at java.security.AccessController.doPrivileged(Native Method) >>at java.net.URLClassLoader.findClass(URLClassLoader.java:188) >>at java.lang.ClassLoader.loadClass(ClassLoader.java:319) >>at java.lang.ClassLoader.loadClass(ClassLoader.java:254) >>at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: >> 556) >>at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514) >>at org.eclipse.equinox.launcher.Main.run(Main.java:1311) >> >> Anyone else having this problem? >> >> -Kirk >> >> On Sep 3, 3:50 pm, NIgel Leck wrote: >> > Why no support for Netbeans ? This just seems to be a bit of a game to >> > force people to use one IDE over the other. >> >> >> >> > --~--~-~--~~~---~--~~ 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: Chrome like tab behaviour possible using GWT?
Are you aware of the TabPanel class? http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/TabPanel.html On Tue, Sep 8, 2009 at 11:39 AM, myapplicationquestions wrote: > > Chrome like tab behaviour possible using GWT? I like chrome browser > tabs and want tp have the same kind of tabs for my application, has > anyone tried that using GWT or one of its extensions? > > > --~--~-~--~~~---~--~~ 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: StackPanel
http://gwt.google.com/samples/Showcase/Showcase.html#CwStackPanel Check out the source code for that. That's how I learned to add the images into the StackPanel. Hope that helps. On Sep 8, 9:30 am, Parmeet Kohli wrote: > Hi All, > > I need help with adding an image to the header of a > StackPanel's child. > add(Widget w, java.lang.String stackText) does not work for > me as it only adds text to the header. Please help !!! > > Thanks, > Parmeet --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Chrome like tab behaviour possible using GWT?
Chrome like tab behaviour possible using GWT? I like chrome browser tabs and want tp have the same kind of tabs for my application, has anyone tried that using GWT or one of its extensions? --~--~-~--~~~---~--~~ 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: Plugin GWT 1.7 SDK "missing"
Hi Gary, Could you check your Eclipse log file (workspace/.metadata/.log) for anything mysterious? Or, if you send the log our way, we can take a look. Thanks, jason On Sun, Sep 6, 2009 at 4:34 AM, Gary S wrote: > > Sometimes, I think after running hosted mode, Eclipse loses its > reference to GWT classes. Java Buildpath says "missing" for the SDK. > When I go to Web Application and click through configure SDK the > problem goes away for a while. > > OS X 10.5 > Java 1.5 > GWT 1.7 > gwt-mvp (included gin) > > > --~--~-~--~~~---~--~~ 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: Announcing the Google Plugin for Eclipse 1.1.0
Hey Kirk, Hmm, that's definitely a strange error. I searched around, and noticed people running into this while updating other plugins too. https://bugs.eclipse.org/bugs/show_bug.cgi?id=252425 has a solution that may work for you. Thanks for reporting the issue. jason On Fri, Sep 4, 2009 at 2:04 PM, Kirkalicious wrote: > > I just updated my GWT plug-in for Eclipse (Galileo on OSX 10.6) and > now Eclipse won't start: > > An error has occurred: > See log . > > Log says: > > !SESSION Fri Sep 04 10:53:15 PDT 2009 > --!ENTRY > org.eclipse.equinox.launcher 4 0 2009-09-04 10:53:15.910 > !MESSAGE Exception launching the Eclipse Platform: > !STACK > java.lang.ClassNotFoundException: > org.eclipse.core.runtime.adaptor.EclipseStarter >at java.net.URLClassLoader$1.run(URLClassLoader.java:200) >at java.security.AccessController.doPrivileged(Native Method) >at java.net.URLClassLoader.findClass(URLClassLoader.java:188) >at java.lang.ClassLoader.loadClass(ClassLoader.java:319) >at java.lang.ClassLoader.loadClass(ClassLoader.java:254) >at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: > 556) >at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514) >at org.eclipse.equinox.launcher.Main.run(Main.java:1311) > > Anyone else having this problem? > > -Kirk > > On Sep 3, 3:50 pm, NIgel Leck wrote: > > Why no support for Netbeans ? This just seems to be a bit of a game to > > force people to use one IDE over the other. > > > > --~--~-~--~~~---~--~~ 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: GWT Maps API not loading
1) Have you tried running it with a Maps key installed as the error message suggests? 2) Are you on Windows? If so, have your IE cache/proxy/security settings changed recently? That sometimes gets in the way of the Google APIs requests. On Mon, Sep 7, 2009 at 6:50 PM, martind wrote: > > Hi all, > > I'm using: > - GWT 1.7.0 > - gwt-maps 1.0.4 > - GAE 1.2.5 > - Eclipse 3.5 with the Google plugin > - Sun JDK 1.0.6_16 > - linux (Fedora 11) > > A few weeks ago, I began a project using gwt-maps which worked fine. > But somehow it got broken recently. I get the following error in > hosted mode: > > [ERROR] Unable to load module entry point class test.client.Test (see > associated exception for details) > java.lang.RuntimeException: The Maps API has not been loaded. > Is a
can anyone explain how to use listBox.fireEvent
eclipse seems to prompt me to enter something like: listBox.fireEvent(GwtEvent event); but I have no idea what that means, and it doesnt like the ? is there any documentation on this anywhere, or am I just meant to instinctively know what this means and how to use it? PLEASE help me, ive just spend the last 3 hours trying to find an example i can learn from, but have found it impossible! Thanks, John --~--~-~--~~~---~--~~ 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: GWT application running in Firefox sidebar
Which window object should still refer to the browser window? Everything I have tested still only refers to the url of the in der the sidebar displayed site. On 8 Sep., 16:11, Chad wrote: > Gordon, > > My guess is that you'd have to use JSNI and the window object (not the > $wnd object). In GWT, for JSNI purposes, the $wnd object is set to the > GWT frame, but the window object should still refer to the main > browser window. > > HTH, > Chad > > On Sep 8, 6:38 am, Gordon wrote: > > > Hallo, > > > I have a problem. My application is running on a site, which is opened > > in the sidebar of my browser. Now I need the URL of the website, that > > is displayed in the browser. When I use "Window.Location", I only get > > the URL of my application in the sidebar. > > > I hope somebody can help me with my problem. > > --~--~-~--~~~---~--~~ 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: How to get URL in GWT?
I'd get it on the host page (in servlet env) and then accessed via local variable in client code. On Sep 8, 3:35 pm, Raphael André Bauer wrote: > On Tue, Sep 8, 2009 at 11:55 AM, Vikas wrote: > > > For RPC communication, I need server IP address and port which is > > specified in URL. > > e.g. In 'http://10.4.6.131:8181/webClient.html'url 10.4.6.131 IP > > address and 8181 port. > > > How to get this IP and port in GWT? > > this native function might help: > > public static native String getURL() /*-{ > return $wnd.location.href; > > }-*/; > > cheers, > r > > > > > Thanks in advance, > > Vikas --~--~-~--~~~---~--~~ 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: How to fire events registered with a HandlerManager?
I sitll cant work out from the code in this article, how to fire an event: final ListBox dropBox = new ListBox(false); dropBox.addItem(""); dropBox.addItem("a"); dropBox.addItem("b"); dropBox.addItem("c"); dropBox.addItem("d"); dropBox.addChangeHandler(new ChangeHandler() { // @Override public void onChange(ChangeEvent event) { switch (dropBox.getSelectedIndex()) { case 0: ApptPrice.setText(""); break; case 1: ApptPrice.setText("8.50"); break; case 2: ApptPrice.setText("9.50"); break; case 3: ApptPrice.setText("10.50"); break; case 4: ApptPrice.setText("11.50"); break; default: ApptPrice.setText("should never see this"); break; } } }); dropBox.setItemSelected(setitemtoselect, true); dropBox.fireEvent(onChange); Its this last line I want to implement, Im setting the selection programattically (based on selections elsewhere in the code) and i need to fire the onChange event because as stated in the javadoc: "Note that setting the selection programmatically does not cause the ChangeHandler.onChange(ChangeEvent) event to be fired. " On Aug 20, 5:45 pm, jscheller wrote: > Thanks Thomas... That and gazing wisely (or at least trying to give > the appearance of looking somewhat informed) at TextBoxBase.class got > me this... > > public class MyComposite extends Composite implements > HasValueChangeHandlers { > > private void internalMethodToHandleUpdates() { > // handle validation and all sorts of other stuff, then > if > // if it looks good let outsiders know... > > ValueChangeEvent.fire( this, "theNewValue" ); > } > > public HandlerRegistration addValueChangeHandler(ValueChangeHandler > handler) { > return addHandler(handler, ValueChangeEvent.getType()); > } > > } > > ..which looks like it should work. Still fuzzy on why the widget can't > manage an independent list of handlers under the hood, and the event > typing system still has me baffled, but this'll get me past the puzzle > box that kept me busy yesterday and seems less complex than what I was > doing... Thanks for your help! > > On Aug 20, 2:25 am, Thomas Broyer wrote: > > > On Aug 20, 2:33 am, jscheller wrote: > > > > Hello - > > > > So, I've got a composite that has something like this inside it... > > > > private HandlerManager changeHandlers = new HandlerManager( null ); > > > > public HandlerRegistration addValueChangeHandler(ValueChangeHandler > > > handler) > > > { return changeHandlers.addHandler(ValueChangeEvent.getType(), > > > handler); } > > > You shouldn't ever instantiate a HandlerManager (except if you use one > > as an "event bus"; but that's another story and at least this rule is > > true for widgets); just call the Widget#addHandler(...) method. > > > public HandlerRegistration addValueChangeHandler > > (ValueChangeHandler handler) { > > return addHandler(handler, ValueChangeEvent.getType()); > > > } > > > ...and somewhere down the pipeline, I want to actually fire off an > > > event to anyone who registered a handler when the composite decides > > > it's represented value has changed and wants the rest of the world to > > > know. However, the syntax for actually constructing and firing the > > > event off has got me pulling my hair out. > > > > I've tried variants of sending the event through the change > > > handlers... > > > > changeHandlers.fireEvent( new ValueChangeEvent("foo") ); > > > changeHandlers.fireEvent( new ValueChangeEvent("foo") ); > > > > ...and using the static fire() method in the event class itself... > > > > ValueChangeEvent.fire( changeHandlers, "foo"); > > > > ...and Eclipse complains loudly about all of these constructions. I > > > mean, I know this can't be that hard, but I can't find any good > > > examples of things like this using the new (GWT 1.6 or later) event > > > handlers, and reading the code sends me down a DOM event/Java generics > > > rabbit hole that I'm frankly not experienced enough to deal with > > > yet... > > > > Any help appreciated! > > > ValueChangeEvent.fire(this, "foo"); --~--~---
Re: Translate localised messages in GWT app
Hi. Did I understand you correct that you want to create a tool to easily translate apps? Like this user story: 1. User logs into the app. 2. All the strings which are not translated are red. 3. They are clickable. 4. Once clicked - user is presented editbox to enter text to 5. once entered - value is saved in code in properties file and editbox disappears. 6. On the next compilation, these strings are included to the compil If this is what you meant - no, I have not ever heard of such an intelligent tool. If someone knows something about such tool, I'm interested also. Alex. On Sep 8, 4:56 pm, Steven De Groote wrote: > Hi, > > we're looking for a way to enable users to change translations of a > currently running GWT application. We are currently using static > string i18n, but this has the disadvantage that we need to compile > each time again when there is a language correction. > > I have looked in the documentation, but I can't find a way to somehow > change these translated messages from a GWT webpage. > > Is this possible in any way? > > Thanks, > Steven --~--~-~--~~~---~--~~ 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: GWT application running in Firefox sidebar
Gordon, My guess is that you'd have to use JSNI and the window object (not the $wnd object). In GWT, for JSNI purposes, the $wnd object is set to the GWT frame, but the window object should still refer to the main browser window. HTH, Chad On Sep 8, 6:38 am, Gordon wrote: > Hallo, > > I have a problem. My application is running on a site, which is opened > in the sidebar of my browser. Now I need the URL of the website, that > is displayed in the browser. When I use "Window.Location", I only get > the URL of my application in the sidebar. > > I hope somebody can help me with my problem. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Translate localised messages in GWT app
Hi, we're looking for a way to enable users to change translations of a currently running GWT application. We are currently using static string i18n, but this has the disadvantage that we need to compile each time again when there is a language correction. I have looked in the documentation, but I can't find a way to somehow change these translated messages from a GWT webpage. Is this possible in any way? Thanks, Steven --~--~-~--~~~---~--~~ 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: History -- invalidating a page
1) Use the History mechanism (search the GWT docs or this forum for details) 2) Use something like this in your spring security config (withing your http tag, assuming you have one): or where you might also have this to enable the login page to be accessible: If you don't have a separate login page, then maybe you want to differentiate the login page with a history token or some query parameter so that the patter becomes something lilke "index.html? loginScreen=true". On Jul 22, 8:14 pm, John Ivens wrote: > I hope that this is an easy question for all of you. I apologize if this > has been answered before. > > I have set up security with LDAP and ACEGI, using jsp pages that are called > when requests are intercepted via ACEGI. It works great. Upon successful > login and determining that the user has the appropriate role, the gwt > application is entered. > > There are two problems I have, and I think that they are related. > > 1.) When you press the back button, you are left with the original state of > the page you first came to. So, tab pages have default values and all of > that. How do you keep that information when you go back in the browser? > > 2.) Once I logout the user, it is still possible to visit the old page and > do work on it, even though in reality the session has been invalidated. If > I were to branch to another page from the original one, I would be > redirected to the login page, but not upon orginally hitting the back > button. How do I tell the browser that the old page is now invalidated? --~--~-~--~~~---~--~~ 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: MULTIPLE RELOAD IMAGE BUNDLE
Ok, very good. I've posted a issue on gwt. I hope that it will be analized very soon. Thanks Best Regards Daniele On 8 Set, 15:35, ThomasWrobel wrote: > Your right...this does seem a problem with gwt on Firefox 3.5 > > A huge amount of duplicate loading going on, not just with that bundle > but alsohttp://gwt.google.com/samples/Showcase/showcase/clear.cache.gif > andhttp://gwt.google.com/samples/Showcase/showcase/10A6FD6A526DA51ED7300... > > On Sep 8, 3:28 pm, drenda wrote: > > > Hi Thomas, > > the problem is visible also in the sample application of > > gwt:http://gwt.google.com/samples/Showcase/Showcase.html. If your clear > > your browser's > > cache and then reload the page it's load about 9MB of images in 179 > > requests. Infact > > you can notice that the image > > bundlehttp://gwt.google.com/samples/Showcase/showcase/71072870DD13CCD2FCDAA... > > is load more and more time. > > > Any ideas? > > > Thanks > > > Best regards > > > On 8 Set, 14:16, ThomasWrobel wrote: > > > > I think you will have to upload it somewhere or post code for people > > > to help on this issue. > > > > On Sep 8, 11:10 am, drenda wrote: > > > > > Any idea? > > > > > Thanks > > > > > On 7 Set, 21:24, drenda wrote: > > > > > > Hi,I forgot to say that I've this problem only with Firefox 3.5.2. > > > > > With other browser you can't see the reloading of the images, instead > > > > > with Firefox you can cleary see the reloading of all images!! > > > > > Maybe a bug? > > > > > > Thanks > > > > > > On 7 Set, 19:22, bond wrote: > > > > > > > Hi,I've a big problem with image bundle. I make a small table with > > > > > > paging that display some text and some image. When I click "next > > > > > > button" the image bundle is reload more and more time in the browser > > > > > > (with firebug I see a > > > > > > GEThttp://localhost:8084/Main/B944D2399463F2D5C1293B5263DF3E75.cache.html). > > > > > > I can't see the problem!! > > > > > > > Thanks for your help! > > > > > > > Best regards > > --~--~-~--~~~---~--~~ 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: dubuger does not stop on breakpoints pls help
I had the same problem when I started a couple of weeks ago. I found on this site I had to update my SDK's (which I also found how to do on this forum) to the latest and all worked correctly. Stephan On Sep 8, 9:02 pm, ben fenster wrote: > im using eclipse galliano 3.5 and althouge im in debug mode the damm > thing wont stop at the breakpoints pls 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 google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: MULTIPLE RELOAD IMAGE BUNDLE
Your right...this does seem a problem with gwt on Firefox 3.5 A huge amount of duplicate loading going on, not just with that bundle but also http://gwt.google.com/samples/Showcase/showcase/clear.cache.gif and http://gwt.google.com/samples/Showcase/showcase/10A6FD6A526DA51ED7300D58E497C99C.cache.png On Sep 8, 3:28 pm, drenda wrote: > Hi Thomas, > the problem is visible also in the sample application of > gwt:http://gwt.google.com/samples/Showcase/Showcase.html. If your clear > your browser's > cache and then reload the page it's load about 9MB of images in 179 > requests. Infact > you can notice that the image > bundlehttp://gwt.google.com/samples/Showcase/showcase/71072870DD13CCD2FCDAA... > is load more and more time. > > Any ideas? > > Thanks > > Best regards > > On 8 Set, 14:16, ThomasWrobel wrote: > > > > > I think you will have to upload it somewhere or post code for people > > to help on this issue. > > > On Sep 8, 11:10 am, drenda wrote: > > > > Any idea? > > > > Thanks > > > > On 7 Set, 21:24, drenda wrote: > > > > > Hi,I forgot to say that I've this problem only with Firefox 3.5.2. > > > > With other browser you can't see the reloading of the images, instead > > > > with Firefox you can cleary see the reloading of all images!! > > > > Maybe a bug? > > > > > Thanks > > > > > On 7 Set, 19:22, bond wrote: > > > > > > Hi,I've a big problem with image bundle. I make a small table with > > > > > paging that display some text and some image. When I click "next > > > > > button" the image bundle is reload more and more time in the browser > > > > > (with firebug I see a > > > > > GEThttp://localhost:8084/Main/B944D2399463F2D5C1293B5263DF3E75.cache.html). > > > > > I can't see the problem!! > > > > > > Thanks for your help! > > > > > > Best regards --~--~-~--~~~---~--~~ 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: Separating code for an admin interface?
http://zenoconsulting.wikidot.com/blog:16 On Sep 6, 12:36 pm, Mark wrote: > This seems to work - I created an extra module file in my project: > > MyProject.gwt.xml > MyProjectAdmin.gwt.xml // added this one > > this gives me two compiled outputs, the second one I use in an admin > page like MyProjectAdmin.html. The only thing that needs to be changed > is that the definitions in web.xml has to have an > additional entry added with the name of the extra module > (if you want to use that servlet from your other module that is). > > Thanks, > Mark > > On Sep 6, 11:38 am, markww wrote: > > > Hi, > > > I've created a project which uses google app engine for the back-end. > > I wanted to create an admin UI on a separate page: > > > MyProject.html // entry point for public > > MyProjectAdmin.html // for admin only > > > Is it possible to have one project compile out to two separate js > > files, one where I have only my public stuff, the second used only for > > the admin? I don't want to mix any of the admin and public code, and > > was hoping that there's a way to completely separate the two, within > > the same project? > > > Thanks --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
StackPanel
Hi All, I need help with adding an image to the header of a StackPanel's child. add(Widget w, java.lang.String stackText) does not work for me as it only adds text to the header. Please help !!! Thanks, Parmeet --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
RPC and MYSql interacting / complied code not working
Hi Guys, I know someone will now the answer to this one, for sure. I have a HTML page with 3 buttons. The buttons interact with a Service etc to talk to a Server Side MySQL DB and retrieve data. Now to get this working I had to disable the "Google App Engine" (as mentioned on this site forum), still not sure why but I can live with this. All works fine while running the code Eclipse. Now I compile the code, go to the WAR folder and run the HTML pages and the connection to the MySQL DB fails and won't connect. (very similar to what happened when I had the Google App engine on) As anyone got any ideas as what is happening? I am sure someone has figured this out or had the problem before. Any help would be greatly appreciated. (Many thanks to anyone who trys to give me help, everyone here does a great job at helping beginners) Stephan --~--~-~--~~~---~--~~ 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: MULTIPLE RELOAD IMAGE BUNDLE
Hi Thomas, the problem is visible also in the sample application of gwt: http://gwt.google.com/samples/Showcase/Showcase.html. If your clear your browser's cache and then reload the page it's load about 9MB of images in 179 requests. Infact you can notice that the image bundle http://gwt.google.com/samples/Showcase/showcase/71072870DD13CCD2FCDAA9AF1F2C7F02.cache.png is load more and more time. Any ideas? Thanks Best regards On 8 Set, 14:16, ThomasWrobel wrote: > I think you will have to upload it somewhere or post code for people > to help on this issue. > > On Sep 8, 11:10 am, drenda wrote: > > > Any idea? > > > Thanks > > > On 7 Set, 21:24, drenda wrote: > > > > Hi,I forgot to say that I've this problem only with Firefox 3.5.2. > > > With other browser you can't see the reloading of the images, instead > > > with Firefox you can cleary see the reloading of all images!! > > > Maybe a bug? > > > > Thanks > > > > On 7 Set, 19:22, bond wrote: > > > > > Hi,I've a big problem with image bundle. I make a small table with > > > > paging that display some text and some image. When I click "next > > > > button" the image bundle is reload more and more time in the browser > > > > (with firebug I see a > > > > GEThttp://localhost:8084/Main/B944D2399463F2D5C1293B5263DF3E75.cache.html). > > > > I can't see the problem!! > > > > > Thanks for your help! > > > > > Best regards > > --~--~-~--~~~---~--~~ 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: dubuger does not stop on breakpoints pls help
Hi, Probably a jdk issue: http://stackoverflow.com/questions/1022007/why-are-my-breakpoints-ignored-with-gwt-eclipse-and-java-1-6-014 On Tue, Sep 8, 2009 at 3:02 PM, ben fenster wrote: > > im using eclipse galliano 3.5 and althouge im in debug mode the damm > thing wont stop at the breakpoints pls help !!! > > > -- A coward is incapable of exhibiting love; it is the prerogative of the brave. -- Mohandas Gandhi --~--~-~--~~~---~--~~ 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: Making a widget as big as possible (but no bigger!)
I realize this example is rather naive, but I think we can use it as a starting point: http://nathanwells.net/work/cssTest.html Is that basically what you're looking for? I tested it in IE 8, 7 (via compatibility mode), Firefox, and Chrome. Everything looks fine to me. Again, for IE 6, some hacking may be necessary. On Sep 7, 12:31 pm, Ian Bambury wrote: > Width is trivial - make sure that everything is set to width:auto; > Height is (AFAIK) impossible without calculating it unless all the borders > and padding and margins are zero, in which case set everything to 100% > (including html, body{width:100%;} > > I didn't understand what Parvez Shah was saying, and AFAICT absolute > positioning is no help if you have margins/borders/padding. > > It's a css thing rather than GWT. > > But if someone has a pure css solution, I will unreservedly join the ranks > of the eternally grateful. > > Ian > > http://examples.roughian.com > > 2009/9/7 David Given > > > > > > > Nathan Wells wrote: > > > Using absolute positioning: > > > > This method requires that (1) the container must have dimensions set > > > (i.e. "width: x% or px or whatever"). (2) the child box has > > > position:absolute set. > > > If the above are true, you simply set the left, right, top, bottom, > > > width and height attributes of the child. Note that IE will give you > > > some problems sometimes with some of this setup... > > > That's what I did, eventually, but this is requiring me to do layout > > actively in a resize callback. I'd rather not do this as it's slow and > > clunky. > > > It seems fundamentally to be really hard to do top-down layout using CSS > > (where the size of each object is constrained by the object it's > > contained within). This leads to endless problems with full-screen > > layouts. I've already discovered the bug where ScrollPanels just don't > > work properly if they're a child of certain other widgets (such as a > > DeckPanel). > > > Are there any known ways to solve this kind of issue? > > > -- > > ┌─── dg@cowlark.com ─http://www.cowlark.com─ > > │ > > │ "They laughed at Newton. They laughed at Einstein. Of course, they > > │ also laughed at Bozo the Clown." --- Carl Sagan --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
dubuger does not stop on breakpoints pls help
im using eclipse galliano 3.5 and althouge im in debug mode the damm thing wont stop at the breakpoints pls 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 google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
google-web-toolkit@googlegroups.com
I started with a new project and slowly added the components back in, tabs, labels, vertical panel, etc. and it all seems to work. Perhaps I deleted a GWT-generated file that I needed? I'm using GWT just for the client-side code and so deleted the server package that was generated by GWT. Could that be my problem? Is there a list of files you must not ever delete? Thanks -matthew On Sep 8, 8:18 am, matthew wrote: > I don't think so. I have the tag and in onModuleLoad(), I add > my components to it by name. > > Here's my module right now: > > public Notebook implements EntryPoint { > > private VerticalPanel mainPanel = new VerticalPanel(); > private DecoratedTabPanel tabs = new DecoratedTabPanel(); > > public void onModuleLoad() { > > tabs.add(new HTML("Tab 1"), "Tab1"); > tabs.add(new HTML("Tab 2"), "Tab2"); > tabs.selectTab(0); > mainPanel.add(tabs); > RootPanel.get("Notebook").add(mainPanel); > } > > This does not display IE 8 but does in Firefox 3.5.2. > > -matthew > > On Sep 7, 5:41 am, Thomas Broyer wrote: > > > On 4 sep, 22:00, matthew wrote: > > > > I have Google Web Toolkit SDK 1.7.0 installed as well as the Google > > > Plugin for Eclipse 3.5 and Google App Engine Java SDK 1.2.2. > > > > My page works fine in Firefox but when I try to view it in IE 7 or 8, > > > I get the error: > > > > 'undefined' is null or not an object > > > > I compiled the code with Detailed output style and found that the > > > problem is in the maybeStartModule() function: > > > > In particular, iframe.contentWindow returns null/undefined. > > > > function maybeStartModule(){ > > > if (scriptsDone && loadDone) { > > > var iframe = $doc.getElementById($intern_1); > > > var frameWnd = iframe.contentWindow; > > > if (isHostedMode()) { > > > frameWnd.__gwt_getProperty = function(name){ > > > return computePropValue(name); > > > } > > > ; > > > } > > > notebook = null; > > > frameWnd.gwtOnLoad(onLoadErrorFunc, $intern_1, base); > > > $stats && $stats({moduleName:$intern_1, subSystem:$intern_2, > > > evtGroup:$intern_6, millis:(new Date()).getTime(), type:$intern_7 > > > } > > > } > > > > The actual HTML of my page looks like this: > > > > > > > > Notebook > > > > > > > > > > > > > > > > > Why is this happening and what can I do to fix it? > > > Could it be this issue that you're > > facing?http://code.google.com/p/google-web-toolkit/issues/detail?id=4003 --~--~-~--~~~---~--~~ 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: _________________How to fix the side-bar bug in this group.
no problem, Id get annoyed too if I see someone posted just to get attention. The problems been coming and going over the last few weeks. Dosnt seem browser related, as that screen was from Chrome a few days back. The group is working ok for me now, again, although it had the glitch this morning, hence the post. Hopefully its gone for good, if not people can use my work-around. On Sep 8, 2:38 pm, Ivan Chappel wrote: > my bad, after seeing the screenshot I see why you added it. I read the > forums using FF and the posts display normally. Glad you came up with > a workaround. > > On Sep 8, 8:31 am, ThomasWrobel wrote: > > > > > I'm adding that to the benefit of those experiencing this > > problem;http://www.lostagain.nl/tempspace/grouperror1.jpg > > It allows people to actually read the title, rather then having it cut > > off. > > > On Sep 8, 2:02 pm, Ivan Chappel wrote: > > > > Stop being a retard by adding _ to your subject. > > > This is not craigslist. > > > > On Sep 8, 7:57 am, darkflame wrote: > > > > > I cant be the only one frustrated by the side-bar of those group > > > > constantly going wrong and making it near impossible to post/browse, > > > > so Id thought Id do a simple css fix to remove it completely. > > > > > For those running Opera just download > > > > this;http://www.lostagain.nl/tempspace/style.css > > > > And right click "Edit Site Preferences" >> Display >> Select the > > > > custom css. > > > > > For those running Firefox youd need the stylish > > > > plugin;https://addons.mozilla.org/en-US/firefox/addon/2108 > > > > > Hope this helps people :) --~--~-~--~~~---~--~~ 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: File Downloads not working with firefox and Opera
I did analyse my response. It looks something like this (Status-Line) HTTP/1.1 200 OK Accept-Ranges bytes Content-Length 3 content-disposition attachment Content-Typeapplication/octet-stream Connection close Server Jetty(6.1.x) I just want to download a simple txt file. I also have tried changing the content type to text/plain. But only IE and Google Chrome respond to a file download. I still cannot figure out why they do not work with Firefox and Opera. Thanks, Cherian --~--~-~--~~~---~--~~ 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: _________________How to fix the side-bar bug in this group.
my bad, after seeing the screenshot I see why you added it. I read the forums using FF and the posts display normally. Glad you came up with a workaround. On Sep 8, 8:31 am, ThomasWrobel wrote: > I'm adding that to the benefit of those experiencing this > problem;http://www.lostagain.nl/tempspace/grouperror1.jpg > It allows people to actually read the title, rather then having it cut > off. > > On Sep 8, 2:02 pm, Ivan Chappel wrote: > > > Stop being a retard by adding _ to your subject. > > This is not craigslist. > > > On Sep 8, 7:57 am, darkflame wrote: > > > > I cant be the only one frustrated by the side-bar of those group > > > constantly going wrong and making it near impossible to post/browse, > > > so Id thought Id do a simple css fix to remove it completely. > > > > For those running Opera just download > > > this;http://www.lostagain.nl/tempspace/style.css > > > And right click "Edit Site Preferences" >> Display >> Select the > > > custom css. > > > > For those running Firefox youd need the stylish > > > plugin;https://addons.mozilla.org/en-US/firefox/addon/2108 > > > > Hope this helps people :) --~--~-~--~~~---~--~~ 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: How to get URL in GWT?
On Tue, Sep 8, 2009 at 11:55 AM, Vikas wrote: > > For RPC communication, I need server IP address and port which is > specified in URL. > e.g. In 'http://10.4.6.131:8181/webClient.html' url 10.4.6.131 IP > address and 8181 port. > > How to get this IP and port in GWT? this native function might help: public static native String getURL() /*-{ return $wnd.location.href; }-*/; cheers, r > > Thanks in advance, > Vikas > > > > --~--~-~--~~~---~--~~ 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: _________________How to fix the side-bar bug in this group.
I'm adding that to the benefit of those experiencing this problem; http://www.lostagain.nl/tempspace/grouperror1.jpg It allows people to actually read the title, rather then having it cut off. On Sep 8, 2:02 pm, Ivan Chappel wrote: > Stop being a retard by adding _ to your subject. > This is not craigslist. > > On Sep 8, 7:57 am, darkflame wrote: > > > > > I cant be the only one frustrated by the side-bar of those group > > constantly going wrong and making it near impossible to post/browse, > > so Id thought Id do a simple css fix to remove it completely. > > > For those running Opera just download > > this;http://www.lostagain.nl/tempspace/style.css > > And right click "Edit Site Preferences" >> Display >> Select the > > custom css. > > > For those running Firefox youd need the stylish > > plugin;https://addons.mozilla.org/en-US/firefox/addon/2108 > > > Hope this helps people :) --~--~-~--~~~---~--~~ 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: DeckPanel with visible layers?
Couldn't you do the progress bar, however you like, then just query its (absolute) location after its on the page, putting a label at that position? (so effectively the widgets arnt tied together at all) If you want the progress bar to resized verticaly to match the text size you could then size it after the label is positioned. A bit of a fudgy solution, but it would give you a progress bar with text ontop surely? On Sep 8, 10:57 am, David Given wrote: > Ian Bambury wrote: > > [...] > > > It might be helpful (well it would for me anyway) if you were to > > describe the effect you were trying to get. > > Simple enough, really: I want a progress bar with text over the top. > > > To some extent I think I understand, but I don't understand the reason > > for the problem for absolute positioning. > > Using an AbsolutePanel would require me to pick a pixel size for the > panel. Unfortunately, space is limited. Given that HTML doesn't do > queryable font metrics, I cannot manually size the panel to fit the text > inside. The normal solution here is to just make the panel bigger than > necessary, but I can't do that for space reasons. The progress bar needs > to tightly wrap the text. > > [...] > > > But certainly this time the quick answer is 'out of luck' because the > > deck panel doesn't do that. > > It's an odd omission --- HTML and CSS should be able to produce the > effect I need using raw DOM. This kind of widget is usually one of the > primitives in most other widget sets I've seen, so I thought I should > check before writing my own. > > -- > ┌─── dg@cowlark.com ─http://www.cowlark.com─ > │ > │ "They laughed at Newton. They laughed at Einstein. Of course, they > │ also laughed at Bozo the Clown." --- Carl Sagan --~--~-~--~~~---~--~~ 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: How to get URL in GWT?
Hi Vikas, How about retrieve the HttpServletRequest instance, then getLocalAddr() and getLocalPort()? You may want to check out the rest of the useful getter methods in HttpServletRequest. On Tue, Sep 8, 2009 at 5:55 PM, Vikas wrote: > > For RPC communication, I need server IP address and port which is > specified in URL. > e.g. In 'http://10.4.6.131:8181/webClient.html' url 10.4.6.131 IP > address and 8181 port. > > How to get this IP and port in GWT? > > Thanks in advance, > Vikas > > > > -- Hez --~--~-~--~~~---~--~~ 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: Buttons with Round Edges
Look at the class DecoratorPanel. Its sole purpose is to give you the ability to add Rounded Corners. On Sep 8, 2:47 am, rjcarr wrote: > It doesn't look like the gwt provided factory buttons have corner > options (even though I thought they did). > > My advice would be to get your buttons working as you like outside of > GWT and then build your own widget using some type of gridded panel > like a FlexTable. It really isn't that hard to convert your html > button to GWT once you have it worked out. > > On Sep 6, 11:33 pm, abhiram wrote: > > > Hi all, > > > Which is the best method to implement a button with Round edges? I > > was trying to implement a CSS code where I can set the corner images. > > But i was just able to insert the image at only one corner. Can > > someone send me a sample code where 4 different images are set for the > > 4 corners? > > > regards, > > Abhiram --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
google-web-toolkit@googlegroups.com
I don't think so. I have the tag and in onModuleLoad(), I add my components to it by name. Here's my module right now: public Notebook implements EntryPoint { private VerticalPanel mainPanel = new VerticalPanel(); private DecoratedTabPanel tabs = new DecoratedTabPanel(); public void onModuleLoad() { tabs.add(new HTML("Tab 1"), "Tab1"); tabs.add(new HTML("Tab 2"), "Tab2"); tabs.selectTab(0); mainPanel.add(tabs); RootPanel.get("Notebook").add(mainPanel); } This does not display IE 8 but does in Firefox 3.5.2. -matthew On Sep 7, 5:41 am, Thomas Broyer wrote: > On 4 sep, 22:00, matthew wrote: > > > > > I have Google Web Toolkit SDK 1.7.0 installed as well as the Google > > Plugin for Eclipse 3.5 and Google App Engine Java SDK 1.2.2. > > > My page works fine in Firefox but when I try to view it in IE 7 or 8, > > I get the error: > > > 'undefined' is null or not an object > > > I compiled the code with Detailed output style and found that the > > problem is in the maybeStartModule() function: > > > In particular, iframe.contentWindow returns null/undefined. > > > function maybeStartModule(){ > > if (scriptsDone && loadDone) { > > var iframe = $doc.getElementById($intern_1); > > var frameWnd = iframe.contentWindow; > > if (isHostedMode()) { > > frameWnd.__gwt_getProperty = function(name){ > > return computePropValue(name); > > } > > ; > > } > > notebook = null; > > frameWnd.gwtOnLoad(onLoadErrorFunc, $intern_1, base); > > $stats && $stats({moduleName:$intern_1, subSystem:$intern_2, > > evtGroup:$intern_6, millis:(new Date()).getTime(), type:$intern_7 > > } > > } > > > The actual HTML of my page looks like this: > > > > > > Notebook > > > > > > > > > > > > Why is this happening and what can I do to fix it? > > Could it be this issue that you're > facing?http://code.google.com/p/google-web-toolkit/issues/detail?id=4003 --~--~-~--~~~---~--~~ 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: Need help with GWT FX
Thanks Adam, I will look into downloading it from trunk - and thanks for making it open source! Cheers, Rodders On Sep 8, 12:17 pm, Adam T wrote: > Hi Rodders, > > I'm guessing you are using v4 or below of the library, in which case, > this is one of the limitations in those versions - effects are applied > to the content of the NEffectPanel. So your contents would move but > the NEffectPanel would stay. > > If you're able to download the code from trunk, then this limitation > disappears, as you no longer need to use an NEffectPanel and can apply > effects directly to widgets. Hopefully it will only be a few weeks > before the trunk becomes a stand-alone download. > > For example, in v4 and below you had to write > > NEffectPanel ep = new NEffectPanel() > Move theEff = new Move(100,50); > Widget someWidget = new SomeWidget(); > ep.add(someWidget); > ep.addEffect(theEff); > ep.playEffects(); > > With v5 (in trunk) you can just write > > Widget someWidget = new SomeWidget(); > Move theEff = new Move(someWidget.getElement(), 100, 50); > theEff.play(); > > Also, when you add a Move effect to an element then it gets assigned > position:absolute property, so if you apply a move to all your boxes, > you may not see the others alter position on screen if you move just > one of them. > > Hope that helps in some way. > > //Adam > > On 7 Sep, 12:26, Rodders wrote: > > > Hi, > > > I'm hoping someone can help... I've been using the (very useful) gwt- > > fx library (by Adam Tacy) and have run into a couple of problems and > > I'm not sure if it's how I'm structuring my code. > > > I'm trying to layout a bunch of boxes (absolutely positioned) and then > > animate each of them independently > > > e.g. > > > FlowPanel container = new FlowPanel(); > > container.setStylePrimaryName("my-container"); > > > Box boxA = new Box(); > > container.add(boxA); > > > Box boxB = new Box(); > > container.add(boxB); > > > ... > > > The Box Class is a Composite that contains an NEffectPanel as it's > > "initWidget" and I add a bunch of other Widgets to the NEffectPanel > > (and I'm styling the NEffectPanel with a border, background etc). > > > If I try and animate the position one of the Boxes it all goes a bit > > pear shaped - rather than the Box moving, its contents moves...? > > > Is this the correct behaviour and if so is there a way of doing what I > > want? > > > Hope this makes sense! > > > Cheers, > > Rodders --~--~-~--~~~---~--~~ 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: MULTIPLE RELOAD IMAGE BUNDLE
I think you will have to upload it somewhere or post code for people to help on this issue. On Sep 8, 11:10 am, drenda wrote: > Any idea? > > Thanks > > On 7 Set, 21:24, drenda wrote: > > > > > Hi,I forgot to say that I've this problem only with Firefox 3.5.2. > > With other browser you can't see the reloading of the images, instead > > with Firefox you can cleary see the reloading of all images!! > > Maybe a bug? > > > Thanks > > > On 7 Set, 19:22, bond wrote: > > > > Hi,I've a big problem with image bundle. I make a small table with > > > paging that display some text and some image. When I click "next > > > button" the image bundle is reload more and more time in the browser > > > (with firebug I see a > > > GEThttp://localhost:8084/Main/B944D2399463F2D5C1293B5263DF3E75.cache.html). > > > I can't see the problem!! > > > > Thanks for your help! > > > > Best regards --~--~-~--~~~---~--~~ 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: How to get URL in GWT?
I dont think theres a simple way, youd need to get the whole URL, look between the second / and the 3rd /, then split the string around the " : " IP = UrlString.split(":")[0]; Port = UrlString.split(":")[1]; On Sep 8, 11:55 am, Vikas wrote: > For RPC communication, I need server IP address and port which is > specified in URL. > e.g. In 'http://10.4.6.131:8181/webClient.html'url 10.4.6.131 IP > address and 8181 port. > > How to get this IP and port in GWT? > > Thanks in advance, > Vikas --~--~-~--~~~---~--~~ 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: what are prerequisites for learning google window toolkit
I got started with no javascript or java skills. Merely an understanding of basic codeing (I previously knew Delphi, Basic, Actionscript). Moderate html/css skills. Really gwt was easy enough for me to learn everything as I went, especially when using Eclipse (which is a lovely IDE), and Firebug (which helps no-end in tracking down problems). On Sep 8, 9:18 am, hari wrote: > Hi friends, > I am working as a Flex developer. > Recently i listen about GWT (Google window toolkit). > I think it is also RIA tech. like Flex. > Please provide some information about GWT. > what are prerequisites for learning google window toolkit. > which softwares are we use for developing GWT application. like for > running flex applications we use flashplayer.like that which softwares > we use for GWT. > > Thanks in advance. > > Regards, > Harish.K --~--~-~--~~~---~--~~ 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: _________________How to fix the side-bar bug in this group.
Stop being a retard by adding _ to your subject. This is not craigslist. On Sep 8, 7:57 am, darkflame wrote: > I cant be the only one frustrated by the side-bar of those group > constantly going wrong and making it near impossible to post/browse, > so Id thought Id do a simple css fix to remove it completely. > > For those running Opera just download > this;http://www.lostagain.nl/tempspace/style.css > And right click "Edit Site Preferences" >> Display >> Select the > custom css. > > For those running Firefox youd need the stylish > plugin;https://addons.mozilla.org/en-US/firefox/addon/2108 > > Hope this helps people :) --~--~-~--~~~---~--~~ 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: seo and google web toolkit
Just a small correction about UiBinder.. It is not going to help in SEO in anyway. UiBinder allows you to put arbitrary HTML content in an XML file -- but that is processed at compile time only. The browser never sees that arbitrary HTML content directly. Its all encoded as javascript, so you are back to the old problem. On Sep 8, 4:45 am, Alexander Cherednichenko wrote: > I am not expert, though i have some recommendations. > > 1. Don't even try to generate _really_ different content for searchbot > and for the end-user. Sometimes googles sends request with 'normal' > user-agent, and if you have different content for users and bots, > you'll be banned (because of cloacking :) ) > Though, there are some ways to do so, > Though, not sure /me has enough time to work with google customer > support to clear this issue (if they have customer support, have never > heard of it:) ) > > 2. You may try create normal static application with unique URS, and > just wrap some page elements with javascript to provide rich > functionality. UIBinder is of new stuff. > > 3. You may try searhcing here (in this group) for such problems. > People resolve it in different ways. I've heard of interesting way - > generating html content by HTMLUnit and feeding it to the bot. Simply > - if your application sees it is a bot, it runs gwt (javascript) code > in headless browser on the serverside, and flushes momental DOM > snapshot to the response. > > 4. Look here > -http://lexaux.blogspot.com/2009/03/afraid-of-being-banned-by-google-f... > I was going to make a little demo some time ago, but had no time to > complete it :( sorry. Though, there may still be some interesting > facts. > > On Sep 7, 12:04 pm, Raphael André Bauer > > wrote: > > hey everybody, > > > as every friendly web inhabitant i want that google knows my website > > and people that are interested in my stuff can find it easily. > > however, as my first experiments suggest the google bot does not even > > try to analyze (execute) gwt code (a working test of my concept is at > > [1]). > > > this can -- on the one hand -- be explained by the very nature of gwt > > - it is javascript - much like an application that should not be > > indexed by a search bot by nature. but -- on the other hand -- hey! it > > is so simple. execute the js, see if it generates a more or less > > stable DOM, parse the dom and you are done. and both is from google? > > seems that the GWT hits the same indexing hell flash did. > > > ok. maybe i am wrong here. in my opinion it is really bad news that > > GWT stuff is not at all analyzed by the google search bot. > > > to come up with a conclusion would involve to sacrifice a lot of GWT > > coolness. mainly because i have to generate a lot of HTML myself that > > can be analyzed by search robots. i also wrote about that at [2]. it > > is especially interesting how [3] did "solve" the "problem". > > > do the experts have any recommendations? > > > thanks! > > > ra! > > [1]http://scisurfer.com/news > > [2]http://blog.scisurfer.com/2009/09/gwt-and-seo-concerns.html > > [3]http://examples.roughian.com --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
_________________How to fix the side-bar bug in this group.
I cant be the only one frustrated by the side-bar of those group constantly going wrong and making it near impossible to post/browse, so Id thought Id do a simple css fix to remove it completely. For those running Opera just download this; http://www.lostagain.nl/tempspace/style.css And right click "Edit Site Preferences" >> Display >> Select the custom css. For those running Firefox youd need the stylish plugin; https://addons.mozilla.org/en-US/firefox/addon/2108 Hope this helps people :) --~--~-~--~~~---~--~~ 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: fetching a url from another domain
GWT RequestBuilder is based on XmlHttpRequest, which has to honour same origin policy for security reasons. I haven't tried this, but technically it should work. a) Create a FormPanel, and set the action to the URL that you want. Set the method to "get". b) Add a SubmitCompleteHandler to the FormPanel, and implement the onSubmitComplete(SubmitCompleteEvent event) method c) Use event.getResults() method to get the contents of the URL. Note that this approach doesn't have the equivalent of onFailure method. If there is a backend exception, a 404 or any other problem, you will just get the raw HTML explaining the problem. Any other approach you adopt will have the same problems though. --sri On Sep 7, 9:33 am, palomer wrote: > Dear gwt group, > I'd like to fetch the contents of a url located in another domain and > print it on the screen. I've pasted code that tries to achieve this > using RequestBuilder. The code throws a security exception since you > can't grab urls from other domains using RequestBuilder. How do I go > about doing what I want to do? > cheers > --Jacques > > class LabelInclude extends Label { > public LabelInclude(final String url) { > super(); > final LabelInclude widget = this; > try { > new RequestBuilder(RequestBuilder.GET, url).sendRequest("", > new RequestCallback() { > public void onError(Request request, Throwable exception) > { > widget.setText("failed"); > } > public void onResponseReceived(Request request, Response > response) { > if (response.getStatusCode() == 200) { > widget.setText(response.getText()); > } else { > widget.setText("failed"); > } > } > }); > } catch (RequestException e) { > widget.setText("failed because of:" + e.toString()); > > } > } > > } --~--~-~--~~~---~--~~ 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: GWT for IE7
Try taking out all other scripts first and see if that works. If it does, add them back in one by one to see which is the culprit. Another thing which is useful is this: You'll have to modify it a little to work in your situation, but is very useful as you will get notified if there is a gwt problem. On Sep 8, 3:02 am, LN wrote: > we are developping an OSGI +GWT application. You can see the demo > in:http://amebasystems.com/bluetooth-scanning. > > In Mozilla Firefox it works just fine but there is no way to do it > works with IE7. I know that the IE CSS and JS specification is > different than Firefox's one, but we really want to optimize my > application for IE. Any ideas or suggestions? > > BR --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
GWT application running in Firefox sidebar
Hallo, I have a problem. My application is running on a site, which is opened in the sidebar of my browser. Now I need the URL of the website, that is displayed in the browser. When I use "Window.Location", I only get the URL of my application in the sidebar. I hope somebody can help me with my problem. --~--~-~--~~~---~--~~ 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: Can it possible.. I need your ideas...
Image Bundle is not going to help you in this case. ImageBundle requires all images to be available at compile time. In your case, the users can upload the images at run time, so you need a different solution. You should just write a servlet which returns the appropriate image for the logged in user, and give the url for your servlet to an Image Widget. On Sep 7, 11:37 am, venki wrote: > We are able to image bundle localization. So based on locale the > corresponding image bundle will be loaded right?? > > My question is.. > > Say i am having 1000 users to my site. At the time of registration i > am allowing the users to upload their interested images to be shown > after logged in. So here i have to create 1000 image bundles according > to each users images. > > My question:- can we make it possible using image bundle. So based on > some user information i have to point to its corresponding image > bundle. > > Great thanks in advance > > I will wait for your ideas... --~--~-~--~~~---~--~~ 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: Hosted mode windows position
You should stop using the hosted mode browser, and start using the oophm plugin. It gives you the same features of hosted mode browser within firefox. This should solve your annoying problem. On Sep 7, 10:40 am, Andrey wrote: > Hello! > > Is there any way to restore previous hosted mode windows position and > size. > > Every time I start a hosted mode server I need to: > 1. move hosted mode server window to the second monitor; > 2. expand hosted mode browser, because it opens very small by default. > > It would be much better if they restore previous position and size. > > 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 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: Need help with GWT FX
Hi Rodders, I'm guessing you are using v4 or below of the library, in which case, this is one of the limitations in those versions - effects are applied to the content of the NEffectPanel. So your contents would move but the NEffectPanel would stay. If you're able to download the code from trunk, then this limitation disappears, as you no longer need to use an NEffectPanel and can apply effects directly to widgets. Hopefully it will only be a few weeks before the trunk becomes a stand-alone download. For example, in v4 and below you had to write NEffectPanel ep = new NEffectPanel() Move theEff = new Move(100,50); Widget someWidget = new SomeWidget(); ep.add(someWidget); ep.addEffect(theEff); ep.playEffects(); With v5 (in trunk) you can just write Widget someWidget = new SomeWidget(); Move theEff = new Move(someWidget.getElement(), 100, 50); theEff.play(); Also, when you add a Move effect to an element then it gets assigned position:absolute property, so if you apply a move to all your boxes, you may not see the others alter position on screen if you move just one of them. Hope that helps in some way. //Adam On 7 Sep, 12:26, Rodders wrote: > Hi, > > I'm hoping someone can help... I've been using the (very useful) gwt- > fx library (by Adam Tacy) and have run into a couple of problems and > I'm not sure if it's how I'm structuring my code. > > I'm trying to layout a bunch of boxes (absolutely positioned) and then > animate each of them independently > > e.g. > > FlowPanel container = new FlowPanel(); > container.setStylePrimaryName("my-container"); > > Box boxA = new Box(); > container.add(boxA); > > Box boxB = new Box(); > container.add(boxB); > > ... > > The Box Class is a Composite that contains an NEffectPanel as it's > "initWidget" and I add a bunch of other Widgets to the NEffectPanel > (and I'm styling the NEffectPanel with a border, background etc). > > If I try and animate the position one of the Boxes it all goes a bit > pear shaped - rather than the Box moving, its contents moves...? > > Is this the correct behaviour and if so is there a way of doing what I > want? > > Hope this makes sense! > > Cheers, > Rodders --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---