Re: Sending long parameter via cross-site JSON
I found such solution: 1) split long text into array Arr of shorter strings 2) go through for loop of Arr and send Arr[i] texts with index i as parameter 3) store into database fragmets of text with sequenseNo = i; 4) when you need to get all text get all text from sequenced fragments. Still don't know is it the best solution.. On 27 Rugs, 20:23, Ben benzhe...@gmail.com wrote: Is it possible to move this into body instead of put it in parameter? I think that is a good way to go. On Sep 26, 12:57 am, Hlunboi hlungu...@gmail.com wrote: Hi, I have similar requirement. Anyone who implement this? Regards Hlun On Thu, Sep 24, 2009 at 5:36 PM, Gintare Ragaisiene gintare.ragaisi...@gmail.com wrote: Hello, I'm developing GWT UI that talks with my server via JSON. I do access of service by passing url like this : http://localhost:8080/crmsfa/control/saveEmailViaJson?message=message... to function: public void callJsonService(String url){ url = URL.encode(url) + callback=; System.out.println(url = +url); singleton.getJson(this.jsonRequestId++, url, singleton); } /** * Make call to remote server. */ private native void getJson(int requestId, String url, AccessRemoteJsonService handler) /*-{ var callback = callback + requestId; var script = document.createElement(script); script.setAttribute(src, url+callback); script.setAttribute(type, text/ javascript); window[callback] = function(jsonObj) { handl...@org.opentaps.gwt.crmsfa.mailbox.client.form.json.accessremotejsonservice ::handleJsonResponse (Lcom/google/gwt/core/client/JavaScriptObject;)(jsonObj); window[callback + done] = true; } // [4] JSON download has 1-second timeout. setTimeout(function() { if (!window[callback + done]) { handl...@org.opentaps.gwt.crmsfa.mailbox.client.form.json.accessremotejsonservice ::handleJsonResponse (Lcom/google/gwt/core/client/JavaScriptObject;)(null); } // [5] Cleanup. Remove script and callback elements. document.body.removeChild(script); delete window[callback]; delete window[callback + done]; }, 3000); // [6] Attach the script element to the document body. document.body.appendChild (script); }-*/; I did this by following tutorial in http://code.google.com/intl/lt/webtoolkit/tutorials/1.6/Xsite.html . The question is, how to pass a really long parameter string message1 to service? It seems, that parameter string of 5000 chars is too log to fit in url. Thanks, Gintare --~--~-~--~~~---~--~~ 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: Server-only functions
On Sep 16, 10:13 am, Asko Saura asko.sa...@gmail.com wrote: I've got a bunch of DTOs which include some housekeeping methods used by another framework, which I use on the server side. Getting to reuse these objects on the client side would be absolutely great. I can't use them now, because they happen to include some server-only dependencies in methods. My own plan is to add a @ServerOnly annotation on those few methods. This is what I ended up doing: SampleDto is one of the many DTO classes I use. It includes a few non-persistent (method-level) dependencies to a server-only framework. I use a script to autogenerate a source version of SampleDto with all the server-only stuff left out. Thus, I've got two versions of each DTO source: SampleDto.java - for server use SampleDto.java - for client use I compile the server versions into .class files. Then I include a .gwt.xml file describing them as a gwt module and put the .class files and the client .java files in a jar file. It seems to work. On the server, I've got access to all the server functions. On the client, I've got access to the rest. Apparently (I've not verified it), GWT/RPC works based only on the .java files set in the gwt module using source-path/. The obvious downside is having to deal with two versions of source. However, this kind of stuff is very straightforward to automatize; I don't normally need to see the client-only .java code at all. The obvious upside is getting to use the same DTO code on the server and the client without having to build the thing from the ground up based on GWT constraints. What have I missed? What are the non-obvious downsides? --~--~-~--~~~---~--~~ 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: Using JSNI to export classname and static method
Here you have a useful tutorial: http://code.google.com/p/gwtchismes/wiki/Tutorial_ExportingGwtLibrariesToJavascript_es On Tue, Sep 15, 2009 at 4:08 PM, Thomas Broyer t.bro...@gmail.com wrote: On 15 sep, 15:34, John O#39;Conner jsocon...@gmail.com wrote: Hi all, I want to export my class so that it is available in native JavaScript. The GWT class is this: public class CookieMgr { ... public static CookieMgr getInstance() { ... } } I want the *entire* class exported to JS so that it can be used as this: var cm = CookieMgr.getInstance(); I can't quite see how this would be done, although I can understand how to export just the getInstance method alone. Any ideas? Have a look at GWT-Exporter http://code.google.com/p/gwt-exporter/ --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
migration
hi does anyone know a good websites or documents on how to migrate from gwt 1.5 to gwt 1.7 and what i need to change in the codes.. thanks ~~~With 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: migration
On 28 sep, 10:38, muhannad nasser muhannadna...@gmail.com wrote: hi does anyone know a good websites or documents on how to migrate from gwt 1.5 to gwt 1.7 and what i need to change in the codes.. How about the GWT documentation? http://code.google.com/webtoolkit/doc/1.7/ReleaseNotes_1_7.html#Upgrading Also, if you use an IDE such as Eclipse, you'll have a bunch of deprecation warnings; and looking at the JavaDoc for the deprecated methods will give you hints about what you should use instead. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: migration
thanks.. i am reading how to update from 1.5 to 1.6and because 1.7 is mostly a bug fixing version i think i won't find much deferences between 1.6 and 1.7 any better ideas... thanks On Mon, Sep 28, 2009 at 10:49 AM, Thomas Broyer t.bro...@gmail.com wrote: On 28 sep, 10:38, muhannad nasser muhannadna...@gmail.com wrote: hi does anyone know a good websites or documents on how to migrate from gwt 1.5 to gwt 1.7 and what i need to change in the codes.. How about the GWT documentation? http://code.google.com/webtoolkit/doc/1.7/ReleaseNotes_1_7.html#Upgrading Also, if you use an IDE such as Eclipse, you'll have a bunch of deprecation warnings; and looking at the JavaDoc for the deprecated methods will give you hints about what you should use instead. -- ~~~With 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: migration
lol i figured out to do the same as the documentation says :P On Mon, Sep 28, 2009 at 11:01 AM, muhannad nasser muhannadna...@gmail.comwrote: thanks.. i am reading how to update from 1.5 to 1.6and because 1.7 is mostly a bug fixing version i think i won't find much deferences between 1.6 and 1.7 any better ideas... thanks On Mon, Sep 28, 2009 at 10:49 AM, Thomas Broyer t.bro...@gmail.comwrote: On 28 sep, 10:38, muhannad nasser muhannadna...@gmail.com wrote: hi does anyone know a good websites or documents on how to migrate from gwt 1.5 to gwt 1.7 and what i need to change in the codes.. How about the GWT documentation? http://code.google.com/webtoolkit/doc/1.7/ReleaseNotes_1_7.html#Upgrading Also, if you use an IDE such as Eclipse, you'll have a bunch of deprecation warnings; and looking at the JavaDoc for the deprecated methods will give you hints about what you should use instead. -- ~~~With 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 -~--~~~~--~~--~--~---
GWT War File Sizes
Hi everyone, I'm currently uploading our latest war files to our server for deployment. I've noticed even though the JS files are only about 400Kb, all my war files (we have multiple war files for our deployment) are around 30MB each. Closer inspection with winzip shows that the majority of this size are the jars in the lib folder - nearly all of them being GWT client jar libraries and module libraries. I don't understand why they are needed in my war files as they are only used for compliation of the client to JavaScript, not for any servlets. I haven't been able to Google any answers to why GWT does this or what would happen if I removed the jars from the deployment, so was wondering if anyone had an answer to why the war keeps including all these library jar files, if there is a simple ant script to remove them from future war files and if I will face any problems with deployment later on by doing this? If they jars are just included by default for no reason other than the build.xml file not being written properly, it would be nice for a future version of GWT properties file to include an option to remove these during war file packaging so the wars are only a few hundred Kb and take minutes to upload over my ADSL connection as opposed to the hours its taking now! Just in case, I'm using Netbeans with GWT4NB plugin (just in case its an issue with that and not GWT) Thanks, David --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Remote controlling an iframe
I want to embed a mini web browser into my app (for help text). I've seen this done before on other sites. I want to load the help pages into an iframe, and then use GWT widgetry to listen for onload events, determine the page title, go forwards and back, and remotely set the URL. I've looked into writing my own, but managing all the interactions between onload events, Javascript security issues, and so on looks horrendously complex involving lots of hairy JSNI. So, before I go ahead, has anybody already done this and is the code available? All my files are going to come from the same domain, so hopefully security *shouldn't* be a problem... -- ┌─── dg@cowlark.com ─ http://www.cowlark.com ─ │ │ They laughed at Newton. They laughed at Einstein. Of course, they │ also laughed at Bozo the Clown. --- Carl Sagan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT War File Sizes
David G wrote: [...] I haven't been able to Google any answers to why GWT does this or what would happen if I removed the jars from the deployment, so was wondering if anyone had an answer to why the war keeps including all these library jar files, if there is a simple ant script to remove them from future war files and if I will face any problems with deployment later on by doing this? It doesn't do that for me. How are you telling GWT about the client libraries? What I do is to put the client jars in /lib in my project and then add them to the build path. Everything builds happily and they're not copied to the war directory. The only jars I put in war/WEB-INF/lib are the ones that the server is going to use. I've never seen GWT copy stuff automatically. Note, though, that if you call any function in your client jars *from the server*, then the server will need to access them. I don't know what happens in this case --- it's never come up for me. It's conceivable that this is what's happening with you, and GWT is copying them because it thinks they're needed. -- ┌─── dg@cowlark.com ─ http://www.cowlark.com ─ │ │ They laughed at Newton. They laughed at Einstein. Of course, they │ also laughed at Bozo the Clown. --- Carl Sagan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Getting usable output from a RichTextArea
Hi, can someone here give me an example of how to get a usable output from a RichTextArea? When I'm using getHTML() to get the content of the area the output varies from browser to browser. This makes it impossible for me interpret the output and store it in a database. Using getText() is not an option as all the 'Rich' features are lost. Is there any way to get consistent output regardless of what browser the user of my application uses? Thanks in advance for any help. Greetings Peer --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
MouseHandler receives too much events
Hello, I implemented my own dragable panel widget for GWT and have some problems. I already searched this group using some keywords but could not find anything. Inside my test environment, such panels are added to a DockPanel. I then use addStyleName(...) in the on-click-down-handler to change the style in such a way that my dragable (which extends SimplePanel) is absolutely positionable during dragging : { position:absolute; z- index:100; } . I remove that style-name after the drag-operation and because of that, it flips back to the position where I started dragging it (which I want it to do). The problem: If I drag one of my panels, it afterwards a) in hosted mode receives all mouse-events instead of those which are in it's area - result: Me being confused about not being able to click any menu-buttons (for example reload) in the hosted browser anymore! This stops after I refocus the window. b) in Firefox 2 receives all events in the area where the dragable has previously been when i stopped dragging. At least I assume that, I did not check this scientifically till now, but it's definitely the wrong area :( The mouse-listeners of GWT I use are: MouseDownHandler, MouseUpHandler and MouseMoveHandler. I test on Windows XP using GWT 1.7.0 (eclipse plugin) and JDK 1.6.0. The click-events seem not to be chosen directly by the browser-engine (by using onClick as an attribute of the clickable element), but from some mouse-observing feature in GWT. I of course can check manually if the event really occured inside the widget, but then it's still buggy in the hosted browser (all mouse- click events for the browser will be sent to my widget) and all the events being sent around make me wonder if GWT's mouse-observing engine (it seems to use such) is so very effective ;) Hope somebody can help me with 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 -~--~~~~--~~--~--~---
TextArea Wrap problem in firefox
For a long string afsfsafsdfassfdsfsdafsfdfsdfsdfsdfsafasfdfafds in the textarea, it can be wrapped in IE but it's different story in Firefox. It is not wrapped. It shows horizontal scroll bar. How can I do to wrap the long string in Firefox? --~--~-~--~~~---~--~~ 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: turn off the war output of HostedMode
Has anybody any idea ? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
JavaScriptException with method Label.setInnerText(String s) but works good with FireFox
Hi all, Today i restart my eclipse and when i launch my application on Hosted mode, i have the following problem : [ERROR] Unable to load module entry point class com.perso.test.client.Test (see associated exception for details) com.google.gwt.core.client.JavaScriptException: (Error): number: -2147467259 description: at com.google.gwt.dom.client.DOMImplTrident.setInnerText(Native Method) at com.google.gwt.dom.client.Element$.setInnerText$(Element.java:450) at com.perso.test.client.Test.onModuleLoad(Test.java:61) The problem occurs on the following lines : g.setWidget(0, 0, new Label(Login : )); It's the first label created. When i compile my code, same problem on IE but it works good with FireFox. Any ideas ? Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Input Korean
I input Korean into GWT EXT TextArea but it just stored ??? into MySQL. It seems to be stored broken. How can I input foreign language - in this case, Korean - in GWT? --~--~-~--~~~---~--~~ 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: Sending long parameter via cross-site JSON
Hi Gintare, Can you post sample code for your solution. Regards Hlun On Mon, Sep 28, 2009 at 12:16 PM, Gintare Ragaisiene gintare.ragaisi...@gmail.com wrote: I found such solution: 1) split long text into array Arr of shorter strings 2) go through for loop of Arr and send Arr[i] texts with index i as parameter 3) store into database fragmets of text with sequenseNo = i; 4) when you need to get all text get all text from sequenced fragments. Still don't know is it the best solution.. On 27 Rugs, 20:23, Ben benzhe...@gmail.com wrote: Is it possible to move this into body instead of put it in parameter? I think that is a good way to go. On Sep 26, 12:57 am, Hlunboi hlungu...@gmail.com wrote: Hi, I have similar requirement. Anyone who implement this? Regards Hlun On Thu, Sep 24, 2009 at 5:36 PM, Gintare Ragaisiene gintare.ragaisi...@gmail.com wrote: Hello, I'm developing GWT UI that talks with my server via JSON. I do access of service by passing url like this : http://localhost:8080/crmsfa/control/saveEmailViaJson?message=message... to function: public void callJsonService(String url){ url = URL.encode(url) + callback=; System.out.println(url = +url); singleton.getJson(this.jsonRequestId++, url, singleton); } /** * Make call to remote server. */ private native void getJson(int requestId, String url, AccessRemoteJsonService handler) /*-{ var callback = callback + requestId; var script = document.createElement(script); script.setAttribute(src, url+callback); script.setAttribute(type, text/ javascript); window[callback] = function(jsonObj) { handl...@org.opentaps.gwt.crmsfa.mailbox.client.form.json.accessremotejsonservice ::handleJsonResponse (Lcom/google/gwt/core/client/JavaScriptObject;)(jsonObj); window[callback + done] = true; } // [4] JSON download has 1-second timeout. setTimeout(function() { if (!window[callback + done]) { handl...@org.opentaps.gwt.crmsfa.mailbox.client.form.json.accessremotejsonservice ::handleJsonResponse (Lcom/google/gwt/core/client/JavaScriptObject;)(null); } // [5] Cleanup. Remove script and callback elements. document.body.removeChild(script); delete window[callback]; delete window[callback + done]; }, 3000); // [6] Attach the script element to the document body. document.body.appendChild (script); }-*/; I did this by following tutorial in http://code.google.com/intl/lt/webtoolkit/tutorials/1.6/Xsite.html . The question is, how to pass a really long parameter string message1 to service? It seems, that parameter string of 5000 chars is too log to fit in url. Thanks, Gintare --~--~-~--~~~---~--~~ 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: SmartGWT Extensions
Nope, it's not stupid, and it is a good suggestion. The example I am using shows 'id' as integer, 'name' as String, and 'date' as Date. So, I made those changes. I did manage to fix this issue. What I did was to look again at the sample and realized at the bottom of the DataSource code and noticed I need to have a copyValues method and valueOf method.. Ok, so here is a new issue you can help me with. I have an object that has some child data. So, I presume that in my DTO, I want to have an ArrayList of that child-object. Is that correct? And thanks again for the help! Tom On Fri, Sep 25, 2009 at 4:06 PM, g p ghost...@gmail.com wrote: I know this might sound stupid, but always double check the names between the ListGridField and the DataSourceField . If the do not exactly match the data won't be pulled by the ListGrid. A good way to make sure your ListGrid works with your DataSource is to set the DataSource as clientOnly and use some test data. When you are ready with the ListGrid, switch it to server bound DataSource and debug your CRUD methods. But, theSmartGWTListGrid shows 23 rows, and the right column names, but no data is listed there. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Project Structure in GWT-2.0
Can anyone tell me if there are plans to rework the way the current GWT project structure is configured for 2.0? Mxing the source and compiled code in the /war folder has been a real pain in the butt for build scripts and source control. I've been trying to mavenize our project, and find the various solutions to be un-elegant hacks that wind up confusing the structure even more. --~--~-~--~~~---~--~~ 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: Server-only functions
On 9月28日, 午後4:04, Asko Saura asko.sa...@gmail.com wrote: I compile the server versions into .class files. Then I include a .gwt.xml file describing them as a gwt module and put the .class files and the client .java files in a jar file. I compile the server versions into .class files. Then I include a .gwt.xml file describing them as a gwt module and put the .class files and the client .java files in a jar file. Why don't you use the super-source? For example === src/xxx/yyy/Sample.gwt.xml src/xxx/yyy/server/SampleDto.java super/xxx/yyy/translatable/xxx/yyy/server/SampleDto.java The src is source directory. The super is normal directory. For both SampleDto.java, the package declaration is xxx.yyy.server. Sample.gwt.xml with the following contents: source path=client / super-source path=translatable / then On the server, xxx.yyy.server.SampleDto.java is used. On the client, xxx.yyy.translatable.xxx.yyy.server.SampleDto.java is used. === The super-source brings me the code separation between the client and the server. But I think GWT people don't want this, too. I really hope an @ServerOnly type annotation will be supported. -- buffeirngs --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Plugin not displayed in Eclipse
Hi, Could you go to Window Preferences and see if the Google category is on the left? If not, it may not have gotten installed properly. In this case, could you see if in your workspace directory, you have a file located at .metadata/.log? What flavor of Eclipse are you using? (e.g. Eclipse for Java EE, Eclipse for Java, etc.) Also, what perspective are you currently in? Thanks, jason On Sat, Sep 26, 2009 at 6:19 AM, Jeffken cl.jeff...@gmail.com wrote: Hi, I installed the GWT plugin for Eclipse 3.4 (Ganymede) with the url in software updates (install). Everything seems to be correctly installed but still the plugin won't show up in the taskbar? Can somebody give me advise in order to solve this problem? Thanks in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to 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: Error installing Google Plugin on Galileo
Hmm, I wonder if this is related to the release of Galileo SR1, which was on September 25. For those still facing the issue, before attempting to install the Google plugin, could you first try going to Help Check for updates, and installing any available updates? Thanks, jason On Fri, Sep 25, 2009 at 8:00 PM, Chaines chaine...@gmail.com wrote: I too am having this problem. It SEEMS to be a problem with the galileo update site, as after searching around, many other people are having similar problems. On Sep 25, 9:54 am, BH bhelle...@gmail.com wrote: I get the same problem... did you find a solution? Thanks On Sep 24, 8:18 pm, Ben Brown taipei...@gmail.com wrote: With a clean install of Galileo, I get the following error when installing using the update site: http://dl.google.com/eclipse/plugin/3.5 An error occurred while collecting items to be installed session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Collect, operand=, action=). No repository found containing: osgi.bundle,org.eclipse.ant.ui, 3.4.1.v20090901_r351 No repository found containing: osgi.bundle,org.eclipse.cvs, 1.0.300.v200909170800 No repository found containing: osgi.bundle,org.eclipse.jdt, 3.5.1.v200909170800 No repository found containing: osgi.bundle,org.eclipse.jdt.apt.core, 3.3.201.R35x_v20090818-0235 No repository found containing: osgi.bundle,org.eclipse.jdt.apt.pluggable.core, 1.0.201.R35x_v20090818-0225 No repository found containing: osgi.bundle,org.eclipse.jdt.compiler.apt,1.0.201.R35x_v20090825-1530 No repository found containing: osgi.bundle,org.eclipse.jdt.compiler.tool,1.0.100.v_972_R35x No repository found containing: osgi.bundle,org.eclipse.jdt.core, 3.5.1.v_972_R35x No repository found containing: osgi.bundle,org.eclipse.jdt.debug.ui, 3.4.1.v20090811_r351 No repository found containing: osgi.bundle,org.eclipse.jdt.doc.user, 3.5.1.r351_v20090821-0800 No repository found containing: osgi.bundle,org.eclipse.jdt.junit, 3.5.1.r351_v20090708-0800 No repository found containing: osgi.bundle,org.eclipse.jdt.ui, 3.5.1.r351_v20090821-0800 No repository found containing: osgi.bundle,org.eclipse.team.cvs.ui, 3.3.201.R35x_v20090826-0905 No repository found containing: osgi.bundle,org.eclipse.ui.views.log, 1.0.100.v20090731 No repository found containing: osgi.bundle,org.junit4,4.5.0.v20090824 No repository found containing: org.eclipse.update.feature,org.eclipse.cvs, 1.1.101.R35x_v20090811-7E79FEd9KKF5H2YDWFLLBL01A16 No repository found containing: binary,org.eclipse.cvs_root, 1.1.101.R35x_v20090811-7E79FEd9KKF5H2YDWFLLBL01A16 No repository found containing: org.eclipse.update.feature,org.eclipse.jdt, 3.5.1.r351_v20090810-0600-7r88FEoFI0WTo6Az-1qFRHm37ChJ No repository found containing: binary,org.eclipse.jdt_root, 3.5.1.r351_v20090810-0600-7r88FEoFI0WTo6Az-1qFRHm37ChJ --~--~-~--~~~---~--~~ 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: Debugging problem with Eclipse 3.5 Galileo (Eclipse Java EE IDE)
Hi Marioja, Could you check what version of Java you're using? JDK 1.6 update 14 had a problem with symptoms like you describe. You can check the version being used under: - Run Run configurations - Expand Web Application on the side bar - Select one of its children, click on the JRE tab jason On Sat, Sep 26, 2009 at 3:02 PM, marioja mari...@gmail.com wrote: Hi, I downloaded Eclipse Java EE IDE then installed the Google plugin from http://dl.google.com/eclipse/plugin/3.5. I created a new application using the new Web Application Project. Then I put a breakpoint in the onModuleLoad method of my java class implementing com.google.gwt.core.client.EntryPoint. Then I select debug as/Web Application and run it in hosted mode and the break point is never hit. Is this a bug or did I miss something. Thanks for your help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to disable datanucleus and activate hibernate?
Hi, I'd recommend that you post this message in the Google App Engine for Java group: http://groups.google.com/group/google-appengine-java Also, I'd get back to the working state you had before you disabled App Engine and uninstalled the plugin. That will make it easer for the developers to figure out the problem. Rajeev On Wed, Sep 23, 2009 at 3:14 PM, dikiyn dik...@gmail.com wrote: Hi together, I downoaden Google plugin to eclipse. I created simple GWT application with JPA on server side. As jpa implementation I set hibernate. =persincence.xml=== ?xml version=1.0 encoding=UTF-8? persistence version=1.0 xmlns=http://java.sun.com/xml/ns/persistence; xmlns:xsi=http:// www.w3.org/2001/XMLSchema-instance xsi:schemaLocation=http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd; persistence-unit name=mytest providerorg.hibetnate.ejb.HibernatePersistence/provider classcom.blalba.test.client.db.DBConnection/class properties property name=hibernate.connection.driver_class value=com.microsoft.sqlserver.jdbc.SQLServerDriver / property name=hibernate.connection.url value=jdbc:sqlserver://localhost:1433;databaseName=mydb / property name=hibernate.connection.username value=mydb / property name=hibernate.connection.password value=mydb / property name=hibernate.dialect value=org.hibernate.dialect.SybaseDialect / property name=hibernate.show_sql value=true / /properties /persistence-unit /persistence The persincence.xml itself is in /src/META-INF/persistence.xml But each time I start my small project in the hosted mode I get = 23.09.2009 20:43:32 org.datanucleus.plugin.NonManagedPluginRegistry resolveConstraints INFO: Bundle org.datanucleus has an optional dependency to org.eclipse.equinox.registry but it cannot be resolved INFO: === 23.09.2009 20:43:35 org.datanucleus.jdo.NucleusJDOHelper getJDOExceptionForNucleusException INFO: Exception thrown No available StoreManager found for the datastore URL key . Please make sure you have all relevant plugins in the CLASSPATH (e.g datanucleus-rdbms?, datanucleus-db4o?), and consider setting the persistence property datanucleus.storeManagerType to the type of store you are using e.g rdbms, db4o org.datanucleus.exceptions.NucleusUserException: No available StoreManager found for the datastore URL key . Please make sure you have all relevant plugins in the CLASSPATH (e.g datanucleus-rdbms?, datanucleus-db4o?), and consider setting the persistence property datanucleus.storeManagerType to the type of store you are using e.g rdbms, db4o at org.datanucleus.store.FederationManager.initialiseStoreManager (FederationManager.java:195) at org.datanucleus.store.FederationManager.init (FederationManager.java:68) at org.datanucleus.ObjectManagerFactoryImpl.initialiseStoreManager (ObjectManagerFactor . I've been fighting against datanucleus since 3 days but invain. I deleted jdoconfig.xml I disabled AppEngine in the project I uninstalled AppEngine in eclipse I cound not even find in what jar on my pc datanucleus classes are. What is wrong and how could I remove this adware-datanucleus ? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
CssResource, the CSS location
Hi Is it true that with CssResource, there is no need to specify CSS reference in the module XML and the hosted HTML? Also with the following ClientBundle, public interface MyResources extends ClientBundle { @Source(My.css) MyCss css(); } The My.css must be saved in the src directory. How can we reference the CSS in the other directories? example in war directory? Thank you! -- Hez --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Latest GWT Update (1.7.1) To Eclipse (3.5) Has Removed Plugin
Hi Keith, Can you see if any errors are appearing in your Error Log? To view it, go to Window - Show View - Error Log. Also, what distribution of Eclipse are you running (Classic, Java, J2EE, etc..)? What version of Galileo are you using? Thanks, Rajeev On Wed, Sep 23, 2009 at 9:20 PM, keithmarsh keithmar...@gmail.com wrote: On further investigation, and comparing the update to XP, it didn't ask me to accept the license on W7. I've tried uninstalling and reinstalling the plugin, and it goes ahead and installs, but doesn't ask me to accept the license and the module isn't available, though the jars are installed in Users\Keith\.eclipse It shows as being installed in Help Install New Software What is already installed. Thanks Keith On Sep 23, 11:54 pm, keithmarsh keithmar...@gmail.com wrote: Hi Just received update using the Eclipse Check For Updates appeared to install ok. Restarting made my currently open .java panes display an error (sorry, didn't copy it). Restarted Eclipse again, and now the plugin has disappeared. Window Preferences Install/Update Available Software Sites showshttp://dl.google.com/eclipse/plugin/3.5, but everything Google has disappeared. This is on Windows 7 32 RC. Anyone else experienced this? How do I enable the plugin again? --~--~-~--~~~---~--~~ 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: Eclipse client server separation
Hi Alik, Thanks for setting this up! Here's a tip to get Eclipse to work cleanly with your layout: - Click on your Greeting project, choose Properties, go to Java Build Path, Source tab, and Link Source. Choose the src folder for e.g. GreetingClient and name it something like src-client. Repeat for GreetingServer and GreetingShared. - Then, while in the Greeting project properties, go to Google on the side bar and Web Toolkit. Make sure the only Entry point module is the GreetingClient (not the GreetingShared) This should let you run hosted mode, do a GWT compile, and/or deploy to AppEngine from Eclipse. jason On Sat, Sep 26, 2009 at 7:56 PM, kilaka kil...@gmail.com wrote: Finally succeeded. Don't know what happened before, but now it works - through ant (eclipse's build in compiling isn't working). I created a 4 project development environment: - GreetingShared? Contains the shared interfaces which the client invokes and the server implements. - GreetingServer? Contains server code, like persistence and logic. - GreetingClient? Contains GWT client code thay compiles to JS. - Greeting Contains the deployment folders - the war. The 4 projects are located in: http://code.google.com/p/gwt-client-server-dev-env/ I hope to make it a development environment template for client-server development. - Need to get the project name and package as parameters - Need to see how to add persistence annotation to classes (the UI should not see them) - Perhaps Move html and css to client project and Move server files (jdo) files to the server project? Perhaps keep configuration files in the deployment project? - etc. (more client-server separation) --Alik On Sep 23, 10:56 am, kilaka kil...@gmail.com wrote: Hi all, GWT enables. among other things, the use of the same classes inclient andservercode.Clientcode is compiled to JavaScript andservercode to Java byte- code. My problem is: If a GWT application is developed in one eclipse project - bothclient andserver,clientcode can directly invokeservercode and vice versa. The recommendation to help from making such a mistake is to use a package convention: - com.same.clientforclientcode and - com.sample.serverforservercode This is not sufficient enough, for such mistake may still happen - especially when the eclipse adds imports automatically to the head of file in the imports section which is folded by default, causing you not to notice the package name. Also, there are classes that are shared by both theserverand theclient, like the Greetings interface(clientuses andserver implements). Where does it goes? I tried creating a working development environment with 3 projects: -Client -Server - Shared It was very complicated and needed a symbolic link from Shared toclient- for the compilation to JavaScript. Does anyone feels the need as I am? Did anyone create such a hello world development environment? Thanks, Alik. --~--~-~--~~~---~--~~ 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: Input Korean
Jong Lee wrote: I input Korean into GWT EXT TextArea but it just stored ??? into MySQL. It seems to be stored broken. That's unlikely to be a problem with GWT --- what's almost certainly happening is that MySQL is using the wrong encoding for its text. That is, GWT is providing UTF-8 to MySQL, which is then parsing it as ASCII and replacing all the Korean characters with strings of ? symbols. In general, when dealing with any language other than English, you want to set the encoding in as many places as possible to UTF-8. So: - configure the server to send the appropriate Content-Type header - *and* add the META tag to your pages to set the Content-Type too - *and* ensure that in your server code you always use the UTF-8 encoding when parsing strings - *and* do whatever exotic configuration MySQL needs to parse strings as UTF-8. I don't know how much of this you've already done, but what you've described is a classic symptom of missing something. -- ┌─── dg@cowlark.com ─ http://www.cowlark.com ─ │ │ They laughed at Newton. They laughed at Einstein. Of course, they │ also laughed at Bozo the Clown. --- Carl Sagan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: turn off the war output of HostedMode
Hi Ed, Out of curiosity, how come you don't need the war folder? I thought it was required for hosted mode and otherwise makes deploying the compiled GWT code much easier. Re: the search issue, can you provide a little more detail? We fixed a similar issue in the past http://code.google.com/p/google-web-toolkit/issues/detail?id=3638can=1q=fredsa%20eclipse%20search. Could you provide steps to reproduce the behavior you're seeing? Re: duplicate files, thanks for pointing this out -- it hadn't occurred to me. There's talk in that bug about marking everything in the GWT output folder as derived, which would help this problem since the Ctrl-Shift-T and Ctrl-Shift-R dialogs have a checkbox for Showing derived resources (via the dropdown arrow in the upper-right). For now, you can use working sets to exclude the war folder. Do a Ctrl-Shift-R, click that arrow in the upper-right, choose Select working set, click New, select the projects minus the war folder. Thanks, jason On Sat, Sep 26, 2009 at 11:16 AM, Ed post2edb...@hotmail.com wrote: How is it possible to disable/turn off the creation/filling of the war directoy that is done by the HostedMode and can be controlled by the - war switch? I don't use it and it's very enoying in eclipse. Now it will put his files in the target/war folder. This folder has to be relative to work nicely in a team/version control environment. But, Eclipse doesn't like that this folder is being filled directly, so everytime when searching a text it will tell you that the project isn't in sync with the file system :(... And worse: you can easily find the wrong file as eclipse will find two files: the original and the duplicate one that is copied by the HostedMode. For example: xml content files that are part of your gwt project...This leads to bugs :(... In eclipse it's not impossible to exclude this folder as part of the project...:( I tried several things, but don't mange to get this working nicely.. --~--~-~--~~~---~--~~ 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: Working with JSNI $wnd
Hi, First of all instead of using eval you could use: $wnd[canvasname] that is a much cleaner way of getting to the variable. Secondly the problem is with you callback not working is because you should call this method on this. Now because you invoke it from an anonymous JS function, the context is different from what you expect. The code should become something similar to: I presume that the class in which you method is defined is be.sofico.montelli.mmc.client.custom.widgets.upload.SRAFileUpload ? Then I would use: public static native void defineBridgeMethodSubmitDone() /*-{ var _this = this; $wnd.submitDone = function(canvasname, filename) { $wnd.alert(Upload done: + canvasname + - + filename); var cnv = $wnd.canvasname; $wnd.alert(Form object: + cnv); var myvar = _t...@be.sofico.montelli.mmc.client.custom.widgets.upload.srafileupload::submitD oneInternal(Ljava/lang/String;)(filename); $wnd.alert(Incoming: + file + Processed: + form); } }-*/; David On Sep 25, 5:26 pm, Steven De Groote stevendegro...@gmail.com wrote: @Thomas Broyer: Both solutions work for retrieving the cnv object, but I still can't call the submitDoneInternal() ... Any ideas welcome! Steven On Sep 25, 4:17 pm, Thomas Broyer t.bro...@gmail.com wrote: On 25 sep, 13:08, Paul Robinson ukcue...@gmail.com wrote: Does this work: var cnv = eval($wnd. + canvasname); argl! Please: var cnv = $wnd[canvasname];- 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 -~--~~~~--~~--~--~---
Re: JavaScriptException with method Label.setInnerText(String s) but works good with FireFox
show more code what is the var 'g'? in which class is it - what's the parent class? On Sep 28, 2:17 pm, kristo christophe.aze...@gmail.com wrote: Hi all, Today i restart my eclipse and when i launch my application on Hosted mode, i have the following problem : [ERROR] Unable to load module entry point class com.perso.test.client.Test (see associated exception for details) com.google.gwt.core.client.JavaScriptException: (Error): number: -2147467259 description: at com.google.gwt.dom.client.DOMImplTrident.setInnerText(Native Method) at com.google.gwt.dom.client.Element$.setInnerText$(Element.java:450) at com.perso.test.client.Test.onModuleLoad(Test.java:61) The problem occurs on the following lines : g.setWidget(0, 0, new Label(Login : )); It's the first label created. When i compile my code, same problem on IE but it works good with FireFox. Any ideas ? Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Migration from 1.5 to 1.6 and 1.7
Hey Robert, Just to be clear, you do not have any jars on your classpath or build path that contain Xerces? If you actually list all of the class files in the jars, are there any Xerces classes listed? Rajeev On Tue, Sep 8, 2009 at 3:27 PM, Robert Cooper keber...@gmail.com wrote: I am getting this as well. I never had Xerces in my project, but attempted to add it to fix this problem to no avail. Is there any resolution here? On Aug 21, 12:59 pm, Sumit Chandel sumitchan...@google.com wrote: Hi Erik, Are you using XercesImpl classes in your actual application code? If not, try removing it from your project and hosted mode launch configuration classpath and see if the error still occurs. You mentioned that you tried adding it, which suggests that it wasn't present the first time it occurred. In such a case, this may be an issue with GWT in that XercesImpl classes are bundled and property files that Xerces depends on may have different values, or it could also be an issue with the Apache module you're using if it uses Xerces and also defines different property files. In any case, please let me know the scenarios under which you reproduced this issue to follow-up from there. Cheers, -Sumit Chandel On Tue, Aug 18, 2009 at 5:12 AM, erikhedb erik.hedb...@tarinfo.com wrote: Hello, I am trying to migrate from GWT 1.5 on Mac to 1.7 and keep running into this error when stating hosted mode. I also switched to 1.6 and the same error occurs there. I did try to add xercesImpl.jar but the problem is still there. Any clues to what is going on? Thanx /Erik Hedblom [WARN] Error deploying web application directory ROOT javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found at javax.xml.parsers.DocumentBuilderFactory.newInstance (DocumentBuilderFactory.java:104) at org.apache.commons.modeler.util.DomUtil.readXml(DomUtil.java:284) at org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.execute (MbeansDescriptorsDOMSource.java:130) at org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.loadDescripto rs (MbeansDescriptorsDOMSource.java:120) at org.apache.commons.modeler.Registry.load(Registry.java:819) at org.apache.commons.modeler.Registry.loadDescriptors(Registry.java: 931) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: list serialization
Thanks for the answer! Ya, must be a hangover from pre-generics, but its certainly convenient as I don't know the type beforehand. I could use a marker interface (and might be forced to in the future), but for now its handy... Thanks again, Mark On Sep 26, 5:14 am, Paul Robinson ukcue...@gmail.com wrote: The problem with ListObject or ListSerializable is that it forces GWT to look for every implementation of serializable used anywhere with your program and generate the code needs to serialize and deserialize it. This is asking it to do too much work - so the compile would take much longer. Moreover, there are probably java-serializable objects you're using that are not gwt-serializable, meaning that the compile wouldn't work even if you were allowed to use object in this way. This is why you should be as specific as possible. This means: (1) you must use ListFoo instead of ListObject - for some appropriate Foo for your usage (2) you should prefer ArrayListFoo to ListFoo in the objects you gwt-serialize and in your RPC service APIs - so GWT doesn't try and create serialization code for every implementation of List, only the particular implementations you actually use. I'm not sure why the naked List resultList works. Probably some hang over from the pre-generics days of GWT. However, the above still applies and you ought to use generics and be as specific as possible. HTH Paul mwaschkowski wrote: Hi, Quick question about serialization: If I have something to be serialized with the following type defined: private ListObject resultList gwt gives me a serialization error, but if I take away the Object tag: private List resultList it works fine. I'm a bit worried that I'm breaking a rule somehow, and if things get tightened up in a future version, my app might break. Can someone please shed a little light on this for me? 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: turn off the war output of HostedMode
Hi Jason, required for hosted mode and otherwise makes deploying the compiled GWT code H... nevery thought about that... ... If that's the case, I probable need it as wel... To be honest, I don't exactly what the HostedMode is doing with it... Thanks for the answer about the Derived Resources... I just played with it, but noticed that the Derives Resources checkbox doesn't make any difference... That is, with CTR-SHIFT-R un/ checking the Derived Resources will still show the war output resources that were copied from the public source gwt folder :(... Any idea's how to exclude this? On Sep 28, 4:59 pm, Jason Parekh jasonpar...@gmail.com wrote: Hi Ed, Out of curiosity, how come you don't need the war folder? I thought it was required for hosted mode and otherwise makes deploying the compiled GWT code much easier. Re: the search issue, can you provide a little more detail? We fixed a similar issue in the pasthttp://code.google.com/p/google-web-toolkit/issues/detail?id=3638can Could you provide steps to reproduce the behavior you're seeing? Re: duplicate files, thanks for pointing this out -- it hadn't occurred to me. There's talk in that bug about marking everything in the GWT output folder as derived, which would help this problem since the Ctrl-Shift-T and Ctrl-Shift-R dialogs have a checkbox for Showing derived resources (via the dropdown arrow in the upper-right). For now, you can use working sets to exclude the war folder. Do a Ctrl-Shift-R, click that arrow in the upper-right, choose Select working set, click New, select the projects minus the war folder. Thanks, jason On Sat, Sep 26, 2009 at 11:16 AM, Ed post2edb...@hotmail.com wrote: How is it possible to disable/turn off the creation/filling of the war directoy that is done by the HostedMode and can be controlled by the - war switch? I don't use it and it's very enoying in eclipse. Now it will put his files in the target/war folder. This folder has to be relative to work nicely in a team/version control environment. But, Eclipse doesn't like that this folder is being filled directly, so everytime when searching a text it will tell you that the project isn't in sync with the file system :(... And worse: you can easily find the wrong file as eclipse will find two files: the original and the duplicate one that is copied by the HostedMode. For example: xml content files that are part of your gwt project...This leads to bugs :(... In eclipse it's not impossible to exclude this folder as part of the project...:( I tried several things, but don't mange to get this working nicely.. --~--~-~--~~~---~--~~ 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: turn off the war output of HostedMode
Maybe it would be nice if you could use environment variable, like $TEMP, to make it's placed in a directoy outside of the project directory.. --~--~-~--~~~---~--~~ 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: turn off the war output of HostedMode
On Mon, Sep 28, 2009 at 11:39 AM, Ed post2edb...@hotmail.com wrote: Hi Jason, required for hosted mode and otherwise makes deploying the compiled GWT code H... nevery thought about that... ... If that's the case, I probable need it as wel... To be honest, I don't exactly what the HostedMode is doing with it... Thanks for the answer about the Derived Resources... I just played with it, but noticed that the Derives Resources checkbox doesn't make any difference... That is, with CTR-SHIFT-R un/ checking the Derived Resources will still show the war output resources that were copied from the public source gwt folder :(... Any idea's how to exclude this? Sorry, I probably didn't make it clear, but I meant we should look into making that derived resources be meaningful in GWT generated code's case. For right now, you can try the working set instructions I mentioned in my earlier post. jason On Sep 28, 4:59 pm, Jason Parekh jasonpar...@gmail.com wrote: Hi Ed, Out of curiosity, how come you don't need the war folder? I thought it was required for hosted mode and otherwise makes deploying the compiled GWT code much easier. Re: the search issue, can you provide a little more detail? We fixed a similar issue in the pasthttp:// code.google.com/p/google-web-toolkit/issues/detail?id=3638can Could you provide steps to reproduce the behavior you're seeing? Re: duplicate files, thanks for pointing this out -- it hadn't occurred to me. There's talk in that bug about marking everything in the GWT output folder as derived, which would help this problem since the Ctrl-Shift-T and Ctrl-Shift-R dialogs have a checkbox for Showing derived resources (via the dropdown arrow in the upper-right). For now, you can use working sets to exclude the war folder. Do a Ctrl-Shift-R, click that arrow in the upper-right, choose Select working set, click New, select the projects minus the war folder. Thanks, jason On Sat, Sep 26, 2009 at 11:16 AM, Ed post2edb...@hotmail.com wrote: How is it possible to disable/turn off the creation/filling of the war directoy that is done by the HostedMode and can be controlled by the - war switch? I don't use it and it's very enoying in eclipse. Now it will put his files in the target/war folder. This folder has to be relative to work nicely in a team/version control environment. But, Eclipse doesn't like that this folder is being filled directly, so everytime when searching a text it will tell you that the project isn't in sync with the file system :(... And worse: you can easily find the wrong file as eclipse will find two files: the original and the duplicate one that is copied by the HostedMode. For example: xml content files that are part of your gwt project...This leads to bugs :(... In eclipse it's not impossible to exclude this folder as part of the project...:( I tried several things, but don't mange to get this working nicely.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Plugin not displayed in Eclipse
Hi, there is no Google category on the left in Preferences. In the log file I have some text but non about Google. And I'm using the default java perspective. Thank you for your help Jeffken On 28 sep, 16:19, Jason Parekh jasonpar...@gmail.com wrote: Hi, Could you go to Window Preferences and see if the Google category is on the left? If not, it may not have gotten installed properly. In this case, could you see if in your workspace directory, you have a file located at .metadata/.log? What flavor of Eclipse are you using? (e.g. Eclipse for Java EE, Eclipse for Java, etc.) Also, what perspective are you currently in? Thanks, jason On Sat, Sep 26, 2009 at 6:19 AM, Jeffken cl.jeff...@gmail.com wrote: Hi, I installed the GWT plugin for Eclipse 3.4 (Ganymede) with the url in software updates (install). Everything seems to be correctly installed but still the plugin won't show up in the taskbar? Can somebody give me advise in order to solve this problem? Thanks in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to 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 -~--~~~~--~~--~--~---
tabWidget retrieval from TabPanel
Hi, Is there a way to retrieve the tabWidget with which a widget has been added (or inserted) to a TabPanel from the TabPanel? i.e. I have: TabPabel = tabPanel = new TabPanel(); ... Widget w = some widget to be displayed on deck Label tabWidget = new Label(...); ... tabPanel.add(w, tabWidget); And later (in a different method) I want to retrieve the tabWidget, i.e. so something like: int tabIndex = ... Widget tabWidget = tabPabel.getWidgetTab(tabIndex); I know the method getWidgetTab does not exist. I tried using tabPanel.getTabBar().getTab(tabIndex) but this returns an interface (Tab) which does not allow be to retrieve the actual tabWidget with which the tab was created. Is there a way do this? thanks, Rutger van der Eijk --~--~-~--~~~---~--~~ 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: turn off the war output of HostedMode
Ahhh... Yep, I will give that a try. Thanks. On Sep 28, 5:49 pm, Jason Parekh jasonpar...@gmail.com wrote: On Mon, Sep 28, 2009 at 11:39 AM, Ed post2edb...@hotmail.com wrote: Hi Jason, required for hosted mode and otherwise makes deploying the compiled GWT code H... nevery thought about that... ... If that's the case, I probable need it as wel... To be honest, I don't exactly what the HostedMode is doing with it... Thanks for the answer about the Derived Resources... I just played with it, but noticed that the Derives Resources checkbox doesn't make any difference... That is, with CTR-SHIFT-R un/ checking the Derived Resources will still show the war output resources that were copied from the public source gwt folder :(... Any idea's how to exclude this? Sorry, I probably didn't make it clear, but I meant we should look into making that derived resources be meaningful in GWT generated code's case. For right now, you can try the working set instructions I mentioned in my earlier post. jason On Sep 28, 4:59 pm, Jason Parekh jasonpar...@gmail.com wrote: Hi Ed, Out of curiosity, how come you don't need the war folder? I thought it was required for hosted mode and otherwise makes deploying the compiled GWT code much easier. Re: the search issue, can you provide a little more detail? We fixed a similar issue in the pasthttp:// code.google.com/p/google-web-toolkit/issues/detail?id=3638can Could you provide steps to reproduce the behavior you're seeing? Re: duplicate files, thanks for pointing this out -- it hadn't occurred to me. There's talk in that bug about marking everything in the GWT output folder as derived, which would help this problem since the Ctrl-Shift-T and Ctrl-Shift-R dialogs have a checkbox for Showing derived resources (via the dropdown arrow in the upper-right). For now, you can use working sets to exclude the war folder. Do a Ctrl-Shift-R, click that arrow in the upper-right, choose Select working set, click New, select the projects minus the war folder. Thanks, jason On Sat, Sep 26, 2009 at 11:16 AM, Ed post2edb...@hotmail.com wrote: How is it possible to disable/turn off the creation/filling of the war directoy that is done by the HostedMode and can be controlled by the - war switch? I don't use it and it's very enoying in eclipse. Now it will put his files in the target/war folder. This folder has to be relative to work nicely in a team/version control environment. But, Eclipse doesn't like that this folder is being filled directly, so everytime when searching a text it will tell you that the project isn't in sync with the file system :(... And worse: you can easily find the wrong file as eclipse will find two files: the original and the duplicate one that is copied by the HostedMode. For example: xml content files that are part of your gwt project...This leads to bugs :(... In eclipse it's not impossible to exclude this folder as part of the project...:( I tried several things, but don't mange to get this working nicely.. --~--~-~--~~~---~--~~ 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: Error installing Google Plugin on Galileo
I am getting this problem as well. Any updates being pulled return the same error. I cannot update eclipse. And I cannot install the m2eclipse plugin. On Sep 28, 10:22 am, Jason Parekh jasonpar...@gmail.com wrote: Hmm, I wonder if this is related to the release of Galileo SR1, which was on September 25. For those still facing the issue, before attempting to install the Google plugin, could you first try going to Help Check for updates, and installing any available updates? Thanks, jason On Fri, Sep 25, 2009 at 8:00 PM, Chaines chaine...@gmail.com wrote: I too am having this problem. It SEEMS to be a problem with the galileo update site, as after searching around, many other people are having similar problems. On Sep 25, 9:54 am, BH bhelle...@gmail.com wrote: I get the same problem... did you find a solution? Thanks On Sep 24, 8:18 pm, Ben Brown taipei...@gmail.com wrote: With a clean install of Galileo, I get the following error when installing using the update site: http://dl.google.com/eclipse/plugin/3.5 An error occurred while collecting items to be installed session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Collect, operand=, action=). No repository found containing: osgi.bundle,org.eclipse.ant.ui, 3.4.1.v20090901_r351 No repository found containing: osgi.bundle,org.eclipse.cvs, 1.0.300.v200909170800 No repository found containing: osgi.bundle,org.eclipse.jdt, 3.5.1.v200909170800 No repository found containing: osgi.bundle,org.eclipse.jdt.apt.core, 3.3.201.R35x_v20090818-0235 No repository found containing: osgi.bundle,org.eclipse.jdt.apt.pluggable.core, 1.0.201.R35x_v20090818-0225 No repository found containing: osgi.bundle,org.eclipse.jdt.compiler.apt,1.0.201.R35x_v20090825-1530 No repository found containing: osgi.bundle,org.eclipse.jdt.compiler.tool,1.0.100.v_972_R35x No repository found containing: osgi.bundle,org.eclipse.jdt.core, 3.5.1.v_972_R35x No repository found containing: osgi.bundle,org.eclipse.jdt.debug.ui, 3.4.1.v20090811_r351 No repository found containing: osgi.bundle,org.eclipse.jdt.doc.user, 3.5.1.r351_v20090821-0800 No repository found containing: osgi.bundle,org.eclipse.jdt.junit, 3.5.1.r351_v20090708-0800 No repository found containing: osgi.bundle,org.eclipse.jdt.ui, 3.5.1.r351_v20090821-0800 No repository found containing: osgi.bundle,org.eclipse.team.cvs.ui, 3.3.201.R35x_v20090826-0905 No repository found containing: osgi.bundle,org.eclipse.ui.views.log, 1.0.100.v20090731 No repository found containing: osgi.bundle,org.junit4,4.5.0.v20090824 No repository found containing: org.eclipse.update.feature,org.eclipse.cvs, 1.1.101.R35x_v20090811-7E79FEd9KKF5H2YDWFLLBL01A16 No repository found containing: binary,org.eclipse.cvs_root, 1.1.101.R35x_v20090811-7E79FEd9KKF5H2YDWFLLBL01A16 No repository found containing: org.eclipse.update.feature,org.eclipse.jdt, 3.5.1.r351_v20090810-0600-7r88FEoFI0WTo6Az-1qFRHm37ChJ No repository found containing: binary,org.eclipse.jdt_root, 3.5.1.r351_v20090810-0600-7r88FEoFI0WTo6Az-1qFRHm37ChJ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Plugin not displayed in Eclipse
Could you check for errors in the Error Log view? You can get to it by Window Show view Other and type error. You may not have this view, it is only present in some flavors of Eclipse. Do you have any other third-party plugins installed? Thanks, jason On Mon, Sep 28, 2009 at 12:49 PM, Jeffken cl.jeff...@gmail.com wrote: Hi, there is no Google category on the left in Preferences. In the log file I have some text but non about Google. And I'm using the default java perspective. Thank you for your help Jeffken On 28 sep, 16:19, Jason Parekh jasonpar...@gmail.com wrote: Hi, Could you go to Window Preferences and see if the Google category is on the left? If not, it may not have gotten installed properly. In this case, could you see if in your workspace directory, you have a file located at .metadata/.log? What flavor of Eclipse are you using? (e.g. Eclipse for Java EE, Eclipse for Java, etc.) Also, what perspective are you currently in? Thanks, jason On Sat, Sep 26, 2009 at 6:19 AM, Jeffken cl.jeff...@gmail.com wrote: Hi, I installed the GWT plugin for Eclipse 3.4 (Ganymede) with the url in software updates (install). Everything seems to be correctly installed but still the plugin won't show up in the taskbar? Can somebody give me advise in order to solve this problem? Thanks in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to 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: Error installing Google Plugin on Galileo
Hi Peter, Try the workaround asato mentioned above: I got the same problem and solved by unchecking Contact all update sites during install to find required software box. jason On Mon, Sep 28, 2009 at 1:55 PM, Peter D. pete...@gmail.com wrote: I am getting this problem as well. Any updates being pulled return the same error. I cannot update eclipse. And I cannot install the m2eclipse plugin. On Sep 28, 10:22 am, Jason Parekh jasonpar...@gmail.com wrote: Hmm, I wonder if this is related to the release of Galileo SR1, which was on September 25. For those still facing the issue, before attempting to install the Google plugin, could you first try going to Help Check for updates, and installing any available updates? Thanks, jason On Fri, Sep 25, 2009 at 8:00 PM, Chaines chaine...@gmail.com wrote: I too am having this problem. It SEEMS to be a problem with the galileo update site, as after searching around, many other people are having similar problems. On Sep 25, 9:54 am, BH bhelle...@gmail.com wrote: I get the same problem... did you find a solution? Thanks On Sep 24, 8:18 pm, Ben Brown taipei...@gmail.com wrote: With a clean install of Galileo, I get the following error when installing using the update site: http://dl.google.com/eclipse/plugin/3.5 An error occurred while collecting items to be installed session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Collect, operand=, action=). No repository found containing: osgi.bundle,org.eclipse.ant.ui, 3.4.1.v20090901_r351 No repository found containing: osgi.bundle,org.eclipse.cvs, 1.0.300.v200909170800 No repository found containing: osgi.bundle,org.eclipse.jdt, 3.5.1.v200909170800 No repository found containing: osgi.bundle,org.eclipse.jdt.apt.core, 3.3.201.R35x_v20090818-0235 No repository found containing: osgi.bundle,org.eclipse.jdt.apt.pluggable.core, 1.0.201.R35x_v20090818-0225 No repository found containing: osgi.bundle,org.eclipse.jdt.compiler.apt,1.0.201.R35x_v20090825-1530 No repository found containing: osgi.bundle,org.eclipse.jdt.compiler.tool,1.0.100.v_972_R35x No repository found containing: osgi.bundle,org.eclipse.jdt.core, 3.5.1.v_972_R35x No repository found containing: osgi.bundle,org.eclipse.jdt.debug.ui, 3.4.1.v20090811_r351 No repository found containing: osgi.bundle,org.eclipse.jdt.doc.user, 3.5.1.r351_v20090821-0800 No repository found containing: osgi.bundle,org.eclipse.jdt.junit, 3.5.1.r351_v20090708-0800 No repository found containing: osgi.bundle,org.eclipse.jdt.ui, 3.5.1.r351_v20090821-0800 No repository found containing: osgi.bundle,org.eclipse.team.cvs.ui, 3.3.201.R35x_v20090826-0905 No repository found containing: osgi.bundle,org.eclipse.ui.views.log, 1.0.100.v20090731 No repository found containing: osgi.bundle,org.junit4,4.5.0.v20090824 No repository found containing: org.eclipse.update.feature,org.eclipse.cvs, 1.1.101.R35x_v20090811-7E79FEd9KKF5H2YDWFLLBL01A16 No repository found containing: binary,org.eclipse.cvs_root, 1.1.101.R35x_v20090811-7E79FEd9KKF5H2YDWFLLBL01A16 No repository found containing: org.eclipse.update.feature,org.eclipse.jdt, 3.5.1.r351_v20090810-0600-7r88FEoFI0WTo6Az-1qFRHm37ChJ No repository found containing: binary,org.eclipse.jdt_root, 3.5.1.r351_v20090810-0600-7r88FEoFI0WTo6Az-1qFRHm37ChJ --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Maven + GWT 1.7.1
Hello everybody, I want to use GWT 1.7.1 with Maven but I can't find it for the moment (current is gwt 1.7.0). How can I get GWT 1.7.1 in Maven ? I try to manually install it in my local repository but I have trouble with some lib 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 -~--~~~~--~~--~--~---
Error installing GWT plugin for Galileo
Below is the location I used for the plugin, as well as, the error log from the install. Can anyone help with this? Google Update Site for Eclipse 3.5 - http://dl.google.com/eclipse/plugin/3.5 An error occurred while collecting items to be installed session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Collect, operand=, action=). No repository found containing: osgi.bundle,org.eclipse.ant.ui, 3.4.1.v20090901_r351 No repository found containing: osgi.bundle,org.eclipse.cvs, 1.0.300.v200909170800 No repository found containing: osgi.bundle,org.eclipse.jdt, 3.5.1.v200909170800 No repository found containing: osgi.bundle,org.eclipse.jdt.apt.core, 3.3.201.R35x_v20090818-0235 No repository found containing: osgi.bundle,org.eclipse.jdt.apt.pluggable.core, 1.0.201.R35x_v20090818-0225 No repository found containing: osgi.bundle,org.eclipse.jdt.compiler.apt,1.0.201.R35x_v20090825-1530 No repository found containing: osgi.bundle,org.eclipse.jdt.compiler.tool,1.0.100.v_972_R35x No repository found containing: osgi.bundle,org.eclipse.jdt.core, 3.5.1.v_972_R35x No repository found containing: osgi.bundle,org.eclipse.jdt.debug.ui, 3.4.1.v20090811_r351 No repository found containing: osgi.bundle,org.eclipse.jdt.doc.user, 3.5.1.r351_v20090821-0800 No repository found containing: osgi.bundle,org.eclipse.jdt.junit, 3.5.1.r351_v20090708-0800 No repository found containing: osgi.bundle,org.eclipse.jdt.ui, 3.5.1.r351_v20090821-0800 No repository found containing: osgi.bundle,org.eclipse.team.cvs.ui, 3.3.201.R35x_v20090826-0905 No repository found containing: osgi.bundle,org.eclipse.ui.views.log, 1.0.100.v20090731 No repository found containing: osgi.bundle,org.junit4,4.5.0.v20090824 No repository found containing: org.eclipse.update.feature,org.eclipse.cvs, 1.1.101.R35x_v20090811-7E79FEd9KKF5H2YDWFLLBL01A16 No repository found containing: binary,org.eclipse.cvs_root, 1.1.101.R35x_v20090811-7E79FEd9KKF5H2YDWFLLBL01A16 No repository found containing: org.eclipse.update.feature,org.eclipse.jdt, 3.5.1.r351_v20090810-0600-7r88FEoFI0WTo6Az-1qFRHm37ChJ No repository found containing: binary,org.eclipse.jdt_root, 3.5.1.r351_v20090810-0600-7r88FEoFI0WTo6Az-1qFRHm37ChJ --~--~-~--~~~---~--~~ 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: Error installing GWT plugin for Galileo
Hey, There seem to be issues with the Eclipse Galileo update site. For a workaround, please see http://groups.google.com/group/google-web-toolkit/browse_thread/thread/c54ad9edc69becc7/6378635681269663. jason On Mon, Sep 28, 2009 at 3:09 PM, dls davidlstr...@gmail.com wrote: Below is the location I used for the plugin, as well as, the error log from the install. Can anyone help with this? Google Update Site for Eclipse 3.5 - http://dl.google.com/eclipse/plugin/3.5 An error occurred while collecting items to be installed session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Collect, operand=, action=). No repository found containing: osgi.bundle,org.eclipse.ant.ui, 3.4.1.v20090901_r351 No repository found containing: osgi.bundle,org.eclipse.cvs, 1.0.300.v200909170800 No repository found containing: osgi.bundle,org.eclipse.jdt, 3.5.1.v200909170800 No repository found containing: osgi.bundle,org.eclipse.jdt.apt.core, 3.3.201.R35x_v20090818-0235 No repository found containing: osgi.bundle,org.eclipse.jdt.apt.pluggable.core, 1.0.201.R35x_v20090818-0225 No repository found containing: osgi.bundle,org.eclipse.jdt.compiler.apt,1.0.201.R35x_v20090825-1530 No repository found containing: osgi.bundle,org.eclipse.jdt.compiler.tool,1.0.100.v_972_R35x No repository found containing: osgi.bundle,org.eclipse.jdt.core, 3.5.1.v_972_R35x No repository found containing: osgi.bundle,org.eclipse.jdt.debug.ui, 3.4.1.v20090811_r351 No repository found containing: osgi.bundle,org.eclipse.jdt.doc.user, 3.5.1.r351_v20090821-0800 No repository found containing: osgi.bundle,org.eclipse.jdt.junit, 3.5.1.r351_v20090708-0800 No repository found containing: osgi.bundle,org.eclipse.jdt.ui, 3.5.1.r351_v20090821-0800 No repository found containing: osgi.bundle,org.eclipse.team.cvs.ui, 3.3.201.R35x_v20090826-0905 No repository found containing: osgi.bundle,org.eclipse.ui.views.log, 1.0.100.v20090731 No repository found containing: osgi.bundle,org.junit4,4.5.0.v20090824 No repository found containing: org.eclipse.update.feature,org.eclipse.cvs, 1.1.101.R35x_v20090811-7E79FEd9KKF5H2YDWFLLBL01A16 No repository found containing: binary,org.eclipse.cvs_root, 1.1.101.R35x_v20090811-7E79FEd9KKF5H2YDWFLLBL01A16 No repository found containing: org.eclipse.update.feature,org.eclipse.jdt, 3.5.1.r351_v20090810-0600-7r88FEoFI0WTo6Az-1qFRHm37ChJ No repository found containing: binary,org.eclipse.jdt_root, 3.5.1.r351_v20090810-0600-7r88FEoFI0WTo6Az-1qFRHm37ChJ --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Character.isWhitespace alternative? (whitespace check)
What is the correct way to check for a white space character? This is done by the method Character.isWhitespace(char) but not supported by GWT. What is the alternative? I know check for whiteSpaces through someString.charAt(index) == ' '; But I am not sure if that's good enough as I think I forget things like \t --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Showing PopupPanel command is deferred
Hi, This is the method that I'm using to show a PopupPanel. private PopupPanel loadingPopup = new PopupPanel(false, true); this.loadingPopup.setWidget(getLoadingWidget()); private void showLoading(final Boolean loading) { if (loading) { this.addStyleName(waitCursorStyle); this.loadingPopup.center(); //if table header is already displayed, show //the loading message in the table. if (ResultSetTable.this.loadingTop != 0) { this.loadingPopup.setPopupPosition( this.loadingPopup.getPopupLeft(), this.loadingTop); } } else { this.removeStyleName(waitCursorStyle); this.loadingPopup.hide(); } } I use the following code to call it: this.showLoading(true); this.doStuff(); this.showLoading(false); However, the loading box never actually shows up. But when I do the following: this.showLoading(true); DeferredCommand.addCommand(new Command() { public void execute() { parentClass.this.doStuff(); parentClass.this.showLoading(false); } }); Everything works as expected. Does this mean that the setPopupPosition () and Center() methods used deferred commands? I'm at a loss as to why this happens... 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: Error installing Google Plugin on Galileo
Unchecking Contact all update sites during install to find required software worked for me. Thanks! On Sep 28, 11:22 am, Jason Parekh jasonpar...@gmail.com wrote: Hi Peter, Try the workaround asato mentioned above: I got the same problem and solved by unchecking Contact all update sites during install to find required software box. jason On Mon, Sep 28, 2009 at 1:55 PM, Peter D. pete...@gmail.com wrote: I am getting this problem as well. Any updates being pulled return the same error. I cannot update eclipse. And I cannot install the m2eclipse plugin. On Sep 28, 10:22 am, Jason Parekh jasonpar...@gmail.com wrote: Hmm, I wonder if this is related to the release of Galileo SR1, which was on September 25. For those still facing the issue, before attempting to install the Google plugin, could you first try going to Help Check for updates, and installing any available updates? Thanks, jason On Fri, Sep 25, 2009 at 8:00 PM, Chaines chaine...@gmail.com wrote: I too am having this problem. It SEEMS to be a problem with the galileo update site, as after searching around, many other people are having similar problems. On Sep 25, 9:54 am, BH bhelle...@gmail.com wrote: I get the same problem... did you find a solution? Thanks On Sep 24, 8:18 pm, Ben Brown taipei...@gmail.com wrote: With a clean install of Galileo, I get the following error when installing using the update site: http://dl.google.com/eclipse/plugin/3.5 An error occurred while collecting items to be installed session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Collect, operand=, action=). No repository found containing: osgi.bundle,org.eclipse.ant.ui, 3.4.1.v20090901_r351 No repository found containing: osgi.bundle,org.eclipse.cvs, 1.0.300.v200909170800 No repository found containing: osgi.bundle,org.eclipse.jdt, 3.5.1.v200909170800 No repository found containing: osgi.bundle,org.eclipse.jdt.apt.core, 3.3.201.R35x_v20090818-0235 No repository found containing: osgi.bundle,org.eclipse.jdt.apt.pluggable.core, 1.0.201.R35x_v20090818-0225 No repository found containing: osgi.bundle,org.eclipse.jdt.compiler.apt,1.0.201.R35x_v20090825-1530 No repository found containing: osgi.bundle,org.eclipse.jdt.compiler.tool,1.0.100.v_972_R35x No repository found containing: osgi.bundle,org.eclipse.jdt.core, 3.5.1.v_972_R35x No repository found containing: osgi.bundle,org.eclipse.jdt.debug.ui, 3.4.1.v20090811_r351 No repository found containing: osgi.bundle,org.eclipse.jdt.doc.user, 3.5.1.r351_v20090821-0800 No repository found containing: osgi.bundle,org.eclipse.jdt.junit, 3.5.1.r351_v20090708-0800 No repository found containing: osgi.bundle,org.eclipse.jdt.ui, 3.5.1.r351_v20090821-0800 No repository found containing: osgi.bundle,org.eclipse.team.cvs.ui, 3.3.201.R35x_v20090826-0905 No repository found containing: osgi.bundle,org.eclipse.ui.views.log, 1.0.100.v20090731 No repository found containing: osgi.bundle,org.junit4,4.5.0.v20090824 No repository found containing: org.eclipse.update.feature,org.eclipse.cvs, 1.1.101.R35x_v20090811-7E79FEd9KKF5H2YDWFLLBL01A16 No repository found containing: binary,org.eclipse.cvs_root, 1.1.101.R35x_v20090811-7E79FEd9KKF5H2YDWFLLBL01A16 No repository found containing: org.eclipse.update.feature,org.eclipse.jdt, 3.5.1.r351_v20090810-0600-7r88FEoFI0WTo6Az-1qFRHm37ChJ No repository found containing: binary,org.eclipse.jdt_root, 3.5.1.r351_v20090810-0600-7r88FEoFI0WTo6Az-1qFRHm37ChJ --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Coloring a row?
Hi all- I am trying to build a table/grid in a loop and want to color rows based on CSS for a particular status setting: if (row.getSeverity() == 1) { grid.getRowFormatter().addStyleName(currentRowNum, critical); } else if (row.getSeverity() == 2) { grid.getRowFormatter().addStyleName(currentRowNum, warning); grid.getRowFormatter().addStyleName(currentRowNum, warning); grid.getRowFormatter().addStyleName(currentRowNum, warning); grid.getRowFormatter().addStyleName(currentRowNum, warning); } else { grid.getRowFormatter().addStyleName(currentRowNum, normal); } This works if the final else clause is missing, except when the grid is re-drawn, and that particular row stays red (critical) even though the message has been shifted down a row (which is now a row that is not colored red because it wasn't colored red before). If the else clause is there, as it is in the code above, the row is never colored red (or yellow/warning). I know I'm not pushing the functionality envelop here, but for some reason I'm clearly not getting it in terms of handling the grid/ table. Is there a proper way to do what I'm trying to do? Thanks for any info, Tacho --~--~-~--~~~---~--~~ 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: Coloring a row?
I think you might want to set the style names rather than keep adding them. Or at least remove one style name before adding another Ian http://examples.roughian.com 2009/9/28 tachoknight tachokni...@gmail.com Hi all- I am trying to build a table/grid in a loop and want to color rows based on CSS for a particular status setting: if (row.getSeverity() == 1) { grid.getRowFormatter().addStyleName(currentRowNum, critical); } else if (row.getSeverity() == 2) { grid.getRowFormatter().addStyleName(currentRowNum, warning); grid.getRowFormatter().addStyleName(currentRowNum, warning); grid.getRowFormatter().addStyleName(currentRowNum, warning); grid.getRowFormatter().addStyleName(currentRowNum, warning); } else { grid.getRowFormatter().addStyleName(currentRowNum, normal); } This works if the final else clause is missing, except when the grid is re-drawn, and that particular row stays red (critical) even though the message has been shifted down a row (which is now a row that is not colored red because it wasn't colored red before). If the else clause is there, as it is in the code above, the row is never colored red (or yellow/warning). I know I'm not pushing the functionality envelop here, but for some reason I'm clearly not getting it in terms of handling the grid/ table. Is there a proper way to do what I'm trying to do? Thanks for any info, Tacho --~--~-~--~~~---~--~~ 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: Eclipse client server separation
Thanks for the tip. I tried it and it works - I only needed to link to the GreetingClient source folder and not to the others. After that I could compile and run the app in hosted mode using eclipse buttons and not just from the build file. I have two problems with this solution: 1. Subversive is shouting over duplicate resources which is very annoying - couldn't take the warnings down. Subversive also shouts about a Greeting.java file to be checked in under a classes folder - weird. 2. The link I created is hard coded (to my computer) and everyone trying to create a project, separated into a client server environment, will have to relink the folder. I tried using a variable, but the variable is stored in the workspace and not in the project, thus anyone trying to use this environment layout will need to redefine the variable. Jason, what you suggested is much more elegant than the symbolic link I tried at first because it is the eclipse way, but as I said, it still has the same hardcodedness problem. Does anyone know how to solve the 2 problems above in order for the environment to be more complete? --Alik On Sep 28, 4:45 pm, Jason Parekh jasonpar...@gmail.com wrote: Hi Alik, Thanks for setting this up! Here's a tip to get Eclipse to work cleanly with your layout: - Click on your Greeting project, choose Properties, go to Java Build Path, Source tab, and Link Source. Choose the src folder for e.g. GreetingClient and name it something like src-client. Repeat for GreetingServer and GreetingShared. - Then, while in the Greeting project properties, go to Google on the side bar and Web Toolkit. Make sure the only Entry point module is the GreetingClient (not the GreetingShared) This should let you run hosted mode, do a GWT compile, and/or deploy to AppEngine from Eclipse. jason On Sat, Sep 26, 2009 at 7:56 PM, kilaka kil...@gmail.com wrote: Finally succeeded. Don't know what happened before, but now it works - through ant (eclipse's build in compiling isn't working). I created a 4 project development environment: - GreetingShared? Contains the shared interfaces which the client invokes and the server implements. - GreetingServer? Contains server code, like persistence and logic. - GreetingClient? Contains GWT client code thay compiles to JS. - Greeting Contains the deployment folders - the war. The 4 projects are located in: http://code.google.com/p/gwt-client-server-dev-env/ I hope to make it a development environment template for client-server development. - Need to get the project name and package as parameters - Need to see how to add persistence annotation to classes (the UI should not see them) - Perhaps Move html and css to client project and Move server files (jdo) files to the server project? Perhaps keep configuration files in the deployment project? - etc. (more client-server separation) --Alik On Sep 23, 10:56 am, kilaka kil...@gmail.com wrote: Hi all, GWT enables. among other things, the use of the same classes inclient andservercode.Clientcode is compiled to JavaScript andservercode to Java byte- code. My problem is: If a GWT application is developed in one eclipse project - bothclient andserver,clientcode can directly invokeservercode and vice versa. The recommendation to help from making such a mistake is to use a package convention: - com.same.clientforclientcode and - com.sample.serverforservercode This is not sufficient enough, for such mistake may still happen - especially when the eclipse adds imports automatically to the head of file in the imports section which is folded by default, causing you not to notice the package name. Also, there are classes that are shared by both theserverand theclient, like the Greetings interface(clientuses andserver implements). Where does it goes? I tried creating a working development environment with 3 projects: -Client -Server - Shared It was very complicated and needed a symbolic link from Shared toclient- for the compilation to JavaScript. Does anyone feels the need as I am? Did anyone create such a hello world development environment? Thanks, Alik. --~--~-~--~~~---~--~~ 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: Server-only functions
Hi bufferings, Using a super-source solution would certainly be a good way to deal with this issue, and is a good recommendation here. The super-src solution is much more explicit than having multiple Java source files around, some sprinkled with @ServerOnly annotations and some not. I believe it makes the application design much clearer and more easily customizable on a per-project basis. Cheers, -Sumit Chandel On Mon, Sep 28, 2009 at 7:11 AM, bufferings bufferi...@gmail.com wrote: On 9月28日, 午後4:04, Asko Saura asko.sa...@gmail.com wrote: I compile the server versions into .class files. Then I include a .gwt.xml file describing them as a gwt module and put the .class files and the client .java files in a jar file. I compile the server versions into .class files. Then I include a .gwt.xml file describing them as a gwt module and put the .class files and the client .java files in a jar file. Why don't you use the super-source? For example === src/xxx/yyy/Sample.gwt.xml src/xxx/yyy/server/SampleDto.java super/xxx/yyy/translatable/xxx/yyy/server/SampleDto.java The src is source directory. The super is normal directory. For both SampleDto.java, the package declaration is xxx.yyy.server. Sample.gwt.xml with the following contents: source path=client / super-source path=translatable / then On the server, xxx.yyy.server.SampleDto.java is used. On the client, xxx.yyy.translatable.xxx.yyy.server.SampleDto.java is used. === The super-source brings me the code separation between the client and the server. But I think GWT people don't want this, too. I really hope an @ServerOnly type annotation will be supported. -- buffeirngs --~--~-~--~~~---~--~~ 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 maps problem
ciao a tutti! avrei la necessità di sapere i vari segmenti di cui è composto il mio itinerario su gwt maps. esempio, in un itinerario da Milano a Roma, è possibile sapere i tragitti intermedi ?! grazie a tutti Hello everyone! I need to know the various segments which make up my itinerary on gwt maps. example, in a route from Milan to Rome, you know the distances between?! Thanks to 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 -~--~~~~--~~--~--~---
Help with web application if possible.
I have eclipse installed with the GWT as well as the full blown Java SDK. I created a GWT template web application that is standard within eclipse. I basically am testing functionality of being able to send an email using the shell that is provided from eclipse. I have renamed several files, and for whatever reason, when I change the web.xml file located in the war/WEB-INF directory to the relative path for the servlet -- I change the url-pattern property of the servlet- mapping item to /email instead of /greet -- I lose the ability to communicate with the server. My question is where else is this information being stored, because it clearly is not pulling the information just from the web.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: Help with web application if possible.
See GreetingService.java (or whatever interface that extends RemoteService). It typically has an annotation @RemoteServiceRelativePath which specifies the path to the servlet. If you are changing your web.xml, you would also need to change the value specified in this annotation. --Sri 2009/9/28 Rakmos jaredcsm...@gmail.com I have eclipse installed with the GWT as well as the full blown Java SDK. I created a GWT template web application that is standard within eclipse. I basically am testing functionality of being able to send an email using the shell that is provided from eclipse. I have renamed several files, and for whatever reason, when I change the web.xml file located in the war/WEB-INF directory to the relative path for the servlet -- I change the url-pattern property of the servlet- mapping item to /email instead of /greet -- I lose the ability to communicate with the server. My question is where else is this information being stored, because it clearly is not pulling the information just from the web.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: Character.isWhitespace alternative? (whitespace check)
did you try to use the regex method boolean matches = someString.matches(\\S); HTH Dominik On 28 Sep., 13:39, Ed post2edb...@hotmail.com wrote: What is the correct way to check for a white space character? This is done by the method Character.isWhitespace(char) but not supported by GWT. What is the alternative? I know check for whiteSpaces through someString.charAt(index) == ' '; But I am not sure if that's good enough as I think I forget things like \t --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[ANN] SmartGWT 1.3 Released
Hi all,SmartGWT 1.3 has just been released. This release contains several fixes and new features including Grid Summary support by groups and columns, masking support for form fields, and support for creation of reusable domain specific SimpleTypes for use in DataSources (e.g. ZipCodeUS). Release Announcement : http://www.jroller.com/sjivan/entry/smartgwt_1_3_released New Showcase samples : http://www.smartclient.com/smartgwt/showcase/#grid_summaries_new_category Feedback welcome. Thanks, Sanjiv --~--~-~--~~~---~--~~ 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: Input Korean
BTW, if you are using RequestBuilder to send data, you need to make to set the Content Type of header: charset=utf-8. -Ben On Sep 28, 10:47 am, David Given d...@cowlark.com wrote: Jong Lee wrote: I input Korean into GWT EXT TextArea but it just stored ??? into MySQL. It seems to be stored broken. That's unlikely to be a problem with GWT --- what's almost certainly happening is that MySQL is using the wrong encoding for its text. That is, GWT is providing UTF-8 to MySQL, which is then parsing it as ASCII and replacing all the Korean characters with strings of ? symbols. In general, when dealing with any language other than English, you want to set the encoding in as many places as possible to UTF-8. So: - configure the server to send the appropriate Content-Type header - *and* add the META tag to your pages to set the Content-Type too - *and* ensure that in your server code you always use the UTF-8 encoding when parsing strings - *and* do whatever exotic configuration MySQL needs to parse strings as UTF-8. I don't know how much of this you've already done, but what you've described is a classic symptom of missing something. -- ┌─── dg@cowlark.com ─http://www.cowlark.com─ │ │ They laughed at Newton. They laughed at Einstein. Of course, they │ also laughed at Bozo the Clown. --- Carl Sagan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: JavaScriptException with method Label.setInnerText(String s) but works good with FireFox
Need more information to answer the question. -Ben On Sep 28, 11:10 am, mars1412 martin.trum...@24act.at wrote: show more code what is the var 'g'? in which class is it - what's the parent class? On Sep 28, 2:17 pm, kristo christophe.aze...@gmail.com wrote: Hi all, Today i restart my eclipse and when i launch my application on Hosted mode, i have the following problem : [ERROR] Unable to load module entry point class com.perso.test.client.Test (see associated exception for details) com.google.gwt.core.client.JavaScriptException: (Error): number: -2147467259 description: at com.google.gwt.dom.client.DOMImplTrident.setInnerText(Native Method) at com.google.gwt.dom.client.Element$.setInnerText$(Element.java:450) at com.perso.test.client.Test.onModuleLoad(Test.java:61) The problem occurs on the following lines : g.setWidget(0, 0, new Label(Login : )); It's the first label created. When i compile my code, same problem on IE but it works good with FireFox. Any ideas ? Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Deployment and Eclipse+SVN
In our settings, we use Maven to build our project in our code repository and push to the deployment server. We do not compile it locally, thus we never commit those compiled files. HTH -Ben On Sep 28, 2:54 pm, charlie charlie.f...@gmail.com wrote: I'm having a hard time automating the build process. The folders that gwt generates DO NOT want to get into SVN, no matter what command I add I can't get them to commit. As a consequence, when I try to export the war directory and zip it up for deployment on the server, it's missing crucial pieces. When I issue Compile on the Hosted Mode Browser, where does that directory get deployed to? Does anyone have a build script that executes outside of eclipse ? Or within eclipse, I'm just trying to automate the build and deployment. --~--~-~--~~~---~--~~ 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: Deployment and Eclipse+SVN
If you have installed the toolkit there is an application that you can call to generate shell / template projects for you. This will also create a build file that you can take a look at. None of this has anything to do with eclipse. If you have only used eclipse you might need to download the toolkit separately. On Sep 28, 11:54 am, charlie charlie.f...@gmail.com wrote: I'm having a hard time automating the build process. The folders that gwt generates DO NOT want to get into SVN, no matter what command I add I can't get them to commit. As a consequence, when I try to export the war directory and zip it up for deployment on the server, it's missing crucial pieces. When I issue Compile on the Hosted Mode Browser, where does that directory get deployed to? Does anyone have a build script that executes outside of eclipse ? Or within eclipse, I'm just trying to automate the build and deployment. --~--~-~--~~~---~--~~ 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: tabWidget retrieval from TabPanel
There doesn't look to be a way to get the actual Widget out, no. It looks like the best you can do is get the HTML out, e.g.: TabPanel.getTabBar().getTabHTML() On Sep 28, 7:53 am, Ruggi 4ru...@gmail.com wrote: Hi, Is there a way to retrieve the tabWidget with which a widget has been added (or inserted) to a TabPanel from the TabPanel? i.e. I have: TabPabel = tabPanel = new TabPanel(); ... Widget w = some widget to be displayed on deck Label tabWidget = new Label(...); ... tabPanel.add(w, tabWidget); And later (in a different method) I want to retrieve the tabWidget, i.e. so something like: int tabIndex = ... Widget tabWidget = tabPabel.getWidgetTab(tabIndex); I know the method getWidgetTab does not exist. I tried using tabPanel.getTabBar().getTab(tabIndex) but this returns an interface (Tab) which does not allow be to retrieve the actual tabWidget with which the tab was created. Is there a way do this? thanks, Rutger van der Eijk --~--~-~--~~~---~--~~ 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-contrib] Re: DockLayoutPanel and Maps
I have found the issue and am not sure how to fix it using the current API. After setting 100% height and width on both the DockLayoutPanel and RootLayoutPanel the map still reported a span of 0 and did not render correctly. In Safari's Inspector I could see that the only element without 100% height and width was the generated layout parent element but after changing this in using the inspector it worked. So I think I need to be able to access the Layout.parentElem to modify its style. On Sep 28, 5:43 pm, jd jdpatter...@gmail.com wrote: Hi, I am trying to use the new DockLayoutPanel with a Google map in the center panel which takes up what ever space remains. The map does not render properly due to not being able to figure out its dimensions. I have modified the sample below to demonstrate this by adding a map with 100% height and width. public class DockLayoutPanelExample implements EntryPoint { public void onModuleLoad() { // Attach five widgets to a DockLayoutPanel, one in each direction. Lay // them out in 'em' units. final MapWidget map = new MapWidget(LatLng.newInstance(50, 50), 8); map.setWidth(100%); map.setHeight(100%); map.addMapMoveEndHandler(new MapMoveEndHandler() { public void onMoveEnd(MapMoveEndEvent event) { Window.alert(map.getBounds().toString()); } }); DockLayoutPanel p = new DockLayoutPanel(Unit.EM); p.addNorth(new HTML(north), 2); p.addSouth(new HTML(south), 2); p.addEast(new HTML(east), 2); p.addWest(new HTML(west), 2); p.add(map); // Note the explicit call to layout(). This is required for the layout to // take effect. p.layout(); // Attach the LayoutPanel to the RootLayoutPanel. The latter will listen for // resize events on the window to ensure that its children are informed of // possible size changes. RootLayoutPanel rp = RootLayoutPanel.get(); rp.add(p); // The RootLayoutPanel also requires that its layout() method be explicitly // called for the initial layout to take effect. rp.layout(); } } I believe the map needs to be able to figure out its exact height and width in pixels. Can anyone suggest an approach to get around this problem? Thanks, John --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: DockLayoutPanel and Maps
Actually I think that was a red herring - setting the parentElem style just forced a re-render and changing the map size had the same effect. I think the problem is due to the map trying to initialize itself before layout() is called. If I add a holder panel like this: SimplePanel holder = new SimplePanel(); p.add(holder); and then add the map after layout() like: p.layout(); MapWidget map = new MapWidget(LatLng.newInstance(50, 50), 8); map.setWidth(100%); map.setHeight(100%); holder.add(map); it works. I have one question about threading in the browser - I have used YUI LayoutManager which is very similar to DockLayoutPanel. http://developer.yahoo.com/yui/examples/layout/nested_layout.html If you want to nest layouts or use a map inside a layout you need to register a listener for an onrender event. When I asked why, Dave Glass said that although the JS is single threaded, the DOM elements will not be created by serially so you must wait until the event fires before you can safely layout nested items that depend on the parent layout. Could this be a problem here also? Thanks, John On Sep 28, 7:06 pm, jd jdpatter...@gmail.com wrote: I have found the issue and am not sure how to fix it using the current API. After setting 100% height and width on both the DockLayoutPanel and RootLayoutPanel the map still reported a span of 0 and did not render correctly. In Safari's Inspector I could see that the only element without 100% height and width was the generated layout parent element but after changing this in using the inspector it worked. So I think I need to be able to access the Layout.parentElem to modify its style. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6231 committed - Updates to CrawlServlet (throws another exception) and Showcase eclips...
Revision: 6231 Author: kpro...@google.com Date: Mon Sep 28 07:05:23 2009 Log: Updates to CrawlServlet (throws another exception) and Showcase eclipse project. http://code.google.com/p/google-web-toolkit/source/detail?r=6231 Modified: /branches/crawlability/eclipse/README.txt /branches/crawlability/eclipse/samples/Showcase/.classpath /branches/crawlability/samples/showcase/src/com/google/gwt/sample/showcase/server/CrawlServlet.java === --- /branches/crawlability/eclipse/README.txt Fri Jul 10 09:14:42 2009 +++ /branches/crawlability/eclipse/README.txt Mon Sep 28 07:05:23 2009 @@ -21,6 +21,7 @@ Create a variable named GWT_TOOLS pointing to your tools folder. Create a variable named JDK_HOME pointing to the root of your JDK install (for example, C:\Program Files\jdk1.5.0_05 or /usr/lib/j2sdk1.5-sun) +Create a variable named GWT_ROOT pointing to your trunk folder. Spelling - === --- /branches/crawlability/eclipse/samples/Showcase/.classpath Fri Jan 16 11:50:20 2009 +++ /branches/crawlability/eclipse/samples/Showcase/.classpath Mon Sep 28 07:05:23 2009 @@ -5,5 +5,6 @@ classpathentry kind=con path=org.eclipse.jdt.launching.JRE_CONTAINER/ classpathentry combineaccessrules=false kind=src path=/gwt-user/ classpathentry combineaccessrules=false kind=src path=/gwt-dev-windows/ + classpathentry kind=var path=GWT_ROOT/build/staging/gwt-linux-0.0.0/gwt-servlet.jar/ classpathentry kind=output path=war/WEB-INF/classes/ /classpath === --- /branches/crawlability/samples/showcase/src/com/google/gwt/sample/showcase/server/CrawlServlet.java Fri Sep 25 09:27:51 2009 +++ /branches/crawlability/samples/showcase/src/com/google/gwt/sample/showcase/server/CrawlServlet.java Mon Sep 28 07:05:23 2009 @@ -21,6 +21,7 @@ import java.io.IOException; import java.io.PrintWriter; +import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import javax.servlet.Filter; @@ -33,48 +34,41 @@ import javax.servlet.http.HttpServletResponse; /** - * Servlet that makes this application crawlable + * Servlet that makes this application crawlable. */ public final class CrawlServlet implements Filter { - private static String rewriteQueryString(String queryString) { + private static String rewriteQueryString(String queryString) + throws UnsupportedEncodingException { StringBuilder queryStringSb = new StringBuilder(queryString); -int i = queryStringSb.indexOf(_escaped_fragment_); -if (i != -1) { - StringBuilder tmpSb = new StringBuilder(queryStringSb.substring(0, i)); - tmpSb.append(#!); - tmpSb.append(URLDecoder.decode(queryStringSb.substring(i + 20, queryStringSb.length()),UTF-8)); - queryStringSb = tmpSb; -} - -i = queryStringSb.indexOf(_escaped_fragment_); +int i = queryStringSb.indexOf(_escaped_fragment_=); +if (i == -1) { + i = queryStringSb.indexOf(?_escaped_fragment_=); +} if (i != -1) { - StringBuilder tmpSb = new StringBuilder(queryStringSb.substring(0, i)); + StringBuilder tmpSb = new StringBuilder(queryStringSb.substring(0, i - 1)); + System.out.println(| + tmpSb + |); tmpSb.append(#!); - tmpSb.append(URLDecoder.decode(queryStringSb.substring(i + 19, queryStringSb.length()), UTF-8)); + System.out.println(| + tmpSb + |); + tmpSb.append(URLDecoder.decode(queryStringSb.substring(i + 20, + queryStringSb.length()), UTF-8)); + System.out.println(| + tmpSb + |); queryStringSb = tmpSb; } -if (queryStringSb.indexOf(#!) != 0) { - queryStringSb.insert(0, '?'); -} -queryString = queryStringSb.toString(); - - - -return queryString; +return queryStringSb.toString(); } private FilterConfig filterConfig = null; /** - * Destroys the filter configuration + * Destroys the filter configuration. */ public void destroy() { this.filterConfig = null; } /** - * Filters all requests and invokes headless browser if necessary + * Filters all requests and invokes headless browser if necessary. */ public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException { @@ -106,8 +100,11 @@ res.setContentType(text/html;charset=UTF-8); PrintWriter out = res.getWriter(); out.println(hr); - out.println(centerh3You are viewing a non-interactive page that is intended for the crawler. You probably want to see this page: a href=\ - + pageName + \ + pageName + /a/h3/center); + out.println(centerh3You are viewing a non-interactive page that is intended for the crawler. + + You probably want to see this page: a href=\ + + pageName + + \ + + pageName +
[gwt-contrib] Re: DockLayoutPanel and Maps
Have you tried the method map.checkResizeAndCenter()? On Mon, Sep 28, 2009 at 9:42 AM, jd jdpatter...@gmail.com wrote: Actually I think that was a red herring - setting the parentElem style just forced a re-render and changing the map size had the same effect. I think the problem is due to the map trying to initialize itself before layout() is called. If I add a holder panel like this: SimplePanel holder = new SimplePanel(); p.add(holder); and then add the map after layout() like: p.layout(); MapWidget map = new MapWidget(LatLng.newInstance(50, 50), 8); map.setWidth(100%); map.setHeight(100%); holder.add(map); it works. I have one question about threading in the browser - I have used YUI LayoutManager which is very similar to DockLayoutPanel. http://developer.yahoo.com/yui/examples/layout/nested_layout.html If you want to nest layouts or use a map inside a layout you need to register a listener for an onrender event. When I asked why, Dave Glass said that although the JS is single threaded, the DOM elements will not be created by serially so you must wait until the event fires before you can safely layout nested items that depend on the parent layout. Could this be a problem here also? Thanks, John On Sep 28, 7:06 pm, jd jdpatter...@gmail.com wrote: I have found the issue and am not sure how to fix it using the current API. After setting 100% height and width on both the DockLayoutPanel and RootLayoutPanel the map still reported a span of 0 and did not render correctly. In Safari's Inspector I could see that the only element without 100% height and width was the generated layout parent element but after changing this in using the inspector it worked. So I think I need to be able to access the Layout.parentElem to modify its style. -- Eric Z. Ayers Google Web Toolkit, Atlanta, GA USA --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---