Re: need to execute commands on windows machine from remote server
is there any procedure to remote access files or remote call any dos or other command on the client computer ? Also I need the respone back after executing cmd. It is not specific to GWT. I just wanted to know is there any procedure to do this in JAVA. On Oct 22, 8:50 am, Lazo Apostolovski qbox2...@gmail.com wrote: Appendix: Fix on my message before I mean You can't call even cd c:\user on the client computer. You cant use GWT to remote access files or remote call any dos or other command on the client computer. :) Greetings! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Links on page disabled
In the JSP page that hosts our app, some hyperlinks in the banner are somehow being disabled. If I remove the JS reference to the app, the hyperlinks are enabled again. Is this normal for the host page? Is there anything I can do to change that or should I move those links into the app itself? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
No source code is available for type com.google.gwt.uibinder.client.UiBinder
Hi all, I am trying to get UiBinder to work from the HelloWorld example. I get the following error although I have the appropriate packages imported. Any ideas? 00:09:21.663 [ERROR] Line 13: No source code is available for type com.google.gwt.uibinder.client.UiBinderU,O; did you forget to inherit a required module? the following modules were imported import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.uibinder.client.*; import com.google.gwt.user.client.ui.*; -- The secret impresses no-one, the trick you use it for is everything - Alfred Borden (The Prestiege) --~--~-~--~~~---~--~~ 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 Maven2 (1.7.1) Possible?
Hi, Reponses intertwined. On Mon, Oct 26, 2009 at 6:46 AM, J.V. jvsr...@gmail.com wrote: I'm trying to get a first app up and running with GWT. Welcome :) What I would like to do is download the jars and compile with maven2. Good luck ;) Has anyone been able to do this successfully? I can not find any documentation anywhere that actually leads me to a working example. Are the latest 1.7.1 jars available in any public maven repo? http://mvnrepository.com/artifact/com.google.gwt/gwt-user Is there any sort of commitment at all from Google to support Maven2? AFAIK google gwt team is rather ant than maven. But support for Maven with org.codehaus.mojo:gwt-maven-plugin is very good. If anyone can help on getting GWT to compile/work with maven I will post the instructions for others in a readable format. I don't think an experienced maven user encounter big issues ... with GWT only. Where the game becomes tricky is when you also whant to plays with: - GWT - Maven - Eclipse (m2eclipse) - Eclipse (WTP) - Spring (or guice) You can encounter some issues with Hosted mode classloader. ( http://groups.google.com/group/google-web-toolkit/browse_thread/thread/be6b6681192aa54a/00b1f125d31c11b8?#00b1f125d31c11b8 ) I have a pretty (it's mine, so ... :) demo application working with all of this plus: - Spring security - MVP implementation (http://code.google.com/p/gwt-mvp/) Working under: Maven + GWT (1.7 - 2.0 ) + Spring with and/or without eclipse. I'm rather busy for the moment on my fulltime job (not GWT :( ). So I've not updated this project, but If some are interested, I can make some evening work :) Best regards. If I'm the first to try and get this to run with Maven, let me know. Definitively not ;) thanks J.V. -- 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 -~--~~~~--~~--~--~---
String handling
what is the best way to handle strings in java we can use stringBuffer or StringBuilder. but they are converted to Javascript.. so is there any way to handle strings in gwt and keep the performance in javascript. thanks -- ~~~With Regards~~~ Muhannad Dar-Nasser ~~Computer Systems Engineering~~ --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
displaying static content in gwt
I am thinking to place most of the design code [html] in the static files with .html and place their contents into the panel's setHtml() instead of writing GWT code for every thing. like for example I have a panel in the top that contains anchors like Home, Support, News etc. Instead of creating a Hyperlink object for each link and setting the style element to format it, I am thinking to read this chunk of code from a html file and use the panels's setHtml (String) to display it. The benefit I can see with this approach is avoid compiling the code even for a small change and also it could be easy to change in the future. Am I thinking in the right direction? Is there any other optimistic way of doing it? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Session-Confusion
Hi, maybe I get my basics wrong, but I am currently a bit confused, maybe you could help me understand what goes wrong here: I am writing a GWT application where a user has to authenticate himself to a database. Upon successful authentication, I create a new HttpSession like so: private final HttpSession startNewSession() { HttpSession session = getThreadLocalRequest().getSession(); if(session != null) { return session; } return getThreadLocalRequest().getSession(true); } which -- as you can see -- does _not_ create a new session, if a session already exists. And that may be the problem: If I log on to my application using two different tabs in Firefox (for example), I get _the same_ session... Is there any way of forcing the creation of a new session if I log on? Am I completely wrong by even needing to do that?? If the user logs on using two different tabs, I would really like to have two completely different sessions, but it seems that getThreadLocalRequest only allows for _one_ session in this case (being thread local... :)). So, the only way around this problem I see right now, is to modify (extend) RemoteServiceServlet and handle the HttpServletRequest(s) and HttpServletResponse(s) on my own -- if that is possible... Any ideas? Thanks for any pointers! 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: Session-Confusion
The cookies stored by firefox are shared across the tabs. If you want to be able to log in using separate users in firefox, then you can do that using separate firefox profiles. Try firefox -ProfileManager the create a new profile or select the profile to run from whatever profiles you may already have. If you already have firefox running, use firefox -ProfileManager -no-remote to start firefox in a separate process. Paul philipp.bouil...@gmail.com wrote: Hi, maybe I get my basics wrong, but I am currently a bit confused, maybe you could help me understand what goes wrong here: I am writing a GWT application where a user has to authenticate himself to a database. Upon successful authentication, I create a new HttpSession like so: private final HttpSession startNewSession() { HttpSession session = getThreadLocalRequest().getSession(); if(session != null) { return session; } return getThreadLocalRequest().getSession(true); } which -- as you can see -- does _not_ create a new session, if a session already exists. And that may be the problem: If I log on to my application using two different tabs in Firefox (for example), I get _the same_ session... Is there any way of forcing the creation of a new session if I log on? Am I completely wrong by even needing to do that?? If the user logs on using two different tabs, I would really like to have two completely different sessions, but it seems that getThreadLocalRequest only allows for _one_ session in this case (being thread local... :)). So, the only way around this problem I see right now, is to modify (extend) RemoteServiceServlet and handle the HttpServletRequest(s) and HttpServletResponse(s) on my own -- if that is possible... Any ideas? Thanks for any pointers! 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: Session-Confusion
? Thanks, Paul, but I fear I don't (quite) understand. Are you saying that I have to start FF with command line options in order to be able to create different session IDs for different tabs? Even if that should be so, I can hardly communicate this information to all our clients and ask them to start their FF with those options (let alone those clients that are using different browsers, like IE 8 for example). Isn't there a way of getting different session IDs for different tabs? I have googled some more and found a hint on customizing the apache tomcat session manager... Should I look more deeply into that topic? Sounds a little daunting... Thanks, Philipp On 26 Okt., 12:27, Paul Robinson ukcue...@gmail.com wrote: The cookies stored by firefox are shared across the tabs. If you want to be able to log in using separate users in firefox, then you can do that using separate firefox profiles. Try firefox -ProfileManager the create a new profile or select the profile to run from whatever profiles you may already have. If you already have firefox running, use firefox -ProfileManager -no-remote to start firefox in a separate process. Paul philipp.bouil...@gmail.com wrote: Hi, maybe I get my basics wrong, but I am currently a bit confused, maybe you could help me understand what goes wrong here: I am writing a GWT application where a user has to authenticate himself to a database. Upon successful authentication, I create a new HttpSession like so: private final HttpSession startNewSession() { HttpSession session = getThreadLocalRequest().getSession(); if(session != null) { return session; } return getThreadLocalRequest().getSession(true); } which -- as you can see -- does _not_ create a new session, if a session already exists. And that may be the problem: If I log on to my application using two different tabs in Firefox (for example), I get _the same_ session... Is there any way of forcing the creation of a new session if I log on? Am I completely wrong by even needing to do that?? If the user logs on using two different tabs, I would really like to have two completely different sessions, but it seems that getThreadLocalRequest only allows for _one_ session in this case (being thread local... :)). So, the only way around this problem I see right now, is to modify (extend) RemoteServiceServlet and handle the HttpServletRequest(s) and HttpServletResponse(s) on my own -- if that is possible... Any ideas? Thanks for any pointers! 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: My application has stopped
I've just found what was causing this problem: the DatePicker widget. When I remove it from my application, everything works again. Does anyone know some bug related to it? On 23 out, 11:12, Elder elder.mor...@gmail.com wrote: Hi, everyone. I developed a GWT application normally, and also deployed it. Everything was normal, until it just...stopped working! It's works under hosted browser, but when I try the Compile/Browse button, or even though deploying it on Tomcat (where it was working before), the problem is still the same: a blank page. The browser dowload de files (html, image, css, js, and so on), but nothing appears on it. If I check de source code in the browser, it's all ok like when it was working. Does anybody have an ideia of what it could be going on? I've tried a lot of things, but nothing works. My environment is: Eclipse Galileo GWT 1.7.1 Tomcat 6.0.18 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: OOPHM IE plugin doesn't work
Anyone from Google care to respond? Seems pretty foundational. On Oct 24, 7:00 am, Ian Bambury ianbamb...@gmail.com wrote: I mentioned this 2 weeks ago. So far, no response. Ian http://examples.roughian.com 2009/10/24 mikedshaf...@gmail.com mikedshaf...@gmail.com Having the same problem here. I'm on XP Pro with IE 7 (corporate mandate). Worked fine on Firefox. Starting on Chrome Safari later today. On Oct 24, 2:33 am, Andrey mino...@gmail.com wrote: Hello! When I open dev mode url in IE a message appears: No GWT Browser Plugin Detected I've downloaded and installed GWT Dev Mode Plugin for IE but the message appears again. Tried to repair and reinstall without success. In FireFox everything is OK. Does this plugin work? I must add that I don't see this plugin in Service - Plugins menu in IE. Should it be there? Windows Vista IE 8 with last updates Andrey --~--~-~--~~~---~--~~ 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: blackberry support
OK, maybe another way... Has anyone tried Opera on the blackberry - does it make for a much better browsing experience? Thanks, Mark On Oct 22, 5:18 pm, mwaschkowski mwaschkow...@gmail.com wrote: Hi, Do we have any gwt devs that own blackberry's? Does blackberry's built in browser do gwt if the javascript/css/ie emulation is turned on? Asking because I asked a buddy of mine to turn on the above and he wasn't able to see my simple gwt site... Thanks! Mark --~--~-~--~~~---~--~~ 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: blackberry support
Hi, I have Opera Mini in my Blackberry 8100, it's works! One thing, in my Blackberry I can't use the Trackball with the Opera, because the Opera closes with an error (Java somethingException... Caught!!. etc), but if I use the Enter key in case the Trackball works Perfect! Much better than Blackberry's Browser. Bye! On Mon, Oct 26, 2009 at 9:17 AM, mwaschkowski mwaschkow...@gmail.comwrote: OK, maybe another way... Has anyone tried Opera on the blackberry - does it make for a much better browsing experience? Thanks, Mark On Oct 22, 5:18 pm, mwaschkowski mwaschkow...@gmail.com wrote: Hi, Do we have any gwt devs that own blackberry's? Does blackberry's built in browser do gwt if the javascript/css/ie emulation is turned on? Asking because I asked a buddy of mine to turn on the above and he wasn't able to see my simple gwt site... Thanks! Mark -- ANDRES BRUN WebSite Andres Brun http://www.andresbrun.tk Blog - http://doyan2007.blogspot.com/ WebSite http://www.prolinetsystems.tk GWT - http://groups.google.com/group/Google-Web-Toolkit?hl=en --~--~-~--~~~---~--~~ 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: ListBox and listeners.
Thank you for the informative reply! I ended up deriving the ListBox and providing it's own mechanism. Your suggestion of implementing the HasValue/HasValueChangeHandler is a much better idea. On Oct 25, 8:52 pm, Thomas Broyer t.bro...@gmail.com wrote: On 25 oct, 17:40, Emerson Matsuuchi ema...@gmail.com wrote: I have a issue that I'm trying to resolve and it may be something simple that I'm completely overlooking. I have a ListBox that has a ChangeHandler registered with it. I would like to programatically change the value of the ListBox and have an event fired that I can listen for. Unfortunately programatically changing the value does not fire an event to the ChangeHandler. While searching the internet I only came across disturbingly unelegant solutions to this problem (which I'm also convinced will not resolve the problem). I also have several TextBox objects that I can simply call setValue(some string, true) to fire an event to a ValueChangeHandler. The ListBox does not have a corresponding mechanism to fire an event. If anyone has any suggestions on how to tackle this problem, that would be greatly appreciated. Because a ChangeEvent is a DomEvent, it's a bit less easy to fire one than a ValueChangeEvent. Try this: DomEvent.fireNativeEvent(Document.get().createChangeEvent(), myListBox); ...or implement an HasValue or HasValueChangeHandlers wrapping your ListBox (you can use HasValueString, HasValueInteger, HasValueString[] or HasValueInteger[], that's why ListBox doesn't itself implement HasValue) --~--~-~--~~~---~--~~ 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: Session-Confusion
I am saying that you need different command line options in FF to make it work with separate profiles, and that that would let you have different cookies in each profile. Your session information has to be stored in cookies or in the URL. Each has their own pros and cons, but all tabs will share cookies whereas each tab can (obviously) have different URLs. Google something like session url to see if you really want to do that. I guess the real question is why you want to do this in the first place? As a developer, it's good to be logged in with different users at once for testing stuff out, but what's the use case for the end user to be able to do it? An easier way to tell client's that want this is to tell them to log in with two browsers - like FF and Chrome (or whatever). Paul philipp.bouil...@gmail.com wrote: ? Thanks, Paul, but I fear I don't (quite) understand. Are you saying that I have to start FF with command line options in order to be able to create different session IDs for different tabs? Even if that should be so, I can hardly communicate this information to all our clients and ask them to start their FF with those options (let alone those clients that are using different browsers, like IE 8 for example). Isn't there a way of getting different session IDs for different tabs? I have googled some more and found a hint on customizing the apache tomcat session manager... Should I look more deeply into that topic? Sounds a little daunting... Thanks, Philipp On 26 Okt., 12:27, Paul Robinson ukcue...@gmail.com wrote: The cookies stored by firefox are shared across the tabs. If you want to be able to log in using separate users in firefox, then you can do that using separate firefox profiles. Try firefox -ProfileManager the create a new profile or select the profile to run from whatever profiles you may already have. If you already have firefox running, use firefox -ProfileManager -no-remote to start firefox in a separate process. Paul philipp.bouil...@gmail.com wrote: Hi, maybe I get my basics wrong, but I am currently a bit confused, maybe you could help me understand what goes wrong here: I am writing a GWT application where a user has to authenticate himself to a database. Upon successful authentication, I create a new HttpSession like so: private final HttpSession startNewSession() { HttpSession session = getThreadLocalRequest().getSession(); if(session != null) { return session; } return getThreadLocalRequest().getSession(true); } which -- as you can see -- does _not_ create a new session, if a session already exists. And that may be the problem: If I log on to my application using two different tabs in Firefox (for example), I get _the same_ session... Is there any way of forcing the creation of a new session if I log on? Am I completely wrong by even needing to do that?? If the user logs on using two different tabs, I would really like to have two completely different sessions, but it seems that getThreadLocalRequest only allows for _one_ session in this case (being thread local... :)). So, the only way around this problem I see right now, is to modify (extend) RemoteServiceServlet and handle the HttpServletRequest(s) and HttpServletResponse(s) on my own -- if that is possible... Any ideas? Thanks for any pointers! 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: GWT Maven2 (1.7.1) Possible?
I think I'm still using 1.7.0, but I have been using maven2 with the codehaus GWT plugin since day 1. There is a working example I posted here: http://zenoconsulting.wikidot.com/blog:16 You can download it and you should be able to launch the app and modify it to your needs. It is a simple, trivial example...my real-world app uses a lot more stuff, but it should help get you started. Regards, Davis On Mon, Oct 26, 2009 at 1:46 AM, J.V. jvsr...@gmail.com wrote: I'm trying to get a first app up and running with GWT. What I would like to do is download the jars and compile with maven2. Has anyone been able to do this successfully? I can not find any documentation anywhere that actually leads me to a working example. Are the latest 1.7.1 jars available in any public maven repo? Is there any sort of commitment at all from Google to support Maven2? If anyone can help on getting GWT to compile/work with maven I will post the instructions for others in a readable format. If I'm the first to try and get this to run with Maven, let me know. thanks J.V. -- Zeno Consulting, Inc. home: http://www.zenoconsulting.biz blog: http://zenoconsulting.wikidot.com p: 248.894.4922 f: 313.884.2977 --~--~-~--~~~---~--~~ 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: Session-Confusion
Hmm... Ok, I see. I will try googling. Thanks. Well, the reason for different sessions in different tabs is this scenario: Using a special link, a user can embed (a part of) our application into his website. If a user browses to his website and opens the same website in a different tab (which might happen frequently, maybe because all links on the page open in new tabs), problems will arise. As a stand-alone application, I agree, it doesn't really make sense to have different session id's for the same user in different tabs. Anyway, thanks for your help, I'll look into session URLs and if that doesn't help, --- well, I'm sure to find something else :). Thanks, Philipp On 26 Okt., 14:00, Paul Robinson ukcue...@gmail.com wrote: I am saying that you need different command line options in FF to make it work with separate profiles, and that that would let you have different cookies in each profile. Your session information has to be stored in cookies or in the URL. Each has their own pros and cons, but all tabs will share cookies whereas each tab can (obviously) have different URLs. Google something like session url to see if you really want to do that. I guess the real question is why you want to do this in the first place? As a developer, it's good to be logged in with different users at once for testing stuff out, but what's the use case for the end user to be able to do it? An easier way to tell client's that want this is to tell them to log in with two browsers - like FF and Chrome (or whatever). Paul philipp.bouil...@gmail.com wrote: ? Thanks, Paul, but I fear I don't (quite) understand. Are you saying that I have to start FF with command line options in order to be able to create different session IDs for different tabs? Even if that should be so, I can hardly communicate this information to all our clients and ask them to start their FF with those options (let alone those clients that are using different browsers, like IE 8 for example). Isn't there a way of getting different session IDs for different tabs? I have googled some more and found a hint on customizing the apache tomcat session manager... Should I look more deeply into that topic? Sounds a little daunting... Thanks, Philipp On 26 Okt., 12:27, Paul Robinson ukcue...@gmail.com wrote: The cookies stored by firefox are shared across the tabs. If you want to be able to log in using separate users in firefox, then you can do that using separate firefox profiles. Try firefox -ProfileManager the create a new profile or select the profile to run from whatever profiles you may already have. If you already have firefox running, use firefox -ProfileManager -no-remote to start firefox in a separate process. Paul philipp.bouil...@gmail.com wrote: Hi, maybe I get my basics wrong, but I am currently a bit confused, maybe you could help me understand what goes wrong here: I am writing a GWT application where a user has to authenticate himself to a database. Upon successful authentication, I create a new HttpSession like so: private final HttpSession startNewSession() { HttpSession session = getThreadLocalRequest().getSession(); if(session != null) { return session; } return getThreadLocalRequest().getSession(true); } which -- as you can see -- does _not_ create a new session, if a session already exists. And that may be the problem: If I log on to my application using two different tabs in Firefox (for example), I get _the same_ session... Is there any way of forcing the creation of a new session if I log on? Am I completely wrong by even needing to do that?? If the user logs on using two different tabs, I would really like to have two completely different sessions, but it seems that getThreadLocalRequest only allows for _one_ session in this case (being thread local... :)). So, the only way around this problem I see right now, is to modify (extend) RemoteServiceServlet and handle the HttpServletRequest(s) and HttpServletResponse(s) on my own -- if that is possible... Any ideas? Thanks for any pointers! 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 -~--~~~~--~~--~--~---
Can I use GWT to write a Gmail plugin?
Hi, I want to provide Gmail with additional functionality, but, if possible, I want to make the implementation browser-independent (I know how to do what I want as a Firefox addon, but what about a Google Chrome addon, or Opera, or...?). Is there any documented way to do this? TIA! Bob --~--~-~--~~~---~--~~ 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: Organizing multiple HTML hosts / Entry points, etc. in single webapp
Hi, I have a sample project that solves this problem -- well, it is one particular solution to the problem. It works well for me. I am following this approach for a real app that I am building. You may find it useful: http://zenoconsulting.wikidot.com/blog:16 Regards, Davis On Sat, Oct 24, 2009 at 1:19 AM, Open eSignForms yoz...@gmail.com wrote: Newbie question for GWT 1.7 is how do people tend to organize their webapps that may have multiple distinct sets of functionality. That is, would people tend to create a HTML+Entry for a login page that is streamlined only for this very specific task of authenticating users, handling forgot passwords, etc. that are related to a non- logged in user. Then perhaps have another HTML+Entry for the main dashboard aspect of the application. I tend to think of this part of the application as the run-time focus for typical users who are making use of the system. Then perhaps have another HTML+Entry for specialist tasks that are more geared towards administrators or the like that are setting up the application and all of those tasks that can be fairly complex on their own, but aren't user functions. And then would most people create one RPC interface to support each of these Entry points, or might a non-trivial Entry point tend to support a series of RPC interfaces to deal with myriad functions. Thanks for any ideas on what are considered best practices in this area. -- Zeno Consulting, Inc. home: http://www.zenoconsulting.biz blog: http://zenoconsulting.wikidot.com p: 248.894.4922 f: 313.884.2977 --~--~-~--~~~---~--~~ 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: My application has stopped
I found what's happening: the DatePicker has a bug related to daylight saving time (I live in Brazil). There's a bug fix in gwt-contrib group, but it isn't reflected to the last release. The workaround is in: http://gwtbr.blogspot.com/2009/10/corrigindo-o-datepicker-para-horario-de.html http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/84bd5cd922b9d848/bdff5e397791c279?lnk=gstq=datepicker+dst#bdff5e397791c279 The pacth is in: http://gwt-code-reviews.appspot.com/22801/show And the opened issue is in: http://code.google.com/p/google-web-toolkit/issues/detail?id=4143 Regards. On 26 out, 09:47, Elder Moraes elder.mor...@gmail.com wrote: I've just found what was causing this problem: the DatePicker widget. When I remove it from my application, everything works again. Does anyone know some bug related to it? On 23 out, 11:12, Elder elder.mor...@gmail.com wrote: Hi, everyone. I developed a GWT application normally, and also deployed it. Everything was normal, until it just...stopped working! It's works under hosted browser, but when I try the Compile/Browse button, or even though deploying it on Tomcat (where it was working before), the problem is still the same: a blank page. The browser dowload de files (html, image, css, js, and so on), but nothing appears on it. If I check de source code in the browser, it's all ok like when it was working. Does anybody have an ideia of what it could be going on? I've tried a lot of things, but nothing works. My environment is: Eclipse Galileo GWT 1.7.1 Tomcat 6.0.18 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 -~--~~~~--~~--~--~---
Problems with userService.createLogoutURL
Hi, i have an application with the following web.xml, that secure my application requesting the user login with Google Account. ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app security-constraint web-resource-collection url-pattern/*/url-pattern /web-resource-collection auth-constraint role-name*/role-name /auth-constraint /security-constraint !-- Default page to serve -- welcome-file-list welcome-fileMyapplication.html/welcome-file /welcome-file-list /web-app When i try to access my application deployed on the appspot it works great and redirect to the Appspot Login. But i when i try to logout using userService.createLogoutURL(http://myapplication.appspot.com;) it redirects to the Appengine Logout Url and then redirects again to my application. Here enter directly to my application wihtout use the security constraint and redirect to the Appengine login. What i am doing 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 -~--~~~~--~~--~--~---
Re: how to send variables in form panel
You have to set the name of the textbox otherwise it won't be addressable on the server side. Example: private final FormPanel formPanel = new FormPanel(); private final FileUpload fileUpload = new FileUpload(); private final TextBox textBox = new TextBox(); private final Button uploadButton = new Button(Upload); textBox.setName(text); FlexTable flexTable = new FlexTable(); flexTable.setWidget(0, 0, fileUpload); flexTable.setWidget(1, 0, uploadButton); flexTable.setWidget(2, 0, textBox); formPanel.setAction(URL HERE); formPanel.setEncoding(FormPanel.ENCODING_MULTIPART); formPanel.setMethod(FormPanel.METHOD_POST); formPanel.setWidget(flexTable); Now, on the server side using commons-fileupload: final DiskFileItemFactory factory = new DiskFileItemFactory(maxFileSizeBytes, tempDir); final ServletFileUpload upload = new ServletFileUpload(factory); final ListFileItem items = (ListFileItem) upload.parseRequest(request); for (FileItem item : items) { if (item.isFormField()) { logger.info(item.getFieldName()+ +item.getString()); } else { // process the file bytes } } You should see it print your textbox...where item.getFieldName() will return text Regards, Davis On Fri, Oct 23, 2009 at 12:19 PM, YoeZ juz...@gmail.com wrote: yes, of course I put the multipart in client code: form.setAction(GWT.getModuleBaseURL() + uploadfileservlet); form.setEncoding(FormPanel.ENCODING_MULTIPART); form.setMethod(FormPanel.METHOD_POST); I have a form with uploadfile widget, and some textbox. the uploaded file was successfully sent to server,, but the textbox item is null return in servlet. is there any other way to uploadfile with some field (texboxes)? instead of using formpanel? On Oct 23, 12:20 pm, QBox qbox2...@gmail.com wrote: Sohttp://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/g. .. http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/g.. . Class FormPanel A panel that wraps its contents in an HTML FORM element. YoeZ say that he use This panel so it will be multipart ;) On Thu, Oct 22, 2009 at 8:57 PM, Sudeep S sudee...@gmail.com wrote: multipart requests have to be sent via a FORM panel On Thu, Oct 22, 2009 at 6:53 PM, Lazo Apostolovski qbox2...@gmail.com wrote: Its probably a multipart message :S Try googling for how to accept multipart message on the server side here is some example but i don't know if you find usefull. public HashMapString, InputStream parseMultipartMessage( HttpServletRequest request) { mapWithStreams = new HashMapString, InputStream(); boolean isMultipart = ServletFileUpload.isMultipartContent(request); try { if (isMultipart) { FileItemFactory factory = new DiskFileItemFactory(); ServletFileUpload upload = new ServletFileUpload(factory); ListFileItem items = upload.parseRequest(request); for (FileItem item : items) { mapWithStreams.put(item.getFieldName(), item.getInputStream()); } } else { mapWithStreams.put(DEFAULT_KEY, request.getInputStream()); } } catch (FileUploadException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } return mapWithStreams; In normal message (not multipart) data from the text fields come like the body of the message. If you try to transfer file in normal message then Stream is send like the body of the message. So you can transver only Parameters or only stream. If you want to transfer parameters and stream in same message you need to use multipart message. In multipart message InputStream come on server like a body of the message. If that input stream contain multipart message you need to parse that message. So in one part you will have values from input fields and in other part you will have Stream for uploaded file. Read about multipart messages on the wiki site. Code abowe will parse all input streams from multipart message and place them to the HasMap. The Key in HashMap is the File name. You can access to streams later when you need them. To the parameters you can access on the same way like you deed before: request.getParameter(parameterName); Good luck. YoeZ wrote: Hey abhiram, I still have a problem in server side,, can you tell me how to catch variable from client. Let say I have a textbox in client. Textbox txtComment = new Textbox; txtComment.setName(txtComment); txtComment .setText(hello); in server side: I've tried: String varXXX = (String) request.getParameter(txtComment); but that's not working. :( and I've also tried like this : try { List items = upload.parseRequest(request);
Re: GWT eclipse plugin icons do not display on Windows 7
Thanks for letting us know. I created issue 4168http://code.google.com/p/google-web-toolkit/issues/detail?id=4168 to track this problem. On Sun, Oct 25, 2009 at 4:24 AM, jsoconner jsocon...@gmail.com wrote: After installing the GWT plugin for Eclipse on my Windows 7 pc, I quickly noticed that the GWT icons were not displayed in the Eclipse task bar. I repeated the installation instructions several times, uninstalled the plugin, reinstalled... Finally, I decided to try running Eclipse with the Run as Administrator option. This time the plugin install worked perfectly and the GWT icons are now showing up correctly. To Run as Administrator, right-click on the Eclipse icon, select the Run as Administrator option. I'm not sure what the problem was/isbut I thought I'd post my results for others if they run into this same issue. Regards, John -- 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: No source code is available for type com.google.gwt.uibinder.client.UiBinder
You need GWT 2.0 for UiBinder to work. Are you sure you have the latest version of GWT? --Sri 2009/10/26 Devraj Mukherjee dev...@gmail.com Hi all, I am trying to get UiBinder to work from the HelloWorld example. I get the following error although I have the appropriate packages imported. Any ideas? 00:09:21.663 [ERROR] Line 13: No source code is available for type com.google.gwt.uibinder.client.UiBinderU,O; did you forget to inherit a required module? the following modules were imported import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.uibinder.client.*; import com.google.gwt.user.client.ui.*; -- The secret impresses no-one, the trick you use it for is everything - Alfred Borden (The Prestiege) --~--~-~--~~~---~--~~ 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: OOPHM and Mac OSX
Hello, I had exactly the some problems as you described them. In my case the solution was a jvm argument -XstartOnFirstThread which was necessary on macs. Without the argument it works well. Regards, Markus Albrecht On 13 Okt., 11:32, P.G.Taboada pgtabo...@googlemail.com wrote: Hi, in the meantime I tried the milestone one, but I have the same issue. The Swing window opens but is frozen. The cursor is the funny coloured sprinning wait ball. In the console I get: 2009-10-13 12:18:41.881 java[11686:903] [Java CocoaComponent compatibility mode]: Enabled 2009-10-13 12:18:41.883 java[11686:903] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.10 2009-10-13 12:18:43.106 java[11686:db03] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1001a17c0 '(null)') unlocked when not locked 2009-10-13 12:18:43.108 java[11686:db03] *** Break on _NSLockError() to debug. 2009-10-13 12:18:43.226 java[11686:db03] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x12dba4b70 '(null)') unlocked when not locked 2009-10-13 12:18:43.227 java[11686:db03] *** Break on _NSLockError() to debug. 2009-10-13 12:18:43.328 java[11686:db03] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x12db23ec0 '(null)') unlocked when not locked 2009-10-13 12:18:43.328 java[11686:db03] *** Break on _NSLockError() to debug. 2009-10-13 12:18:43.436 java[11686:db03] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x100141b60 '(null)') unlocked when not locked 2009-10-13 12:18:43.441 java[11686:db03] *** Break on _NSLockError() to debug. 2009-10-13 12:18:43.548 java[11686:db03] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x12db04120 '(null)') unlocked when not locked 2009-10-13 12:18:43.548 java[11686:db03] *** Break on _NSLockError() to debug. 2009-10-13 12:18:43.751 java[11686:db03] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x100133ce0 '(null)') unlocked when not locked 2009-10-13 12:18:43.752 java[11686:db03] *** Break on _NSLockError() to debug. 2009-10-13 12:18:43.882 java[11686:db03] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1001aa470 '(null)') unlocked when not locked 2009-10-13 12:18:43.883 java[11686:db03] *** Break on _NSLockError() to debug. 2009-10-13 12:18:43.995 java[11686:db03] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1001aae70 '(null)') unlocked when not locked 2009-10-13 12:18:43.995 java[11686:db03] *** Break on _NSLockError() to debug. 2009-10-13 12:18:44.154 java[11686:db03] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x12dbac5c0 '(null)') unlocked when not locked 2009-10-13 12:18:44.155 java[11686:db03] *** Break on _NSLockError() to debug. 2009-10-13 12:18:44.306 java[11686:db03] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x12db9ebc0 '(null)') unlocked when not locked 2009-10-13 12:18:44.307 java[11686:db03] *** Break on _NSLockError() to debug. 2009-10-13 12:18:44.419 java[11686:db03] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x12dbace60 '(null)') unlocked when not locked 2009-10-13 12:18:44.425 java[11686:db03] *** Break on _NSLockError() to debug. 2009-10-13 12:18:44.534 java[11686:db03] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1001ab8a0 '(null)') unlocked when not locked 2009-10-13 12:18:44.534 java[11686:db03] *** Break on _NSLockError() to debug. Using a browser with the GWT Development Plugin, please browse to the following URL: http://localhost:8080/MyApp.html?gwt.hosted=192.168.15.206:9997 2009-10-13 12:18:44.985 java[11686:db03] *** -[NSConditionLock unlock]: lock (NSConditionLock: 0x1001ad120 '(null)') unlocked when not locked 2009-10-13 12:18:44.986 java[11686:db03] *** Break on _NSLockError() to debug. Any help? Anyone got this working from a Mac? brgds, Papick On 21 Sep., 17:48, Jason Parekh jasonpar...@gmail.com wrote: Hi Papick, Where does it exactly break when you start from Eclipse? Do you have any logs? (One place to check is WORKSPACE/.metadata/.log) thanks jason On Mon, Sep 21, 2009 at 8:02 AM, P.G.Taboada pgtabo...@googlemail.comwrote: Hi, it's working on my Mac Snow Leopard as long as I don't start the shell from Eclipse. I have seen some posts about doing this and that but it looks like they are all out of date. Any help/ tips here for the current trunk? brgds, Papick --~--~-~--~~~---~--~~ 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: displaying static content in gwt
On 26 oct, 10:50, usmanf linkusma...@yahoo.com wrote: I am thinking to place most of the design code [html] in the static files with .html and place their contents into the panel's setHtml() instead of writing GWT code for every thing. like for example I have a panel in the top that contains anchors like Home, Support, News etc. Instead of creating a Hyperlink object for each link and setting the style element to format it, I am thinking to read this chunk of code from a html file and use the panels's setHtml (String) to display it. The benefit I can see with this approach is avoid compiling the code even for a small change and also it could be easy to change in the future. Am I thinking in the right direction? Is there any other optimistic way of doing it? Cannot you just include it in your HTML host page instead of creating/ managing it as a GWT widget? (you can still show/hide it using GWT if you want, using e.g. UIObject.setVisible(Document;get().getElementById (header), true)) --~--~-~--~~~---~--~~ 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: No source code is available for type com.google.gwt.uibinder.client.UiBinder
On 26 oct, 10:31, Devraj Mukherjee dev...@gmail.com wrote: Hi all, I am trying to get UiBinder to work from the HelloWorld example. I get the following error although I have the appropriate packages imported. Any ideas? 00:09:21.663 [ERROR] Line 13: No source code is available for type com.google.gwt.uibinder.client.UiBinderU,O; did you forget to inherit a required module? the following modules were imported import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.uibinder.client.*; import com.google.gwt.user.client.ui.*; Those are Java package imports. the error talks about GWT's module inheritance, as in putting the appropriate inherits/ in you module's gwt.xml file. --~--~-~--~~~---~--~~ 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: Problems with userService.createLogoutURL
On 26 oct, 14:57, nacho vela.igna...@gmail.com wrote: What i am doing wrong? Posting in the GWT forum while your issue is with AppEngine? ;-) Have you asked there: http://groups.google.com/group/google-appengine ? --~--~-~--~~~---~--~~ 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: Date Picker not found in GWT 1.7.1
Not working for me too right not... This is really strange, it was working before. Have you tried to build a simple example with this component. By your name you seem to be from Brazil, like me. Coincidence? On 25 out, 02:54, Rafael DL rafael...@gmail.com wrote: Hi, Already tested in several places and none worked. Could it be any question of location? On 22 out, 16:59, Rafael Daniel Laurindo rafael...@gmail.com wrote: I asked a friend to test on another pc and not work. someone can test for me? 2009/10/22 Isaac Truett itru...@gmail.com Works fine for me in Chrome. On Thu, Oct 22, 2009 at 11:58 AM, Rafael DL rafael...@gmail.com wrote: Hi, I'm trying to use the datebox after GWT upgraded to version 1.7.1, and noticed that the screens that have this component does not work. I have tried chrome, firefox and ie8, match any of them worked. Anybody else has this problem? Does the problem is my browser or is the GWT 1.7.1? Please check the showcase, thedatepickerdoes not work. http://gwt.google.com/samples/Showcase/Showcase.html#CwDatePicker Thanks. -- Rafael Daniel Laurindo. print.JPG 91KExibirDownload --~--~-~--~~~---~--~~ 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: Deploying to Apache HTTPD only
That's exactly the problem. On Oct 23, 6:33 pm, rernst rerns...@gmail.com wrote: I don't think this is what he is asking. I am actually pondering the same question. I have some code that talks JSON to a PHP backend. This code needs no Tomcat, indeed there is no Tomcat instance running on the server. GWT is compiled into JS so there should be no need for deployment to Tomcat unless I drive a servlet, non? So, do I simply copy the JS code with the hosting HTML and transfer it to Apache or are there other things invoklved? How about the funny JS files GWT creates, nocache.js, etc? Actually, it appears class loader deployment is very straightforward but I have no classloader. /re On Oct 23, 4:24 am, Thomas Broyer t.bro...@gmail.com wrote: On 22 oct, 18:01,Charbelcharbe...@gmail.com wrote: Hi, I just finished my first GWT application and I wanted to know if it is possible to deploy a GWT application on Apache HTTD, this GWT app only uses compiled Javascipt to access a Tomcat application hosting all the functionality via servlets. As long as your tomcat instance is accessed at the same origin (protocol, hostname, port; i.e. using Apache's mod_proxy or mod_jk), yes, that's actually how we deploy our own app: GWT app served by Apache which calls tomcat-hosted servlets through mod_jk. Otherwise, you'll face the same origin policy. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
could anybody tell me what application is developed by Google Web Toolkit
could anybody tell me what application is developed by Google Web Toolkit? i'm a new comer thx and god bless all. ^_^ --~--~-~--~~~---~--~~ 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: could anybody tell me what application is developed by Google Web Toolkit
Information regarding what applications have been built using GWT can be found here: Google Web Toolkit Gallery http://gwtgallery.appspot.com It's also worth noting that Google Wave was developed using GWT. Google Wave http://wave.google.com Thanks, - Chris On Oct 26, 10:09 am, wu wuyan...@gmail.com wrote: could anybody tell me what application is developed by Google Web Toolkit? i'm a new comer thx and god bless all. ^_^ --~--~-~--~~~---~--~~ 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 Navigation
I am new to GWT. The hardest thing for me is to understand the navigation part. Let's say in the home page (index.html) there is no functionality just plain HTML and text, which is the case of lots web sites. In that case can I start with a plain HTML file (not generated by GWT? If yes where do I put the EntryPoint? Also, how many EntryPoint can I have in one application? Thanks, Wilson --~--~-~--~~~---~--~~ 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: Deploying to Apache HTTPD only
Thanks, just deployed it and it works (still testing it thought :)) On Oct 24, 12:05 am, Thomas Broyer t.bro...@gmail.com wrote: On 23 oct, 18:33, rernst rerns...@gmail.com wrote: I don't think this is what he is asking. I am actually pondering the same question. I have some code that talks JSON to a PHP backend. This code needs no Tomcat, indeed there is no Tomcat instance running on the server. GWT is compiled into JS so there should be no need for deployment to Tomcat unless I drive a servlet, non? Right. So, do I simply copy the JS code with the hosting HTML and transfer it to Apache or are there other things invoklved? How about the funny JS files GWT creates, nocache.js, etc? Actually, it appears class loader deployment is very straightforward but I have no classloader. Copy everything from your war folder (except the WEB-INF subfolder) and you're done. Seehttp://code.google.com/webtoolkit/doc/1.6/DevGuideDeploying.html#DevG... --~--~-~--~~~---~--~~ 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: Session-Confusion
Philipp, Use your own ID instead of or in addition to the session cookie. Send that ID with each RPC request so that the server knows which instance of your app it is talking to. - Isaac On Mon, Oct 26, 2009 at 9:06 AM, philipp.bouil...@gmail.com philipp.bouil...@gmail.com wrote: Hmm... Ok, I see. I will try googling. Thanks. Well, the reason for different sessions in different tabs is this scenario: Using a special link, a user can embed (a part of) our application into his website. If a user browses to his website and opens the same website in a different tab (which might happen frequently, maybe because all links on the page open in new tabs), problems will arise. As a stand-alone application, I agree, it doesn't really make sense to have different session id's for the same user in different tabs. Anyway, thanks for your help, I'll look into session URLs and if that doesn't help, --- well, I'm sure to find something else :). Thanks, Philipp On 26 Okt., 14:00, Paul Robinson ukcue...@gmail.com wrote: I am saying that you need different command line options in FF to make it work with separate profiles, and that that would let you have different cookies in each profile. Your session information has to be stored in cookies or in the URL. Each has their own pros and cons, but all tabs will share cookies whereas each tab can (obviously) have different URLs. Google something like session url to see if you really want to do that. I guess the real question is why you want to do this in the first place? As a developer, it's good to be logged in with different users at once for testing stuff out, but what's the use case for the end user to be able to do it? An easier way to tell client's that want this is to tell them to log in with two browsers - like FF and Chrome (or whatever). Paul philipp.bouil...@gmail.com wrote: ? Thanks, Paul, but I fear I don't (quite) understand. Are you saying that I have to start FF with command line options in order to be able to create different session IDs for different tabs? Even if that should be so, I can hardly communicate this information to all our clients and ask them to start their FF with those options (let alone those clients that are using different browsers, like IE 8 for example). Isn't there a way of getting different session IDs for different tabs? I have googled some more and found a hint on customizing the apache tomcat session manager... Should I look more deeply into that topic? Sounds a little daunting... Thanks, Philipp On 26 Okt., 12:27, Paul Robinson ukcue...@gmail.com wrote: The cookies stored by firefox are shared across the tabs. If you want to be able to log in using separate users in firefox, then you can do that using separate firefox profiles. Try firefox -ProfileManager the create a new profile or select the profile to run from whatever profiles you may already have. If you already have firefox running, use firefox -ProfileManager -no-remote to start firefox in a separate process. Paul philipp.bouil...@gmail.com wrote: Hi, maybe I get my basics wrong, but I am currently a bit confused, maybe you could help me understand what goes wrong here: I am writing a GWT application where a user has to authenticate himself to a database. Upon successful authentication, I create a new HttpSession like so: private final HttpSession startNewSession() { HttpSession session = getThreadLocalRequest().getSession(); if(session != null) { return session; } return getThreadLocalRequest().getSession(true); } which -- as you can see -- does _not_ create a new session, if a session already exists. And that may be the problem: If I log on to my application using two different tabs in Firefox (for example), I get _the same_ session... Is there any way of forcing the creation of a new session if I log on? Am I completely wrong by even needing to do that?? If the user logs on using two different tabs, I would really like to have two completely different sessions, but it seems that getThreadLocalRequest only allows for _one_ session in this case (being thread local... :)). So, the only way around this problem I see right now, is to modify (extend) RemoteServiceServlet and handle the HttpServletRequest(s) and HttpServletResponse(s) on my own -- if that is possible... Any ideas? Thanks for any pointers! 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: Date Picker not found in GWT 1.7.1
Perhaps this is what you're seeing? http://code.google.com/p/google-web-toolkit/issues/detail?id=4143 On Sun, Oct 25, 2009 at 9:00 PM, ciczan cic...@gmail.com wrote: Not working for me too right not... This is really strange, it was working before. Have you tried to build a simple example with this component. By your name you seem to be from Brazil, like me. Coincidence? On 25 out, 02:54, Rafael DL rafael...@gmail.com wrote: Hi, Already tested in several places and none worked. Could it be any question of location? On 22 out, 16:59, Rafael Daniel Laurindo rafael...@gmail.com wrote: I asked a friend to test on another pc and not work. someone can test for me? 2009/10/22 Isaac Truett itru...@gmail.com Works fine for me in Chrome. On Thu, Oct 22, 2009 at 11:58 AM, Rafael DL rafael...@gmail.com wrote: Hi, I'm trying to use the datebox after GWT upgraded to version 1.7.1, and noticed that the screens that have this component does not work. I have tried chrome, firefox and ie8, match any of them worked. Anybody else has this problem? Does the problem is my browser or is the GWT 1.7.1? Please check the showcase, thedatepickerdoes not work. http://gwt.google.com/samples/Showcase/Showcase.html#CwDatePicker Thanks. -- Rafael Daniel Laurindo. print.JPG 91KExibirDownload --~--~-~--~~~---~--~~ 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 convert the GWT widgets to image
Hi I want to convert the GWT widget page to image. Its like previously visited snapshot of the web page. Is it possible to convert to an image. Please help me out. Thanks Arthik --~--~-~--~~~---~--~~ 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: ListBox and listeners.
On 26 oct, 13:48, Emerson Matsuuchi ema...@gmail.com wrote: Thank you for the informative reply! I ended up deriving the ListBox and providing it's own mechanism. Your suggestion of implementing the HasValue/HasValueChangeHandler is a much better idea. Follow issue 2010 if you're interested: http://code.google.com/p/google-web-toolkit/issues/detail?id=2010 --~--~-~--~~~---~--~~ 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: Is there a easy way to remove all the widgets in a cpanel?
On Oct 23, 7:43 pm, Ian Bambury ianbamb...@gmail.com wrote: vp = new VerticalPanel(); Ian 2009/10/24 tedpottel tedpot...@gmail.com Is there a easy way to remove all the widget added to a VertocalPanel? So my draw function could simply remove all the old ones, then add the new oners? If you program creates handlers and attaches them to the panel, simply deleting the panel and recreating it risks memory leaks. Respectfully, Eric Jablow --~--~-~--~~~---~--~~ 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: String handling
On 26 oct, 10:41, muhannad nasser muhannadna...@gmail.com wrote: what is the best way to handle strings in java we can use stringBuffer or StringBuilder. but they are converted to Javascript.. so is there any way to handle strings in gwt and keep the performance in javascript. StringBuilder and StringBuffer in GWT will do their best to concatenate strings with highest performances depending on the browser (some are faster doing String concats while in others you'd rather push to an array and use a join() in the end). And generally, string concatenations isn't your performance bottleneck, compared to DOM manipulation and the like. --~--~-~--~~~---~--~~ 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: Session-Confusion
On 26 oct, 12:38, philipp.bouil...@gmail.com philipp.bouil...@gmail.com wrote: ? Thanks, Paul, but I fear I don't (quite) understand. Are you saying that I have to start FF with command line options in order to be able to create different session IDs for different tabs? Even if that should be so, I can hardly communicate this information to all our clients and ask them to start their FF with those options (let alone those clients that are using different browsers, like IE 8 for example). Are your clients *expected* to open the app twice side-by-side with different credentials? Most webapps do not allow it (including Google apps and apps hosted on AppEngine, as well as Yahoo! and Microsoft apps, to cite a few). Isn't there a way of getting different session IDs for different tabs? Sure: do not use cookies to maintain sessions (servlet containers usually have a way of disabling cookie-based sessions). But you'd better not use sessions at all if you can: if your GWT app is a single-page app, then the page itself can maintain the session without the need for cookies: just pass the credentials (generally an authentication ticket that the server generated in response to a request to a login servlet) with all your calls (e.g. use RequestBuilder.addHeader, and if you use RPC, use the RpcRequestBuilder to do the same, if you use a GWT 2.0 milestone or similar). See Ray Ryan's talk at Google I/O last spring: http://code.google.com/events/io/2009/sessions/GoogleWebToolkitBestPractices.html (look for statelessness) You can also google for REST, RESTful or RESTful web services. --~--~-~--~~~---~--~~ 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 Navigation
AFAIK, you can only have 1 entrypoint per application. If you have a regular non-gwt html page, you could just link to your GWT app from your non-gwt page. On Sun, Oct 25, 2009 at 10:59 PM, compuroad wilson.ferreira...@gmail.comwrote: I am new to GWT. The hardest thing for me is to understand the navigation part. Let's say in the home page (index.html) there is no functionality just plain HTML and text, which is the case of lots web sites. In that case can I start with a plain HTML file (not generated by GWT? If yes where do I put the EntryPoint? Also, how many EntryPoint can I have in one application? Thanks, Wilson -- -Pav --~--~-~--~~~---~--~~ 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: No source code is available for type com.google.gwt.uibinder.client.UiBinder
Hi all, Yes I am using GWT 2.0 On Tue, Oct 27, 2009 at 2:00 AM, Thomas Broyer t.bro...@gmail.com wrote: On 26 oct, 10:31, Devraj Mukherjee dev...@gmail.com wrote: Hi all, I am trying to get UiBinder to work from the HelloWorld example. I get the following error although I have the appropriate packages imported. Any ideas? 00:09:21.663 [ERROR] Line 13: No source code is available for type com.google.gwt.uibinder.client.UiBinderU,O; did you forget to inherit a required module? the following modules were imported import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.uibinder.client.*; import com.google.gwt.user.client.ui.*; Those are Java package imports. the error talks about GWT's module inheritance, as in putting the appropriate inherits/ in you module's gwt.xml file. I think I am importing the appropriate packages in the XML File as well, here's how it looks ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui' g:HTMLPanel Hello, g:ListBox ui:field='listBox'/. /g:HTMLPanel /ui:UiBinder Any suggestions? -- The secret impresses no-one, the trick you use it for is everything - Alfred Borden (The Prestiege) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
GWT1.7.1 RPC Deployment Online 404 Status Code
Dear members, I built recently a website using gwt and rpc under eclipse in windows environment. The web services connect to a MS SQL Server 2008 database via sqljdbc.jar from microsoft. The database exists on a remote server in another country. The ip address and the port for the database and database server is reachable via ping command. The website when placed in CATALINA_HOME/webapps/ works fine. The website when hosted and uploaded to an online server to CATALINA_HOME/webapps doesn't work: it throws http 404 error code on every gwt RPC that connects to the database. I tried to register and uploaded my website to more than dozens of web hosting companies, some of them had tomcat with unix others even with windows. When i uploaded the HelloWorld which also uses gwt rpc but with no database connection it works fine in both cases. I can rebuild the whole database in mysql but that would take lot of time especially that the website has to be online in few days. I was wondering if there would be any suggestions on where the problem is. is it in tomcat configuration or gwt war file ? (I repeat and say that it works fine from my computer : http://localhost:8081/myapp/ works fine with me, i can connect to my remote database which exists in another country (here the database is hosted locally and accessed offline) http://www.mydomain.com/myapp/ throws http 404 error code on every rpc service : resource not found. (here the application is hosted and accessed online) Thank you all for your suggestions and cooperations. --~--~-~--~~~---~--~~ 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 Navigation
Depends on what do you mean by 'application'. You can have one entrypoint for GWT application, but in your whole web application you are able to create as many entry points as you need. On 26 Paź, 16:56, Pavel Byles pavelby...@gmail.com wrote: AFAIK, you can only have 1 entrypoint per application. If you have a regular non-gwt html page, you could just link to your GWT app from your non-gwt page. On Sun, Oct 25, 2009 at 10:59 PM, compuroad wilson.ferreira...@gmail.comwrote: I am new to GWT. The hardest thing for me is to understand the navigation part. Let's say in the home page (index.html) there is no functionality just plain HTML and text, which is the case of lots web sites. In that case can I start with a plain HTML file (not generated by GWT? If yes where do I put the EntryPoint? Also, how many EntryPoint can I have in one application? Thanks, Wilson -- -Pav --~--~-~--~~~---~--~~ 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 Security
Hello, Is it possible to have differente security-constraint for different web application areas. For example, if I have different user-groups how can I manage access control. I'd like to block users without sufficient credentials to view secret web areas. I've just set up a login form and an authentication system based on ldap. It works for the whole application. If a user is recognized, enters in the application and has got access to all features. I want to avoid this. 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 -~--~~~~--~~--~--~---
UIBinder with a form
Hi, I would like to know if it is possible to add a handler to a form using UIBinder ? For example, the code for button look like this : @UiHandler(buttonSubmit) void onClickSubmit(ClickEvent event) { Window.alert(Prout); } So, for the form, I tried : @UiHandler(form) void onSubmitComplete(FormSubmitCompleteEvent event) { Window.alert(Prout); } But it is not working. Thanks Olivier --~--~-~--~~~---~--~~ 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 serialization problem
I'm passed these problems now - a couple of things i learned when creating object and storing in data nucleus for later retrieval over an RPC call - Most importantly, if you are returning a complex object (like one with a list of another type of object) you need to return a copy, not the object data nucleus returns - return persitenceManager.detachCopy (object) - the object returned by PM has all sorts of stuff in it that can't be serialized, the detached copy does not. Next, if your are creating an object with lists of other object that are not necessarily parent/child relationships or anything you want to persist, you need to decorate it with @NotPersistent because app engine will mark things as persistent for you even if you don't want it or mark it as persistent. See this note in the doc: Tip: JDO specifies that fields of certain types are persistent by default if neither the @Persistent nor @NotPersistent annotations are specified, and fields of all other types are not persistent by default. See the DataNucleus documentation for a complete description of this behavior. Because not all of the App Engine datastore core value types are persistent by default according to the JDO specification, we recommend explicitly annotating fields as @Persistent or @NotPersistent to make it clear. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Apple Guice: A demo of App Engine, GWT, MVP, Guice, GIN
All, Apple Guice is a demo App Engine application using GWT with MVP (via gwt-dispath and gwt-presener), dependency injection (GIN on the client, Guice on the server), and a sharded counter to track the number of visitors. Demo is available at: http://appleguice.latest.emcode-dev.appspot.com/ Source is available at: http://appleguice.googlecode.com/ Stuart P.S. Pardon my cross-posting on: gwt, appengine for java, gwt-dispatch and gwt-presenter --~--~-~--~~~---~--~~ 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: Reading from a property file in GWT
See class com.google.gwt.i18n.client.Dictionary --Sri 2009/10/26 Praveen Prabakaran p.prave...@gmail.com Hi, There's a URL in my GWT application which is hard-coded in a java file. I need to change this by creating a property file which contains the URL in the form of a key-value pair. But I'm not able to do so. Is this a limitation in GWT? Can I not use GWT to read from a property file and print it? .Also please let me know how to include a external package (for eg. com.google.gwt.core.ext.typeinfo) in GWT. Warm Regards, Praveen. --~--~-~--~~~---~--~~ 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: Displaying static content on gwt client
I would suggest using something like jsp / php / asp to generate your GWT host page and have all the static content loaded directly into the page during the initial user request along w/ the code to load up your GWT module. Or if you don't mind using bleeding edge code, you may want to take a look at the new UIBinder stuff in the 2.0 release candidate. On Oct 24, 9:32 am, usmanf linkusma...@yahoo.com wrote: I am designing a home page for my website using GWT ext (GXT). It contains a lot of static contents like news, advert text etc that usually goes on the home page. Firstly I tried separating the static content into html files and reading them using java.io.FileReader to set them on the Panel's setHtml(). I realized that GWT SDK does not allow to use java.io.* on the client side. The only way I have now is to place the static content into hard-coded string values like --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Detecting/allowing something to be clicked on under a canvas object.
Is it possible to have a canvas object acting transparently to clicks? Or to otherwise detect when something under it is clicked on? At the moment I have a canvas object over a standard html page (100%, 100%), and set with its background transparent. Id like to use the canvas to draw a few things (ontop of everything), while still having the links of the page work. How would I go about doing this? --~--~-~--~~~---~--~~ 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: Displaying static content on gwt client
There a couple of approaches you can use, each with its pros and cons. 1. You can put it in the initial user request with code using jsp/php/asp - but that would mean your initial page load size is going to increase. If the content is really important - you can use this approach; but for things like news and advertisements - its not worth the extra time it is going to take to see the main content of your application. 2. You can use UiBinder - but it is a compile time thing. You cannot change the content at run time. But it has the best performance - even better than putting your content within jsp/asp/php. If you don't mind recompiling and redeploying your application whenever content changes, this is the best option. 3. You can dynamically download the data using RequestBuilder - but that has the worst performance. It is a new http request to download the html, and perhaps additional requests to download embedded images and CSS. Plus, there are things like Cross Site Scripting to think about (GWT should handle most of it, but you could still get in trouble). But then - it gives you the highest flexibility - no recompilations. The approach you choose depends on how frequently your content changes, how much you care about performance, and how much flexibility you desire. --Sri 2009/10/26 jhulford jhulf...@gmail.com I would suggest using something like jsp / php / asp to generate your GWT host page and have all the static content loaded directly into the page during the initial user request along w/ the code to load up your GWT module. Or if you don't mind using bleeding edge code, you may want to take a look at the new UIBinder stuff in the 2.0 release candidate. On Oct 24, 9:32 am, usmanf linkusma...@yahoo.com wrote: I am designing a home page for my website using GWT ext (GXT). It contains a lot of static contents like news, advert text etc that usually goes on the home page. Firstly I tried separating the static content into html files and reading them using java.io.FileReader to set them on the Panel's setHtml(). I realized that GWT SDK does not allow to use java.io.* on the client side. The only way I have now is to place the static content into hard-coded string values like --~--~-~--~~~---~--~~ 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: UIBinder with a form
On 26 oct, 16:57, Olivier Degreef oliv...@digiworks.es wrote: Hi, I would like to know if it is possible to add a handler to a form using UIBinder ? For example, the code for button look like this : @UiHandler(buttonSubmit) void onClickSubmit(ClickEvent event) { Window.alert(Prout); } So, for the form, I tried : @UiHandler(form) void onSubmitComplete(FormSubmitCompleteEvent event) { Window.alert(Prout); } But it is not working. Try with FormPanel.SubmitCompleteEvent; FormSubmitCompleteEvent is the old, deprecated event class (well, it's not itself @Deprecated, but FormHandler is) As a rule of thumb, check that the event class inherits from com.google.gwt.event.shared.GwtEvent? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Differences between Hosted and Web mode JUnit testing
I have read numerous times that Hosted mode tests bytecode, while Web mode tests in actual JavaScript. Wanting to delve into this deeper, I came up with the following, in which the JUnit tests succeed in both hosted and web modes. I was expecting that because I used native JS features not available in Java, it would fail in hosted mode: package com.x.gwt.firsttest.client; public class StringProducer { public native String getSomeText()/*-{ String.prototype.yo = function() { return Hello there; }; return Yo.yo(); }-*/; } And then the test class: package com.x.gwt.firsttest.client; import com.google.gwt.junit.client.GWTTestCase; public class FirstTest extends GWTTestCase { public String getModuleName() { return com.x.gwt.firsttest.FirstApp; } public void testStringProducer() { assertEquals(Hello there, new StringProducer().getSomeText()); } } --~--~-~--~~~---~--~~ 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 Navigation
On 26 oct, 03:59, compuroad wilson.ferreira...@gmail.com wrote: I am new to GWT. The hardest thing for me is to understand the navigation part. Let's say in the home page (index.html) there is no functionality just plain HTML and text, which is the case of lots web sites. In that case can I start with a plain HTML file (not generated by GWT? If yes where do I put the EntryPoint? Also, how many EntryPoint can I have in one application? Just to correct others: you can have as many entry-points as you like in an application, they'll be run one after the other (gwt-log for instance has its own entry point to initialize some stuff). As for your overall question, have a look at http://code.google.com/events/io/2009/sessions/ProgressivelyEnhanceAjaxApps.html as an example of how you can integrate GWT in *any* HTML page. --~--~-~--~~~---~--~~ 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: Reading from a property file in GWT
On 26 oct, 17:25, Sripathi Krishnan sripathi.krish...@gmail.com wrote: See class com.google.gwt.i18n.client.Dictionary I'd have rather say com.google.gwt.i18n.client.Constants ;-) --~--~-~--~~~---~--~~ 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: Reading from a property file in GWT
Oh yes - Constants work better than Dictionary in this case. --Sri 2009/10/26 Thomas Broyer t.bro...@gmail.com On 26 oct, 17:25, Sripathi Krishnan sripathi.krish...@gmail.com wrote: See class com.google.gwt.i18n.client.Dictionary I'd have rather say com.google.gwt.i18n.client.Constants ;-) --~--~-~--~~~---~--~~ 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: Session-Confusion
Hi Philip, You need not create a new session for every tab. Rather what you can do is, ensure that every request from a new tab passes a Id to the gwt module and use your session like ...request.setAttribute( 'SESSION_DATA_'+Id, sessionData ) since your client is passing the id, it can use the same id at a later stage to retrieve the data (i used a random number). But i doubt if this can be used in distributed server envrionment where sessions are not replicated across all the servers. Thanks Sudeep On Mon, Oct 26, 2009 at 9:25 PM, Thomas Broyer t.bro...@gmail.com wrote: On 26 oct, 12:38, philipp.bouil...@gmail.com philipp.bouil...@gmail.com wrote: ? Thanks, Paul, but I fear I don't (quite) understand. Are you saying that I have to start FF with command line options in order to be able to create different session IDs for different tabs? Even if that should be so, I can hardly communicate this information to all our clients and ask them to start their FF with those options (let alone those clients that are using different browsers, like IE 8 for example). Are your clients *expected* to open the app twice side-by-side with different credentials? Most webapps do not allow it (including Google apps and apps hosted on AppEngine, as well as Yahoo! and Microsoft apps, to cite a few). Isn't there a way of getting different session IDs for different tabs? Sure: do not use cookies to maintain sessions (servlet containers usually have a way of disabling cookie-based sessions). But you'd better not use sessions at all if you can: if your GWT app is a single-page app, then the page itself can maintain the session without the need for cookies: just pass the credentials (generally an authentication ticket that the server generated in response to a request to a login servlet) with all your calls (e.g. use RequestBuilder.addHeader, and if you use RPC, use the RpcRequestBuilder to do the same, if you use a GWT 2.0 milestone or similar). See Ray Ryan's talk at Google I/O last spring: http://code.google.com/events/io/2009/sessions/GoogleWebToolkitBestPractices.html (look for statelessness) You can also google for REST, RESTful or RESTful web services. --~--~-~--~~~---~--~~ 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: HashMap argument type mismatch
2 quick questions. 1. are u using generics. 2. have all the objects of your hashmap implemented isSeriliazable or Serilizable interface. On Mon, Oct 26, 2009 at 10:51 AM, Palani pas...@gmail.com wrote: Hello, I am in the process of converting from gwt 1.5 to 1.7.1 and getting the following error when I am trying to get a HashMap from the server. Any idea why this might happen? I am using JDK 1.6.0_13. The request looks like 5|0|4|http://localhost:54002/Webclient/webclient/| E2C9084EB9E82F1F373FDB40DF5D423D|http://localhost:54002/Webclient/webclient/%7CE2C9084EB9E82F1F373FDB40DF5D423D%7C com.client.web.client.WebClientService|getPropertiesMapNew|1|2|3|4|0| method Return Type shows as class java.util.HashMap typeSignature is java.util.HashMap/962170901 customSerializar is class com.google.gwt.user.client.rpc.core.java.util.HashMap_CustomFieldSerializer args is [[1,[java.util.HashMap/962170901],0,5], {XXX=}] looks like in Method.invoke public static void com.google.gwt.user.client.rpc.core.java.util.HashMap_CustomFieldSerializer.serialize (com.google.gwt.user.client.rpc.SerializationStreamWriter,java.util.HashMap) throws com.google.gwt.user.client.rpc.SerializationException = Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: java.lang.IllegalArgumentException: argument type mismatch at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer (ServerSerializationStreamWriter.java:690) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl (ServerSerializationStreamWriter.java:659) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize (ServerSerializationStreamWriter.java:593) 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.impl.ServerSerializationStreamWriter.serializeClass (ServerSerializationStreamWriter.java:636) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl (ServerSerializationStreamWriter.java:666) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize (ServerSerializationStreamWriter.java:593) 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:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:362) 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:729) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle (ContextHandlerCollection.java:206) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 505) at org.mortbay.jetty.HttpConnection$RequestHandler.content (HttpConnection.java:843) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run
Re: GWT.log listener in hosted mode
Hi Alan, You can use gwt_log or i_log for remote logging gwt logger. Thanks Sudeep On Sun, Oct 25, 2009 at 10:59 PM, al.hicks al.hi...@gmail.com wrote: Hello, I am looking for some help. I want to be able to listen to the GWT.log messages that are output in the hosted mode console and use them in another application. Currently I am only interested in doing this locally. My thoughts are that the simplest way to achieve this is to some how write them to a file? Does anyone know how to do this? Ideally there would be a way that I can do this would modifying the GWT code base. Any help/ advice would be great. Thanks, Alan. --~--~-~--~~~---~--~~ 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: HashMap argument type mismatch
Thanks for the reply. (1) Yes, I am using generics. (2) I am putting only String in the map Below is how the code looks like // method that gets the data from the server public void getPropertiesMap { AsyncCallbackHashMapString, String callback = new AsyncCallbackHashMapString, String() { public void onSuccess(HashMapString, String result) { } public void onFailure(Throwable caught) { System.out.println(caught); } }; service.getPropertiesMap(callback); } // Method declartion in the service ( I tried without the @gwt.typeArgs declaration also). /** * @gwt.typeArgs HashMapString, String */ HashMapString, String getPropertiesMap() throws InvalidSessionException; //Method declaration in ServiceAsync void getPropertiesMap(AsyncCallbackHashMapString, String callback); // Service Impl method public HashMapString, String getPropertiesMap() throws InvalidSessionException { HashMap m = new HashMap(); m.put(XXX, ); return m; } On Oct 26, 12:49 pm, Sudeep S sudee...@gmail.com wrote: 2 quick questions. 1. are u using generics. 2. have all the objects of your hashmap implemented isSeriliazable or Serilizable interface. On Mon, Oct 26, 2009 at 10:51 AM, Palani pas...@gmail.com wrote: Hello, I am in the process of converting from gwt 1.5 to 1.7.1 and getting the following error when I am trying to get a HashMap from the server. Any idea why this might happen? I am using JDK 1.6.0_13. The request looks like 5|0|4|http://localhost:54002/Webclient/webclient/| E2C9084EB9E82F1F373FDB40DF5D423D|http://localhost:54002/Webclient/webclient/%7CE2C9084EB9E82F1F373FDB4... com.client.web.client.WebClientService|getPropertiesMapNew|1|2|3|4|0| method Return Type shows as class java.util.HashMap typeSignature is java.util.HashMap/962170901 customSerializar is class com.google.gwt.user.client.rpc.core.java.util.HashMap_CustomFieldSerializer args is [[1,[java.util.HashMap/962170901],0,5], {XXX=}] looks like in Method.invoke public static void com.google.gwt.user.client.rpc.core.java.util.HashMap_CustomFieldSerializer.serialize (com.google.gwt.user.client.rpc.SerializationStreamWriter,java.util.HashMap) throws com.google.gwt.user.client.rpc.SerializationException = Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: java.lang.IllegalArgumentException: argument type mismatch at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer (ServerSerializationStreamWriter.java:690) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl (ServerSerializationStreamWriter.java:659) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize (ServerSerializationStreamWriter.java:593) 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.impl.ServerSerializationStreamWriter.serializeClass (ServerSerializationStreamWriter.java:636) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl (ServerSerializationStreamWriter.java:666) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize (ServerSerializationStreamWriter.java:593) 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
Re: HashMap argument type mismatch
in your service impl you have not used a generic version of hashmap. try the below code public HashMapString, String getPropertiesMap() throws InvalidSessionException { change from *HashMap m = new HashMap(); to HashMapString,String m = new HashMapString,String(); * m.put(XXX, ); return m; } Thanks Sudeep On Mon, Oct 26, 2009 at 11:38 PM, Palani pas...@gmail.com wrote: Thanks for the reply. (1) Yes, I am using generics. (2) I am putting only String in the map Below is how the code looks like // method that gets the data from the server public void getPropertiesMap { AsyncCallbackHashMapString, String callback = new AsyncCallbackHashMapString, String() { public void onSuccess(HashMapString, String result) { } public void onFailure(Throwable caught) { System.out.println(caught); } }; service.getPropertiesMap(callback); } // Method declartion in the service ( I tried without the @gwt.typeArgs declaration also). /** * @gwt.typeArgs HashMapString, String */ HashMapString, String getPropertiesMap() throws InvalidSessionException; //Method declaration in ServiceAsync void getPropertiesMap(AsyncCallbackHashMapString, String callback); // Service Impl method public HashMapString, String getPropertiesMap() throws InvalidSessionException { *HashMap m = new HashMap(); * m.put(XXX, ); return m; } On Oct 26, 12:49 pm, Sudeep S sudee...@gmail.com wrote: 2 quick questions. 1. are u using generics. 2. have all the objects of your hashmap implemented isSeriliazable or Serilizable interface. On Mon, Oct 26, 2009 at 10:51 AM, Palani pas...@gmail.com wrote: Hello, I am in the process of converting from gwt 1.5 to 1.7.1 and getting the following error when I am trying to get a HashMap from the server. Any idea why this might happen? I am using JDK 1.6.0_13. The request looks like 5|0|4|http://localhost:54002/Webclient/webclient/|http://localhost:54002/Webclient/webclient/%7C E2C9084EB9E82F1F373FDB40DF5D423D| http://localhost:54002/Webclient/webclient/%7CE2C9084EB9E82F1F373FDB4... com.client.web.client.WebClientService|getPropertiesMapNew|1|2|3|4|0| method Return Type shows as class java.util.HashMap typeSignature is java.util.HashMap/962170901 customSerializar is class com.google.gwt.user.client.rpc.core.java.util.HashMap_CustomFieldSerializer args is [[1,[java.util.HashMap/962170901],0,5], {XXX=}] looks like in Method.invoke public static void com.google.gwt.user.client.rpc.core.java.util.HashMap_CustomFieldSerializer.serialize (com.google.gwt.user.client.rpc.SerializationStreamWriter,java.util.HashMap) throws com.google.gwt.user.client.rpc.SerializationException = Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: java.lang.IllegalArgumentException: argument type mismatch at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer (ServerSerializationStreamWriter.java:690) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl (ServerSerializationStreamWriter.java:659) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize (ServerSerializationStreamWriter.java:593) 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.impl.ServerSerializationStreamWriter.serializeClass (ServerSerializationStreamWriter.java:636) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl (ServerSerializationStreamWriter.java:666) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize (ServerSerializationStreamWriter.java:593)
Re: need to execute commands on windows machine from remote server
If you use JAVA application and run that application on the client command you can execute dos commands. This is a GWT mail list so I cant help you. Just write on google.com execute cmd commands JAVA and you will see the solution ;) On Mon, Oct 26, 2009 at 8:33 AM, sathya sathyavik...@gmail.com wrote: is there any procedure to remote access files or remote call any dos or other command on the client computer ? Also I need the respone back after executing cmd. It is not specific to GWT. I just wanted to know is there any procedure to do this in JAVA. On Oct 22, 8:50 am, Lazo Apostolovski qbox2...@gmail.com wrote: Appendix: Fix on my message before I mean You can't call even cd c:\user on the client computer. You cant use GWT to remote access files or remote call any dos or other command on the client computer. :) Greetings! --~--~-~--~~~---~--~~ 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: Native JSON and safe parsing implementation
Hi everyone :) I'm on the go (movie theater time!) and didn't have the time to read all the replies in detail, but it seems like nobody talked about it: There are some nice things inside gwt-rpc-plus : http://code.google.com/p/gwt-rpc-plus http://code.google.com/p/gwt-rpc-plus/source/browse/#svn/trunk/gwt-rpc-plus/gwt/com/dotspots/rpcplus/client/codec You can create loose/strict JSON encoders/decoders using http://code.google.com/p/gwt-rpc-plus/source/browse/trunk/gwt-rpc-plus/gwt/com/dotspots/rpcplus/client/codec/impl/JSONFactory.java Regards, -Etienne --~--~-~--~~~---~--~~ 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 I use GWT to write a Gmail plugin?
As an addon to the browser (Firefox, Chrome, Opera) you can use UserScripts. Search for Gmail User scripts for examples. On Oct 26, 9:28 am, FractalBob ruom...@gmail.com wrote: Hi, I want to provide Gmail with additional functionality, but, if possible, I want to make the implementation browser-independent (I know how to do what I want as a Firefox addon, but what about a Google Chrome addon, or Opera, or...?). Is there any documented way to do this? TIA! Bob --~--~-~--~~~---~--~~ 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 2.0M1 java.lang.NoSuchFieldError WITH ECLIPSE PLUGIN
Hi, I've a problem when I try to compile my dummy Eclipse web project with GWT Module with Google Plugin 1.1.2. The error is this: [ERROR] Unexpected java.lang.NoSuchFieldError: reportUnusedDeclaredThrownExceptionIncludeDocCommentReference at com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions (JdtCompiler.java:208) at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.init (JdtCompiler.java:94) at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java: 253) at com.google.gwt.dev.javac.CompilationState.compile (CompilationState.java:338) at com.google.gwt.dev.javac.CompilationState.refresh (CompilationState.java:247) at com.google.gwt.dev.javac.CompilationState.init (CompilationState.java:116) at com.google.gwt.dev.cfg.ModuleDef.getCompilationState (ModuleDef.java:285) at com.google.gwt.dev.Precompile.precompile(Precompile.java:489) at com.google.gwt.dev.Precompile.precompile(Precompile.java:408) at com.google.gwt.dev.Compiler.run(Compiler.java:194) at com.google.gwt.dev.Compiler$1.run(Compiler.java:145) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java: 89) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger (CompileTaskRunner.java:83) at com.google.gwt.dev.Compiler.main(Compiler.java:152) Anyone has some ideas of the problem? I'm tring to deploy GWT application on Tomcat 6.0.20 directly from Eclipse. Thanks very much 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 -~--~~~~--~~--~--~---
String to Date gwt 1.5
Tengo un problema, quiero pasar un String que viene con formato de fecha a un objeto Date el formato al Date lo puedo hacer, pero no pasar un String a Date --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
The output directory for the project should be set to /Hello/war/WEB-INF/classes
I am setting up the Hello sample GWT project using the Google Plugin for Eclipse. However when I change the output directory for the compiled code (in the Eclipse build path configuration) I get the following error message in my problems view... The output directory for the project should be set to /Hello/war/WEB- INF/classes For all other modules in our application we use the /build directory as the destination for the compiled code. Is there a way to change this default in the google plugin? It would be very helpful to have a consistant project structure across our code base. I have poked around the configuration dialogs and looked in the usual files that eclipse creates for maintaining configuration (.project, .classpath, .settings/*, etc) but don't see anything that hints at a solution. Thanks for any 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: Is there a easy way to remove all the widgets in a cpanel?
You can call the clear() method on any Panel to remove all the child widgets: http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/Panel.html#clear%28%29 -Lane On Oct 26, 8:46 am, Eric erjab...@gmail.com wrote: On Oct 23, 7:43 pm, Ian Bambury ianbamb...@gmail.com wrote: vp = newVerticalPanel(); Ian 2009/10/24 tedpottel tedpot...@gmail.com Is there a easy way to remove all the widget added to a VertocalPanel? So my draw function could simply remove all the old ones, then add the new oners? If you program creates handlers and attaches them to the panel, simply deleting the panel and recreating it risks memory leaks. Respectfully, Eric Jablow --~--~-~--~~~---~--~~ 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 anyone here let me know how to deploy GWT application (gwt 1.7) in tomcat or resin or any external server
Hi Folks, Can anyone here let me know how to deploy GWT application (gwt 1.7) in tomcat or resin or any external web application server. The snapshots will be helpful. --~--~-~--~~~---~--~~ 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 using GET for RPC calls
Hi I am supporting a big application based on GWT 1.4. The developers of this application say that it must use POST methods for all RPC calls but sometimes in Apache logs I can see requests made using GET method. Example: 123.123.123.123 - - [26/Oct/2009:14:00:40 -0500] GET /secure/ userPreferences.rpc HTTP/1.1 500 57 - - 33269 - Could you please advice is it GWT bug or not? Does anybody run into the same issue? Thank you in advance, Vlad --~--~-~--~~~---~--~~ 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 use RestyGWT or external module in general in new (eclipse) project?
Hi, I found a module that sounds exactly what i'm looking for but i am kind of a novice and don't know how to set it up to can use it. I'm using Eclipse with the GWT plugin. I'm talking about RestyGWT, a module that should make it possible to use REST services with the power of RPC in GWT. See: http://github.com/chirino/resty-gwt and http://github.com/chirino/resty-gwt. I really searched the net but can't find anything that helps me. I tried adding libraries, paths external sources etc. etc. etc. but nothing works. I pasted all files in my own project but then it tells me that javax.ws.* cannot be resolved. Can someone please help me with a clear description of how to get this to work in a new project (preferably in Eclipse)? 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 -~--~~~~--~~--~--~---
float exception message to client fix does not work
I tried technique stated in http://astithas.blogspot.com/2007/08/case-of-disappeared-exception-message.html but it does not work. I still get the same old see server log for details. any one with experience on this? --~--~-~--~~~---~--~~ 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 anyone here let me know how to deploy GWT application (gwt 1.7) in tomcat or resin or any external server
If you used the Eclipse plug-in, just copy all of the files in the 'war' to the webapps folder for Tomcat, then deploy it as normal. David On Mon, Oct 26, 2009 at 1:48 PM, Darpan Mhatre darpan27...@gmail.comwrote: Hi Folks, Can anyone here let me know how to deploy GWT application (gwt 1.7) in tomcat or resin or any external web application server. The snapshots will be helpful. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Has anybody ever implemented java.util.UUID in GWT?
Has anybody here successfully managed to implement java.util.UUID in GWT? I have seen some examples of a GWT-specific UUID but it would be nice if it was added to the core JRE emulation library. Any thoughts? --~--~-~--~~~---~--~~ 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: Is there a easy way to remove all the widgets in a cpanel?
Would you like to expand on your reasoning behind that comment? Ian http://examples.roughian.com 2009/10/26 Eric erjab...@gmail.com On Oct 23, 7:43 pm, Ian Bambury ianbamb...@gmail.com wrote: vp = new VerticalPanel(); Ian 2009/10/24 tedpottel tedpot...@gmail.com Is there a easy way to remove all the widget added to a VertocalPanel? So my draw function could simply remove all the old ones, then add the new oners? If you program creates handlers and attaches them to the panel, simply deleting the panel and recreating it risks memory leaks. Respectfully, Eric Jablow --~--~-~--~~~---~--~~ 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 I use GWT to write a Gmail plugin?
Thanks, Mohamed. On Oct 26, 1:45 pm, Mohamed Mansour m0.interact...@gmail.com wrote: As an addon to the browser (Firefox, Chrome, Opera) you can use UserScripts. Search for Gmail User scripts for examples. On Oct 26, 9:28 am, FractalBob ruom...@gmail.com wrote: Hi, I want to provide Gmail with additional functionality, but, if possible, I want to make the implementation browser-independent (I know how to do what I want as a Firefox addon, but what about a Google Chrome addon, or Opera, or...?). Is there any documented way to do this? TIA! Bob --~--~-~--~~~---~--~~ 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 I use GWT to write a Gmail plugin?
I looked at these and, unfortunately, they are only a collection of Greasemonkey scripts. I was hoping for something less of a hack. On Oct 26, 1:45 pm, Mohamed Mansour m0.interact...@gmail.com wrote: As an addon to the browser (Firefox, Chrome, Opera) you can use UserScripts. Search for Gmail User scripts for examples. On Oct 26, 9:28 am, FractalBob ruom...@gmail.com wrote: Hi, I want to provide Gmail with additional functionality, but, if possible, I want to make the implementation browser-independent (I know how to do what I want as a Firefox addon, but what about a Google Chrome addon, or Opera, or...?). Is there any documented way to do this? TIA! Bob --~--~-~--~~~---~--~~ 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: No source code is available for type com.google.gwt.uibinder.client.UiBinder
Apologies Tom. Missed the gwt.xml bit, should solve my issues. Thanks for your time. On Tue, Oct 27, 2009 at 2:00 AM, Thomas Broyer t.bro...@gmail.com wrote: On 26 oct, 10:31, Devraj Mukherjee dev...@gmail.com wrote: Hi all, I am trying to get UiBinder to work from the HelloWorld example. I get the following error although I have the appropriate packages imported. Any ideas? 00:09:21.663 [ERROR] Line 13: No source code is available for type com.google.gwt.uibinder.client.UiBinderU,O; did you forget to inherit a required module? the following modules were imported import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.uibinder.client.*; import com.google.gwt.user.client.ui.*; Those are Java package imports. the error talks about GWT's module inheritance, as in putting the appropriate inherits/ in you module's gwt.xml file. -- The secret impresses no-one, the trick you use it for is everything - Alfred Borden (The Prestiege) --~--~-~--~~~---~--~~ 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't set/get a cookie, lame as that seems
In a click handler for a checkbox to save email, I have the following code: long msecs = 90*24*60*60*1000; // 90 days in milliseconds java.util.Date expDate = new java.util.Date(System.currentTimeMillis() + msecs); Cookies.setCookie(ce, emailField.getText().trim(), expDate, null, Window.Location.getPath(), EsfUtil.isRequestSecure()); GWT.log(checkbox set cookie,null); String cookieEmail = Cookies.getCookie(ce); GWT.log(checkbox get same cookie value as: + cookieEmail,null); Why would it be I cannot retrieve a cookie right after setting it? I'm using GWT 1.7.1. The hosted browser log shows: [INFO] checkbox set cookie [INFO] checkbox get same cookie value as: null I also noted that in my GWT RPC service, the server code does not have the cookie either, so it's not like it is set and then being passed to the server (though I'd expect it to). In reality, this cookie is only for the browser convenience of keeping the email address to aid subsequent logins if they've checked the box to have it. Thanks, David P.S. EsfUtil.isRequestSecure() is just a simple query to see if I'm https or not (in production, it's always https and we to use secure cookies then, but while testing on a local PC it never is) public static boolean isRequestSecure() { return Window.Location.getProtocol().equals(https:); } --~--~-~--~~~---~--~~ 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: HashMap argument type mismatch
Sudeep, I believe that the problem has been resolved now. The problem was that I had the gwt-servlet.jar file in two different locations. One in WEB_INF\lib folder and same copy in another folder which was the main classpath. This was causing the problem. Thank you. = On Oct 26, 1:17 pm, Sudeep S sudee...@gmail.com wrote: in your service impl you have not used a generic version of hashmap. try the below code public HashMapString, String getPropertiesMap() throws InvalidSessionException { change from *HashMap m = new HashMap(); to HashMapString,String m = new HashMapString,String(); * m.put(XXX, ); return m; } Thanks Sudeep On Mon, Oct 26, 2009 at 11:38 PM, Palani pas...@gmail.com wrote: Thanks for the reply. (1) Yes, I am using generics. (2) I am putting only String in the map Below is how the code looks like // method that gets the data from the server public void getPropertiesMap { AsyncCallbackHashMapString, String callback = new AsyncCallbackHashMapString, String() { public void onSuccess(HashMapString, String result) { } public void onFailure(Throwable caught) { System.out.println(caught); } }; service.getPropertiesMap(callback); } // Method declartion in the service ( I tried without the @gwt.typeArgs declaration also). /** * @gwt.typeArgs HashMapString, String */ HashMapString, String getPropertiesMap() throws InvalidSessionException; //Method declaration in ServiceAsync void getPropertiesMap(AsyncCallbackHashMapString, String callback); // Service Impl method public HashMapString, String getPropertiesMap() throws InvalidSessionException { *HashMap m = new HashMap(); * m.put(XXX, ); return m; } On Oct 26, 12:49 pm, Sudeep S sudee...@gmail.com wrote: 2 quick questions. 1. are u using generics. 2. have all the objects of your hashmap implemented isSeriliazable or Serilizable interface. On Mon, Oct 26, 2009 at 10:51 AM, Palani pas...@gmail.com wrote: Hello, I am in the process of converting from gwt 1.5 to 1.7.1 and getting the following error when I am trying to get a HashMap from the server. Any idea why this might happen? I am using JDK 1.6.0_13. The request looks like 5|0|4|http://localhost:54002/Webclient/webclient/|http://localhost:54002/Webclient/webclient/%7C E2C9084EB9E82F1F373FDB40DF5D423D| http://localhost:54002/Webclient/webclient/%7CE2C9084EB9E82F1F373FDB4... com.client.web.client.WebClientService|getPropertiesMapNew|1|2|3|4|0| method Return Type shows as class java.util.HashMap typeSignature is java.util.HashMap/962170901 customSerializar is class com.google.gwt.user.client.rpc.core.java.util.HashMap_CustomFieldSerializer args is [[1,[java.util.HashMap/962170901],0,5], {XXX=}] looks like in Method.invoke public static void com.google.gwt.user.client.rpc.core.java.util.HashMap_CustomFieldSerializer.serialize (com.google.gwt.user.client.rpc.SerializationStreamWriter,java.util.HashMap) throws com.google.gwt.user.client.rpc.SerializationException = Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: java.lang.IllegalArgumentException: argument type mismatch at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer (ServerSerializationStreamWriter.java:690) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl (ServerSerializationStreamWriter.java:659) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize (ServerSerializationStreamWriter.java:593) 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
EclEmma update/fix?
Hi! I'm trying out EclEmma with GWT, and though it runs perfectly well with JUnit tests, the available patch at http://code.google.com/p/google-web-toolkit/source/browse/tools/redist/emma/README.txt is com.mountainminds.eclemma.core_1.3.2.jar, but the latest EclEmma release has a newer file: com.mountainminds.eclemma.core_1.4.3.jar. Is there a way to get an updated version? The idea of modifying the patch file by hand somehow doesn't seem too attractive... 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: EasyMock for GWT + MVP ?
On Oct 25, 5:26 pm, lowecg2004 chris.lowe...@gmail.com wrote: As Arthur said, calling GWTMockUtilities.disarm() will prevent that error (that was in part 2 of my article :) As for needing asm-attrs.jar, I guess try it - any NoClassDefFoundError that looks asm related then that will answer your question... Hi! Thanks for the help -- and as of now, everything is running fine without asm-attrs.jar, though I'll keep it in mind just in case.. ;-) --~--~-~--~~~---~--~~ 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: Insert addthis-button in GWT
Hi Bryan, many thanks for your answer. But I need more help, I'm afraid... I tried the following: code Document doc = Document.get(); ScriptElement script = doc.createScriptElement(); script.setSrc(http://s7.addthis.com/js/250/ addthis_widget.js#pub=xa-4ae3631c6412b94f); script.setType(text/javascript); script.setInnerHTML(a class=\addthis_button\ href=\http:// www.addthis.com/bookmark.php?v=250amp;pub=xa-4ae3631c6412b94f\img src=\http://s7.addthis.com/static/btn/v2/lg-bookmark-en.gif\; width= \125\ height=\16\ alt=\Bookmark and Share\ style=\border:0\// a); doc.getBody().appendChild(script); /code But nothing showed up. Is it correct to user setInnerHTML here? Or how can I link the script and the html-Tag? Thanks for any clue, Vokke On 24 Okt., 23:12, Bryan bryan.verg...@gmail.com wrote: Add the script separately: Document doc = Document.get(); ScriptElement script = doc.createScriptElement(); script.setSrc(http://...;); doc.getBody().appendChild(script); Then you can add the rest of the HTML and it should work. b On Oct 24, 1:32 pm, vokke vkub...@gmail.com wrote: Hello newsgroup. I want to insert an addthis-button to my GWT-Project. When I try to insert the html-code into an HTML-Widget or HTMLPanel- Widget, the button shows up, but does not work properly. It als works when I put it inside the body-tags on the base html page. What do I do wrong? Here's the addthis-button code: code !-- AddThis Button BEGIN -- a class=addthis_button href=http://www.addthis.com/bookmark.php? v=250amp;pub=xa-4ae3631c6412b94fimg src=http://s7.addthis.com/ static/btn/v2/lg-bookmark-en.gif width=125 height=16 alt=Bookmark and Share style=border:0//ascript type=text/ javascript src=http://s7.addthis.com/js/250/ addthis_widget.js#pub=xa-4ae3631c6412b94f/script !-- AddThis Button END -- /code --~--~-~--~~~---~--~~ 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 Maven plugin broken?
I was pointed to this link: http://mojo.codehaus.org/gwt-maven-plugin/user-guide/archetype.html I did this: mvn archetype:generate \ -DarchetypeGroupId=org.codehaus.mojo \ -DarchetypeArtifactId=gwt-maven-plugin \ -DarchetypeVersion=1.1 \ -DgroupId=gwtsandbox \ -DartifactId=myFirstGWTApp but got and error [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference :template = archetype-resources/pom.xml [line 30,column 16] : ${gwt.version} is not a valid reference. [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference :template = archetype-resources/pom.xml [line 36,column 16] : ${gwt.version} is not a valid reference. [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference :template = archetype-resources/pom.xml [line 85,column 21] : ${maven.compiler.source} is not a valid reference. [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 86,column 21] : ${maven.compiler.target} is not a valid reference. [INFO] any ideas on why the Maven GWT plugin could be broken? saurabh wrote: Hi, did u try gwt-maven-plugin? here is link for ref, http://mojo.codehaus.org/gwt-maven-plugin/user-guide/archetype.html Regards, Saurabh On Oct 26, 10:46 am, J.V. jvsr...@gmail.com wrote: I'm trying to get a first app up and running with GWT. What I would like to do is download the jars and compile with maven2. Has anyone been able to do this successfully? I can not find any documentation anywhere that actually leads me to a working example. Are the latest 1.7.1 jars available in any public maven repo? Is there any sort of commitment at all from Google to support Maven2? If anyone can help on getting GWT to compile/work with maven I will post the instructions for others in a readable format. If I'm the first to try and get this to run with Maven, let me know. thanks J.V. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Problem in Debian Squeeze
I'm trying to run my project in debian squeeze (testing) but i got this error: ** Unable to load Mozilla for hosted mode ** java.lang.UnsatisfiedLinkError: /home/eduardo/Desktop/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.linux_1.7.1.v200909221731/gwt-linux-1.7.1/mozilla-1.7.12/libxpcom.so: libstdc++.so.5: cannot open shared object file: No such file or directory I tried to install using aptitude, but the only package available to install is libstdc++6. Does anyone have experienced this??? any workaround to do?? -- Eduardo Henrique Analista de Sistemas SoftSite Tecnologia - www.softsite.com.br +55 (85) 3273-1476 --~--~-~--~~~---~--~~ 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 Navigation
Thanks for the reply. Are there any code examples? All the application samples on the GWT download package (Mail, Showcase, etc.) are single screen applications. None of them are good at showing how you navigate from one screen to the next even though you have only a HTML page defined. BTW: looking at the Who's using GWT: http://code.google.com/webtoolkit/whos_using_gwt.html I could find very little of GWT code looking at the source on the browser. Actually most of the JavaScript is hand written, and most are php shops :( On Oct 26, 1:17 pm, Thomas Broyer t.bro...@gmail.com wrote: On 26 oct, 03:59, compuroad wilson.ferreira...@gmail.com wrote: I am new to GWT. The hardest thing for me is to understand the navigationpart. Let's say in the home page (index.html) there is no functionality just plain HTML and text, which is the case of lots web sites. In that case can I start with a plain HTML file (not generated by GWT? If yes where do I put the EntryPoint? Also, how many EntryPoint can I have in one application? Just to correct others: you can have as many entry-points as you like in an application, they'll be run one after the other (gwt-log for instance has its own entry point to initialize some stuff). As for your overall question, have a look athttp://code.google.com/events/io/2009/sessions/ProgressivelyEnhanceAj... as an example of how you can integrate GWT in *any* HTML page. --~--~-~--~~~---~--~~ 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 is server side script selection
Hi Jason, Could you tell me if there is any online documentation available on this one please. coz i couldn't find any which explains the process in detail. Thank you, bala. On Sun, Oct 25, 2009 at 11:31 AM, Jason Essington jas...@greenrivercomputing.com wrote: Sounded to me like it does the same thing that the [modulename].nocache.js file does. only it does it on the server rather than in the client, reducing the number of connections required, as well as the bytes transferred. -jason On Oct 24, 2009, at 11:56 PM, balachandra maddina wrote: Hi There, I've just seen the Google Wave video in the i/o session web page and one of the interesting talks in it is Server Side Script Selection. i tried finding any details available on it but got no results. could any one share the details of Server Side Script Selection. probably a link or something please. your help is much appreciated. Thank you, bala. --~--~-~--~~~---~--~~ 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 to execute commands on windows machine from remote server
I have client machines on which I need to automatically start xyz.exe application and monitor this. I need to automatically login into client system and invoke xyz.exe application with known username and passwords. On Oct 26, 11:34 pm, QBox qbox2...@gmail.com wrote: If you use JAVA application and run that application on the client command you can execute dos commands. This is a GWT mail list so I cant help you. Just write on google.com execute cmd commands JAVA and you will see the solution ;) On Mon, Oct 26, 2009 at 8:33 AM, sathya sathyavik...@gmail.com wrote: is there any procedure to remote access files or remote call any dos or other command on the client computer ? Also I need the respone back after executing cmd. It is not specific to GWT. I just wanted to know is there any procedure to do this in JAVA. On Oct 22, 8:50 am, Lazo Apostolovski qbox2...@gmail.com wrote: Appendix: Fix on my message before I mean You can't call even cd c:\user on the client computer. You cant use GWT to remote access files or remote call any dos or other command on the client computer. :) Greetings!- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Exception in thread main java.lang.NoClassDefFoundError: com/google/gwt/dev/HostedMode
Hi, I am getting following error when I try to run my web application in hosted mode.Till now I was able to run it properly but I don't know from today morning I am getting this error, also I have not made any changes to the lib folder as well. Can any one please let me know how to eliminate this problem? Thanks in advance. Exception in thread main java.lang.NoClassDefFoundError: com/google/ gwt/dev/HostedMode Caused by: java.lang.ClassNotFoundException: com.google.gwt.dev.HostedMode 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:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) Could not find the main class: com.google.gwt.dev.HostedMode. Program will exit --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
HTTP RESPONSE Header returning Garbage
I try to make a connection using: Request Headers Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language en-US,en;q=0.8,en-us;q=0.6,fr;q=0.4,fr-fr;q=0.2 Accept-Encoding gzip,deflate Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive 300 Connection keep-alive Content-Typetext/x-gwt-rpc; charset=utf-8 Referer http://www.domain.com.mx/C/votaciones/FA5BF2FC2792E927F4C296EE224A891F.cache.html Content-Length 193 Pragma no-cache Cache-Control no-cache the server response is: ���2�� � �'mx/server/MySQLConnection � �3com/google/gwt/user/ server/rpc/RemoteServiceServlet � �$mx/client/ DBConnection � conn � Ljava/sql/Connection; � url � Ljava/lang/ String; � user � pass � init � ()V � Code � � � � � � � �!jdbc:mysql://localhost/votaciones� � � � � � root � � � � � �� � � � � �! � com.mysql.jdbc.Driver #�% �$ � java/lang/Class �' � forName �%(Ljava/lang/String;)Ljava/ lang/Class; #�) �*�+ � newInstance � ()Ljava/lang/Object; -�/ �. � java/sql/DriverManager �0�1 � getConnection �M(Ljava/lang/String;Ljava/lang/String;Ljava/lang/ String;)Ljava/sql/Connection; �3�5 �4 � java/lang/System �6�7 � err � Ljava/io/PrintStream; �9 � java/lang/ StringBuilder �; � Fail en la Conexion = 8�= � � (Ljava/lang/String;)V This is only seen using Firebug and I have no idea why, any help?? I am having serious issues deploying the whole project in my remote server and so far I've found nothing to help me with that =S --~--~-~--~~~---~--~~ 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 anyone here let me know how to deploy GWT application (gwt 1.7) in tomcat or resin or any external server
What if I (locally) was able to run the server without using tomcat?? (at least seemingly) On Oct 26, 2:50 pm, Yozons Support on Gmail yoz...@gmail.com wrote: If you used the Eclipse plug-in, just copy all of the files in the 'war' to the webapps folder for Tomcat, then deploy it as normal. David On Mon, Oct 26, 2009 at 1:48 PM, Darpan Mhatre darpan27...@gmail.comwrote: Hi Folks, Can anyone here let me know how to deploy GWT application (gwt 1.7) in tomcat or resin or any external web application server. The snapshots will be helpful. --~--~-~--~~~---~--~~ 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't set/get a cookie, lame as that seems
All I can tell you is that, anecdotally, cookies work for me. The only difference in my code is that I'm not retrieving it immediately (if that *is* a problem it is an easy one to get around) and I'm only using it with the simple key/value API, i.e., I'm not setting any expiry or anything else. On Oct 26, 5:48 pm, Open eSignForms yoz...@gmail.com wrote: In a click handler for a checkbox to save email, I have the following code: long msecs = 90*24*60*60*1000; // 90 days in milliseconds java.util.Date expDate = new java.util.Date(System.currentTimeMillis() + msecs); Cookies.setCookie(ce, emailField.getText().trim(), expDate, null, Window.Location.getPath(), EsfUtil.isRequestSecure()); GWT.log(checkbox set cookie,null); String cookieEmail = Cookies.getCookie(ce); GWT.log(checkbox get same cookie value as: + cookieEmail,null); Why would it be I cannot retrieve a cookie right after setting it? I'm using GWT 1.7.1. The hosted browser log shows: [INFO] checkbox set cookie [INFO] checkbox get same cookie value as: null I also noted that in my GWT RPC service, the server code does not have the cookie either, so it's not like it is set and then being passed to the server (though I'd expect it to). In reality, this cookie is only for the browser convenience of keeping the email address to aid subsequent logins if they've checked the box to have it. Thanks, David P.S. EsfUtil.isRequestSecure() is just a simple query to see if I'm https or not (in production, it's always https and we to use secure cookies then, but while testing on a local PC it never is) public static boolean isRequestSecure() { return Window.Location.getProtocol().equals(https:); } --~--~-~--~~~---~--~~ 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 anyone here let me know how to deploy GWT application (gwt 1.7) in tomcat or resin or any external server
There are many ways to do this, but what you'll probably want to do is create a WAR file of the contents in your war directory (using the jar command) and then copy that into the webapps folder of tomcat, or the deploy folder of jboss, etc. On Oct 26, 1:48 pm, Darpan Mhatre darpan27...@gmail.com wrote: Hi Folks, Can anyone here let me know how to deploy GWT application (gwt 1.7) in tomcat or resin or any external web application server. The snapshots will be helpful. --~--~-~--~~~---~--~~ 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: Reading from a property file in GWT
You've already been answered, but I'll elaborate a bit. I'm going to assume you mean reading a property file in the client. If you mean reading a property file in the server then you should look at java.util.Properties. If you don't want to set up a service to obtain the contents of this properties file then you're going to need to have something on the server parse it (see java.util.Properties above), and then write the contents dynamically (say, with JSP) into the client page so that your GWT javascript can access it. As others have pointed out, you can then use Dictionary to pick up the values you're after (although I prefer to use JSNI and avoid using a Dictionary). I haven't used Constants before, but it looks interesting ... that might be an easier route. Good luck! On Oct 26, 9:04 am, Praveen Prabakaran p.prave...@gmail.com wrote: Hi, There's a URL in my GWT application which is hard-coded in a java file. I need to change this by creating a property file which contains the URL in the form of a key-value pair. But I'm not able to do so. Is this a limitation in GWT? Can I not use GWT to read from a property file and print it? .Also please let me know how to include a external package (for eg. com.google.gwt.core.ext.typeinfo) in GWT. Warm Regards, Praveen. --~--~-~--~~~---~--~~ 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: Reading from a property file in GWT
Hi, It is possible. create a java file which is like below public interface LoginConstants extends com.google.gwt.i18n.client.Messages{ @DefaultMessage(Logging in..) @Key(loggingIn.msg) String loggingIn_msg(); } And in the .properties file u just have to access this like below loggingIn.msg = Logging in.. This works fine... On Oct 27, 9:48 am, rjcarr rjc...@gmail.com wrote: You've already been answered, but I'll elaborate a bit. I'm going to assume you mean reading a property file in the client. If you mean reading a property file in the server then you should look at java.util.Properties. If you don't want to set up a service to obtain the contents of this properties file then you're going to need to have something on the server parse it (see java.util.Properties above), and then write the contents dynamically (say, with JSP) into the client page so that your GWT javascript can access it. As others have pointed out, you can then use Dictionary to pick up the values you're after (although I prefer to use JSNI and avoid using a Dictionary). I haven't used Constants before, but it looks interesting ... that might be an easier route. Good luck! On Oct 26, 9:04 am, Praveen Prabakaran p.prave...@gmail.com wrote: Hi, There's a URL in my GWT application which is hard-coded in a java file. I need to change this by creating a property file which contains the URL in the form of a key-value pair. But I'm not able to do so. Is this a limitation in GWT? Can I not use GWT to read from a property file and print it? .Also please let me know how to include a external package (for eg. com.google.gwt.core.ext.typeinfo) in GWT. Warm Regards, Praveen. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Is it possible to create custom widget?
Hi all, I just create a suggestBox with RPC source, and I want to use it in couple of formpanel in difference pages, is it possible? Would you mind to tell me how and where can I found the information abou that. Thank you very much. c...@hk --~--~-~--~~~---~--~~ 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 anyone here let me know how to deploy GWT application (gwt 1.7) in tomcat or resin or any external server
Yes just upload the war file to web and it should work well... On Oct 27, 9:40 am, rjcarr rjc...@gmail.com wrote: There are many ways to do this, but what you'll probably want to do is create a WAR file of the contents in your war directory (using the jar command) and then copy that into the webapps folder of tomcat, or the deploy folder of jboss, etc. On Oct 26, 1:48 pm, Darpan Mhatre darpan27...@gmail.com wrote: Hi Folks, Can anyone here let me know how to deploy GWT application (gwt 1.7) in tomcat or resin or any external web application server. The snapshots will be helpful. --~--~-~--~~~---~--~~ 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: Is it possible to create custom widget?
I tried to import that class in and it able to show a suggestbox in new page, but it is not able to got the data from server side, I guess the problem should be on the RPC connection, please help, thank you very much. c...@hk On Oct 27, 1:23 pm, Cage cage...@gmail.com wrote: Hi all, I just create a suggestBox with RPC source, and I want to use it in couple of formpanel in difference pages, is it possible? Would you mind to tell me how and where can I found the information abou that. Thank you very much. c...@hk --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---