Using DAO pattern in a GWT project
Hi, Can i use the DAO pattern in a GWT project. If yes then how ? Please suggest. --~--~-~--~~~---~--~~ 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: Windows not showing/hiding as expected
Thanks for the advice - I thought it was something like that but didn't know what to do about it. I'll give it a go today The Window and MessageBox come from GWT-Ext On Apr 7, 4:00 pm, Thomas Broyer t.bro...@gmail.com wrote: On 7 avr, 16:13, Gary1975 gary.ev...@gmail.com wrote: Hi, I am relatively new to GWT devlopment and was wondering of someone could please help to explain why the progress dialog is not displaying in the following function. Also, the timeperiod window is not hiding itself until after the line has been drawn. Any ideas would be gratefully received as I have been struggling with this all day. JavaScript in the browser is single-threaded, and moreover runs in the UI thread. This means that changes to the page are only reflected when your script yields, i.e. in your case at the end of your onClick method. The simplest way to make it work as you're expecting is to use a DeferredCommand: wrap everything that follows timepedior.hide() and MessageBox.show(...) within a DeferredCommand; this would yield so the browser can effectively hide the timeperiod and show the MessageBox and then (something like 10ms later) do the drawing and close the MessageBox. (btw: which library are those Window and MessageBox coming from?) --~--~-~--~~~---~--~~ 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: CSS Style for single tabs of a TabBar
No suggestions from anyone? Really could need some help here ... Greetings, -Lord-67 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
How to sing events on the mark up element
Hi, I want to access the text box written in HTML from GWT on the basis of element ID. I am able to get this elemt in GWT and also show that. Even I am able to change the text of the text box but I am not able to add the events to the element. How to add the event. I have written some bit of code but not able to sink the event. I have extended the text box to add the element - Public class MarkupTextBox extends TextBox{ Public MarkupTextBox(String markupTextboxID) { This(DOM.getElementById(markupTextboxID)); } Protected MarkupTextBox(Element element) { Super(element); } } - And then adding listener to it - -- Final MarkupTextBox box = new MarkupTextBox(poctext); Box.setText(Hi how are you); Box.addClickListener(new ClickListener(){ Public void onClick(Widget sender) { }}); Box.addChangeListener(new ChangeListener(){ Public void onChange(Widget sender) { Box.setText(Hi how are you); }}); - May be I making some mistake. Please suggest me without the suggestion of using the Third party lib like GWTTiger. Warm Regards, Vaibhav Saxena --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~--- inline: faint_grain.jpginline: imstp_animation_butterflies_en_020908.gif
Re: Connecting to database with eclipse
Hi there, Ok lets take it step by step. Can you show us your client side RPC interface classes. You should have something like the following: --- package com.company.client.rpc; import java.util.List; import com.company.client.dto.PupilDTO; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; @RemoteServiceRelativePath(teachers) public interface TeacherService extends RemoteService { public ListPupilDTO getPupils(Integer teacherId); } - package com.company.client.rpc; import java.util.List; import com.company.client.dto.PupilDTO; import com.google.gwt.user.client.rpc.AsyncCallback; public interface TeacherServiceAsync { public void getPupils(Integer teacherId, AsyncCallbackListPupilDTO callback); } Take not of the @RemoteServiceRelativePath(teachers) thats very important. Do you have this? Eggsy On Apr 7, 4:15 pm, Cryssyenddo miracle...@gmail.com wrote: Anyone? please? i need this to work... --~--~-~--~~~---~--~~ 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: IE doesnt show my progress bar when the data loads in to my Grid
You can't start antother thread from javascript. And though it's a singlethreaded environment your animation isn't moving probably because browser is busy with filling the data. You can show some static text Loading... and then load your data. On 8 Apr., 07:22, Suren nsurendi...@gmail.com wrote: Hi All, I am loading 100x100 values into the cells of a Grid from the DB. Its taking some time to show the Grid in IE. So thought of showing a progress bar during that time instead of showing blank page to the user. So I am trying to display a progressbar.gif image during the data load. But the problem here is that, still the progressbar is not shown. Its showing hourglass mouse cursor in the IE and showing nothing and looks like the loading page. what I am doing wrong here? do I need to have a seperate thread to show the image?? Or instead of this approach, I expect if anything else is better way of doing it from the group. Kindly advise Thanks Suren --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
SuggestBox focuslistener problem with Chrome
Hi all, I am using a SuggestBox but i have added a prompt on it. It shows Enter a number when focus is not on SuggestBox and when focus is set on suggestbox i set the text to using focuslistner. This works fine on all other browsers but when i try it on Chrome i have to click on suggestBox and then drag the mouse and then only the suggest box text is set to . Here is the code FocusListener OnFieldFocus = new FocusListener() { public void onFocus( Widget sender) { SuggestBox sb = (SuggestBox)sender; if (sb != null) { if ( sb.getText().equals(Enter a number))) sb.setText(); } } public void onLostFocus(Widget sender) { SuggestBox sb = (SuggestBox)sender; if (sb != null) { if (sb.getText().trim().length() == 0) { sb.setText(Enter a number)); } } } }; thanks regards Sandeep --~--~-~--~~~---~--~~ 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: Open a local file with GWT
It's actually the same thing - don't you think? If you can do smth. like Window.open(file:///C:\mycreditcard-number.txt) then you also can go through it though you have full access to popup's Window and Document objects. But may be i'm misunderstanding smth. here completely. On 8 Apr., 06:37, ffs1985 ffs1...@gmail.com wrote: I'm not trying to read files from filesystem from plain javascript, I want to open a new browsers window with a local url. The browser should decide how he will open this file. On Apr 7, 8:56 am, alex.d alex.dukhov...@googlemail.com wrote: You CAN'T read files from filesystem from plain javascript. Applets or Gears are a way to go. Another way is that user just opens your file instead of downloading it ;-) On 7 Apr., 13:04,ffs1985ffs1...@gmail.com wrote: Hi I'm trying to make a function that let the user download a file from my application and see it. I could copy the file from server to a local root but when I've tried to open it, does it work on hosted mode but in web mode fails always, no matter what browser I try(IE 7, Firefox and Chrome). My code is the next one: private void openDocument(String documentName) { final ManagerExportAsync manejador = ManagerExport.Util.getInstance (); AsyncCallback callback = new AsyncCallback(){ String link; public void onSuccess(final Object result) { link = (String)result; Window.open(pdfLink,_blank,); } public void onFailure(Throwable caught){} }; manejador.openDocument(User,userId, documentName,callback); } The String link result is something like this file///:C:/test.jpg I don't know what it's wrong. I read somewhere that the problem could be that I'm calling the Window.open inside the callback but I really don't know what is wrong coul someone give me a hand? Any suggestions? Thanks! Federico. --~--~-~--~~~---~--~~ 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: Windows not showing/hiding as expected
I have now implemented the suggested solution and it works a treat. Many thanks for the advice. On Apr 8, 7:31 am, Gary1975 gary.ev...@gmail.com wrote: Thanks for the advice - I thought it was something like that but didn't know what to do about it. I'll give it a go today The Window and MessageBox come from GWT-Ext On Apr 7, 4:00 pm, Thomas Broyer t.bro...@gmail.com wrote: On 7 avr, 16:13, Gary1975 gary.ev...@gmail.com wrote: Hi, I am relatively new to GWT devlopment and was wondering of someone could please help to explain why the progress dialog is not displaying in the following function. Also, the timeperiod window is not hiding itself until after the line has been drawn. Any ideas would be gratefully received as I have been struggling with this all day. JavaScript in the browser is single-threaded, and moreover runs in the UI thread. This means that changes to the page are only reflected when your script yields, i.e. in your case at the end of your onClick method. The simplest way to make it work as you're expecting is to use a DeferredCommand: wrap everything that follows timepedior.hide() and MessageBox.show(...) within a DeferredCommand; this would yield so the browser can effectively hide the timeperiod and show the MessageBox and then (something like 10ms later) do the drawing and close the MessageBox. (btw: which library are those Window and MessageBox coming from?) --~--~-~--~~~---~--~~ 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 set icon of tree nodes via CSS
Hi guys, would like to follow up on this one. Do you have any ideas? Thanks a lot. :) On Apr 2, 6:47 pm, Mark RG Itol markr...@gmail.com wrote: Hi guys, I am using GWT's Treepanel and I need to set different icons for my TreeNodes. I tried using TreeNode.setIconCls(String) but it doesn't seem to work. My style names are contained in a CSS file and I am also using these style names in setting the icons of menu items (using setIconCls()) and they work (the icons appear on the menu items). Below are some code snippets: Java: TreeNode configNode = new TreeNode(+ New); configNode.setUserObject(-1L); configNode.setIconCls(new); parentNode.appendChild(configNode); CSS: .new {background-image:url(../images/payroll/new.png);} I don't know what I'm missing here -- the codes I've seen in the GWT demo are using the same implementation (setIconCls). Thank you in advance. :) Best regards, 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: debug freeze
And the hosted mode log didn't print any exceptions? Weird. On Wed, Apr 8, 2009 at 12:56 AM, seven.reeds seven.re...@gmail.com wrote: As always, it was my fault. I was using a null object. I was finally able to put try/catch blocks around the right thing. Thanks for your suggestions On Apr 7, 8:31 pm, Vitali Lovich vlov...@gmail.com wrote: Are you sure the address you give the app is correct? Is my.host.comthe name of your machine or some remote machine? It should really be, AFAIK localhost. --~--~-~--~~~---~--~~ 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: HorizontalSplitPanel splitter image through CSS
It's amazing how many gwt developers don't know the basic fact that their apps output html, css, and javascript (*NO* relation of java) to the browser and not java - browsers don't read java! No offence to gwt or java devs of course :-) 2009/4/7 Miloš Ranđelović milos@gmail.com: Thanks, didn't know about that :) I'll have a look as soon as I get a chance and post back what I find. On Apr 7, 4:04 pm, alan m alan.jame...@gmail.com wrote: oh sorry, you need the firebug plugin for FF, or developer toolbar plugin, for IE or Chrome's built-in inspector; essential for front-end work so you can actually see the html and css inserted by ajax magic in the browser. 2009/4/7 Miloš Ranđelović milos@gmail.com: Well, when I view the source in the browser, I only get the GWT html page with references to the JS files, so I don't know how to check that :/ On Apr 6, 3:14 pm, alan m alan.jame...@gmail.com wrote: the HorizontalSplitPanel html that gets served out to the browser, that you're trying to use your css on, of course :-) 2009/4/6 Miloš Ranđelović milos@gmail.com: Hi, I'm not sure which HTML do you refer to... ? On Apr 6, 2:33 pm, alan m alan.jame...@gmail.com wrote: What's the HTML for this? 2009/4/6 Miloš Ranđelović milos@gmail.com: Hi, What's the correct way of setting the image of the HorizontalSplitPanel splitter through CSS? I've tried several different methods, none worked. This is what I have currently: .gwt-HorizontalSplitPanel .hsplitter { background: #42453D; background-image: url(img/horizontalSplitPanelThumb.png) } I'm using GWT 1.6 RC2. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT Violates LGPL
So GWT distribution includes JFreeChart which is LGPL. Problem would be here, Allan, something wrong related to section 4 of the license ? On 8 avr, 07:15, Ian Petersen ispet...@gmail.com wrote: On Tue, Apr 7, 2009 at 10:09 PM, Ian Petersen ispet...@gmail.com wrote: On Tue, Apr 7, 2009 at 4:56 PM, Ian Bambury ianbamb...@gmail.com wrote: If you *don't* release a product under a certain licence, then how can it be possibly be a concern if the product doesn't comply to the licence it isn't released under? I think you've just summarized the irrelevance of this whole thread. I'm a little too sarcastic for my own good. You could violate the GPL (or any license) if you incorporated code from some other project into GWT. Suppose I released a project under the GPL and somebody took some code from my project and got it incorporated into GWT. GWT would probably be unwittingly violating the GPL because it would be a derivative work of my project and it's not being distributed under the terms of the GPL. I don't think that was the scenario originally presented in this thread, though, and I don't think there's any reason to believe that GWT contains contraband code. Also, to contribute to GWT, you first have to sign a document that says your contributions are all unencumbered from a copyright perspective (and possibly a patent perspective, too--I forget). Ian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: File Upload Problem with GWT And Java HttpServlet
Hello everyone! sorry for the multiple posting, but this morning i updated everything to the 1.6, downloaded the eclipse plugin and so on. Now i'm getting another error: The code is the same as yesterday. What i get now is a message in the window.alert like this: HTTP ERROR: 404 NOT_FOUND RequestURI=/ provaupload2 MyFormHandler Powered by Jetty:// I really don't understand how and where gwt look for classes or paths. I configured the web.xml with the servlet like the old one. Where should i put the Servlet? And shall i compile it by myself or is gwt doing already? Sorry for this dumb questions but i really don't find an explanation anywhere. Thank you - Nickelnext --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Visualization works in Android G1?
I make some app to show a PieChart to show information... In firefox the Pie it's quite cool, but when I use my G1 ... Don't work, show information, buttons, and picture, but the part of the PieChart is ... not there I follow the Getting Started ... any Idea? someone make visualizations things work in Android? Thanks ;) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: CSS Style for single tabs of a TabBar
What details do you mean? I think i described it in my first post as good as i could (quoted it below, see Detailed description of the problem). Thanks for the help! On Apr 8, 11:27 am, alan m alan.jame...@gmail.com wrote: We need help to help you :-) More details please - what was the issue; html css browser output? On Wed, Apr 8, 2009 at 7:37 AM, -Lord-67 -lord...@web.de wrote: No suggestions from anyone? Really could need some help here ... Greetings, -Lord-67 Detailed description of the problem: On Apr 1, 12:02 pm, -Lord-67 -lord...@web.de wrote: Hi everyone, i am trying to disable a few tabs in my TabBar since there is no content in some cases. Therefor i disabled those tabs due to adding a TabListener with the Method onBeforeTabSelected which returns false if the tabIndex fits. (hint from this thread:http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...) . It works fine and nothing happens if you try to click on the tab. Now i want those disabled tabs to look different than active or selected tabs. Example CSS file: .MainBar .gwt-TabBar { background-color: #22; } .MainBar .gwt-TabBarItem { font-weight: bold; cursor: pointer; background-color: red; } .MainBar .gwt-TabBarItem-selected { font-weight: bolder; cursor: default; background-color: green; } .MainBar .gwt-TabBarItem-disabled { color: grey; font-style: italic; background-color: yellow; cursor: default; } It works for the active and selected tabs, but i think disabled tabs are not supported in GWT 1.5.3 that's why i have to set the style on my own (since i only managed to disable them), but i don't know how to access a single tab. Any suggestions? If there is a better way to disable tabs and change the style let me know! I think with GWT 1.6 it is possible to enable/disable single tabs, but i would like to work with 1.5.3 until 1.6 has the status of a new official release. Thanks a lot in advance, -Lord-67 --~--~-~--~~~---~--~~ 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: opening new page
This is the way only I also thought. 1. One url that is the main url for Login. And different modules for different pages. right? so I will get the different urls corresponding to different pages. for example. Login page. that is the entry point for the application. http://localhost:/examples.Login/Login.html Welcome.jsp that is the different module which I have to create. http://localhost:/examples.Welcome/Welcome.html . When I click the login button I need to pass the http://localhost:/examples.Welcome/Welcome.html. url . am i right? If it is this case, do I need to create this one as the entry point? Or only One entry point and remaining everything I can do in the Composite right? Please correct me If I am wrong. Thanks Bhanu lakshmi On Apr 7, 10:11 pm, Tony Strauss tony.stra...@designingpatterns.com wrote: Just to be sure that I understand, you want two separate URLs and one GWT application? I don't think that you can satisfy both requirements. As far as I know, when you navigate to another page, even if that page references the same application, a new instance of the application will load on that page. I can think of the following alternatives for you: 1.) Only use one URL, as you've already found. 2.) Use two separate GWT applications (and thus get two URLs). You can do this *and* share information between them, if you like. Essentially, your login application, on successful login, would move to another page, say welcome.jsp (using Window.Location.assign, for instance). welcome.jsp would contain another GWT application. This welcome.jsp GWT application either can: a.) Do RPC to the server in order to get information about the user (since the user now has a session on the server). b.) Have the server fill in any necessary information via JSP templating before being returned to the user. See the Dictionary class:http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g... Tony --- Tony Strauss Designing Patterns, LLChttp://www.designingpatterns.comhttp://blogs.designingpatterns.com On Apr 7, 8:32 am, bhanu baksh...@gmail.com wrote: Hi My Intention is to create a small login and logout application. then once I got to know the concept and everything, I am planning to do quite big application in GWT. Because it seems to be very interesting. Now I am using GWT 1.5.3 version. I am using Cypsal studio for creating modules. I have already created the module for Login screen. so now I have one Login.java and Login.gwt.xml and of course Login.html. Now the real problem starting for me. I could run the application, and could validate the fields. But I dont know how to connect to the second page. Now what I wanted to test is , once the user click OK, it should be forwarded to next page(welcome page) with all session details. I can tell you in JSP point of view.Login.jsp contains the login form. once the user clicks ok, the form is redirected to welcome.jsp and shows his username. and one link for logout. This is how can I implements in GWT. One solution what I got is changing the div id name say for example. RootPanel.get(slot).add(welcome panel). But my url will always be the same. right? I request you to give a small idea regarding the page forwarding. Thanks Bhanu lakshmi On Apr 6, 11:53 pm, Tony Strauss tony.stra...@designingpatterns.com wrote: In general, you need a module file (.gwt.xml) for each GWT module (anything with onModuleLoad()). Perhaps it would be best at this point if you posted your code and described in more detail what you're doing. Which GWT version? Are you testing in hosted mode? With the embedded server? Tony --- Tony Strauss Designing Patterns, LLChttp://www.designingpatterns.comhttp://blogs.designingpatterns.com On Apr 5, 3:34 am, bhanu baksh...@gmail.com wrote: Hi, Thanks sir for the reply.I need to use to use form.setAction (newpage); Because it has to bring the values from login page to newpage. when I used form.setAction(newpage) I got the the runtime error saying newpage-gwt.xml could not find in classpath. So my doubt is, for each page do I need to create the each module? Sir I am new to gwt. I read lots of articles, But i could not find out any article saying forwarding pages. So I request you I may make many mistakes and foolish questions. sorry for that. thanks Bhanu lakshmi. On Apr 5, 10:32 am, Tony Strauss tony.stra...@designingpatterns.com wrote: The Window.Location.assign() method allows you to move to a different page.http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g... --- Tony Strauss Designing Patterns, LLChttp://www.designingpatterns.comhttp://blogs.designingpatterns.com On Apr 4, 3:15 pm, bhanu baksh...@gmail.com wrote: Hi Friends, I am new to GWT. I have been
Re: CSS Style for single tabs of a TabBar
You *can* get at the individual tabs using the DOM, but it will be dependent on the structure of the tab panel and therefore would break if that gets changed. If I were doing it, I'd just set the tab text as HTML with the style included - disabled or not as required. Ian http://examples.roughian.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: CSS Style for single tabs of a TabBar
Sorry, Lord-67, but on a high volume list repeating a request without details or quote is, to me, just an empty email saying help. No offence. :-) If I understand correctly, if you can actually disable a TabBar, at the point you disable it you can also add.styleName(gwt-TabBarItem-disabled) or whatever to implement your disabled styles? Alanj On Wed, Apr 8, 2009 at 12:41 PM, Ian Bambury ianbamb...@gmail.com wrote: You *can* get at the individual tabs using the DOM, but it will be dependent on the structure of the tab panel and therefore would break if that gets changed. If I were doing it, I'd just set the tab text as HTML with the style included - disabled or not as required. Ian http://examples.roughian.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Google App Engine GWT
No Threads? A Java application cannot create a new java.lang.ThreadGroup nor a new java.lang.Thread. These restrictions also apply to JRE classes that make use of threads. For example, an application cannot create a new java.util.concurrent.ThreadPoolExecutor, or a java.util.Timer. An application can perform operations against the current thread, such asThread.currentThread().dumpStack(). What about runnable? Runnable is implemented by class Thread. Runnable provides the means for a class to be active while not subclassing Thread But...still, I think that it wouldn't work. Can anyone please confirm this? Shawn --~--~-~--~~~---~--~~ 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: CSS Style for single tabs of a TabBar
2009/4/8 alan m alan.jame...@gmail.com Sorry, Lord-67, but on a high volume list repeating a request without details or quote is, to me, just an empty email saying help. No offence. :-) You should use Gmail, and it's just the next one up :-) If I understand correctly, if you can actually disable a TabBar, at the point you disable it you can also add.styleName(gwt-TabBarItem-disabled) or whatever to implement your disabled styles? I think it's the tab that is disabled, not the whole TabBar. I don't actually use tabbars, but IIRC you can add widgets to the actual tabs now, so you could get that and change its style. --~--~-~--~~~---~--~~ 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 DAO pattern in a GWT project
You can use DAO pattern to wrap EntityManager using Dreamsource ORM. You can download it from http://dreamsource-orm.googlecode.com/files/dreamsource2_0_0_04062009_GWT_src.jar, create an source folder like dreamsource and extract source files from it into dreamsource source folder. Please check more info from http://www.leeonsoft.com. Dreamsource ORM will make your GWT application to be developed easier and faster. I will create an GWT example based on the Mail included with GWT distribution. Jim Xie On Apr 8, 2:27 am, Neo deepak.krv2...@gmail.com wrote: Hi, Can i use the DAO pattern in a GWT project. If yes then how ? Please suggest. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Deploying GWT applications on OSGi Equinox
Yes I'm absolutely interested. I don't understand how you don't use a war 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 -~--~~~~--~~--~--~---
Proposal for a compiler optimization parameter allowing a cross-module communication scheme.
=== Context information === In order to handle server push events, I am using a pattern described and used in multiple places: a getEvents() RPC method waits for up to 30 seconds but returns as soon as an event is received. The issue is that this pattern eats a browser connection, so that if two GWT modules (loaded on a given page) do register to server events, the 2 allowed connections are wasted. Hence my desire to have a central events receiver/router in the browser and possibly several GWT modules listening to that router. === In the router: === public class ServerEventsRouter { public static void addServerEventsListener( ServerEventListener listener ) { // register the listener in a collection... } ... private static native void createRegisteringFunction() /*-{ $wnd.addServerEventsListener = @com.foo.gwt.ServerEventsRouter::addServerEventsListener(Lcom/foo/gwt/ events/ServerEventListener;); }-*/; ... } The createRegisteringFunction() needs to be called first somehow... === And then, in the client listener: === private native void registerServerEventsListener ( ServerEventListener listener )/*-{ $wnd.addServerEventsListener ( listener ); }-*/; and registerServerEventsListener( new ServerEventListener() { public void onServerEvent( ServerEvent event ) { GWT.log( Received event, null ); }); === The Issue(s) === However, as you might expect, this doesn't work. Well, it works for 'hello world' type of functions which not not require parameters... but the ServerEventListener parameter is not marshalled properly. A. In WEB mode The ServerEventListener interface is not implemented by any class in the router module, so that the dispatching function is optimized from: for ( ServerEvent event : events ) { for ( ServerEventListener listener : listeners ) { listener.onServerEvent( event ); } } into something like: for (event$iterator = events.iterator(); event$iterator.hasNext ();) { dynamicCast(event$iterator.next_0(), 11); for (listener$iterator = $AbstractList$IteratorImpl(new AbstractList$IteratorImpl(), this$static.m_listeners); listener $iterator.i listener$iterator.this$0.size_0();) { throwClassCastExceptionUnlessNull($next_1(listener $iterator)); null.nullMethod(); } } B. In HOSTED mode Presumably in order to match the behaviour of the WEB mode, the classes in the two modules are loaded from two different class loaders, so that the implementations of the ServerEventListener are not seen as such in the router module and any assignment generates a class cast exception. === My proposal === Instruct the compiler not to optimize out sub-classes of a specified type (here ServerEventListener), and have these classes loaded from a common upstream (i.e. more global) class loader in Hosted Mode. --~--~-~--~~~---~--~~ 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: Spring and GWT 1.6RC
This bug is fixed in lastest GWT 1.6 release! On 3月24日, 上午11时47分, Scott Blum sco...@google.com wrote: Hey, can you guys do me a favor and try out a fix? Just take the attached jar and put it on your classpath ahead of gwt-dev-platform.jar. See if it fixes the not and instance of Servlet problem (and doesn't cause other problems). Lemme know if that works, thanks, Scott PS: The Jsp compilation problem is unrelated, I think. By default, Eclipse does NOT put Sun's tools.jar on your classpath, even if you're using a JDK. The fix is to explicitly add the JDK's tools.jar to your classpath. On Mon, Mar 23, 2009 at 2:11 PM, Flemming Boller flemming.bol...@gmail.comwrote: Hi I have created an issuse, number 3496. /Flemming On Mon, Mar 23, 2009 at 4:13 PM, Flemming Boller flemming.bol...@gmail.com wrote: Yes I can, that is the way I use spring and gwt. /FLemming On Mon, Mar 23, 2009 at 12:37 PM, Alejandro D. Garin aga...@gmail.comwrote: Hi, anyone can use Spring context listener in web.xml ? Example: context-param param-namecontextConfigLocation/param-name param-value/WEB-INF/applicationContext.xml/param-value /context-param listener listener-class org.springframework.web.context.ContextLoaderListener /listener-class /listener On Mon, Mar 23, 2009 at 5:45 AM, Ed post2edb...@hotmail.com wrote: Shouldn't this be reported as an issue ? I thought these issues would be solved now with the usage of Jetty instead Tomcat as mentioned here: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa... -- Ed gwt-dev-patch.jar 25K查看下载 --~--~-~--~~~---~--~~ 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: CSS Style for single tabs of a TabBar
We need help to help you :-) More details please - what was the issue; html css browser output? On Wed, Apr 8, 2009 at 7:37 AM, -Lord-67 -lord...@web.de wrote: No suggestions from anyone? Really could need some help here ... Greetings, -Lord-67 --~--~-~--~~~---~--~~ 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: Asynchronous communication from server to client
petrus schrieb: Is there a possibility in GWT to communicate asynchronously from server to client? The term used in general for that is Server Push. A technique for that is called Comet, so if you search Comet GWT with the search engine of your choice, you should come up with a couple of results. The only solution which I've found is to use Timer as it's showed there http://www.gwtapps.com/doc/html/com.google.gwt.user.client.Timer.html , but then calls will be synchronous. What solution do you recommend? Calls in GWT are always synchronously, independent of the way they are initiated. But if you solve it using a Timer you should set a flag if a request is already in progress to make sure that only one requests happen at the same time. Regards, Lothar --~--~-~--~~~---~--~~ 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: CSS Style for single tabs of a TabBar
What details do you need? I think i tried to describe my problem in my first post as good as i can. (quoted it below with Detailed description of the problem) Main problem: How to access a single tab in a tabbar to set CSS style (disabled bar) or any other (better) way to disable a tab than i described in my first post. Thanks :-) On Apr 8, 11:27 am, alan m alan.jame...@gmail.com wrote: We need help to help you :-) More details please - what was the issue; html css browser output? On Wed, Apr 8, 2009 at 7:37 AM, -Lord-67 -lord...@web.de wrote: No suggestions from anyone? Really could need some help here ... Greetings, -Lord-67 Detailed description of the problem: On Apr 1, 12:02 pm, -Lord-67 -lord...@web.de wrote: Hi everyone, i am trying to disable a few tabs in my TabBar since there is no content in some cases. Therefor i disabled those tabs due to adding a TabListener with the Method onBeforeTabSelected which returns false if the tabIndex fits. (hint from this thread:http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...) . It works fine and nothing happens if you try to click on the tab. Now i want those disabled tabs to look different than active or selected tabs. Example CSS file: .MainBar .gwt-TabBar { background-color: #22; } .MainBar .gwt-TabBarItem { font-weight: bold; cursor: pointer; background-color: red; } .MainBar .gwt-TabBarItem-selected { font-weight: bolder; cursor: default; background-color: green; } .MainBar .gwt-TabBarItem-disabled { color: grey; font-style: italic; background-color: yellow; cursor: default; } It works for the active and selected tabs, but i think disabled tabs are not supported in GWT 1.5.3 that's why i have to set the style on my own (since i only managed to disable them), but i don't know how to access a single tab. Any suggestions? If there is a better way to disable tabs and change the style let me know! I think with GWT 1.6 it is possible to enable/disable single tabs, but i would like to work with 1.5.3 until 1.6 has the status of a new official release. Thanks a lot in advance, -Lord-67 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Can't compile with new 1.6 project
Hello, I was using 1.5 and Eclipse for my project and it worked fine (with some home made compiled script). As I wanted to upgrade to the last version, I installed the new Eclipse gwt plugin and created a new project. I think I succeed to import my 5 or 6 modules of my old project, as they are recognized while I want to use the compile tool from the gwt eclipse plugin. But... I can't compile, I've got an error with the very first module, something like : Compiling module fr..client.accueil Computing all possible rebind results for 'fr..client.site.tab.accueil.HomeTabEntryPoint' Rebinding fr..client.site.tab.accueil.HomeTabEntryPoint Checking rule generate-with class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/ [ERROR] Unable to find type 'fr..client.site.tab.accueil.HomeTabEntryPoint' [ERROR] Hint: Previous compiler errors may have made this type unavailable [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly I only inherit the com.google.gwt.user.User module, I verified that 'fr..client.site.tab.accueil.HomeTabEntryPoint' is right too (and in the directory src, which is the source folder), and gwt-user and gwt-dev are part of my librairies in my build path. I must have forgot something so thank you for helping me ! --~--~-~--~~~---~--~~ 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: opening new page
In one GWT application/page, you could show the log in widget, check via Ajax if the details are valid, and if so, display the widget for the second page. There is no need for 2 pages or anything complicated. Ian http://examples.roughian.com 2009/4/8 bhanu baksh...@gmail.com This is the way only I also thought. 1. One url that is the main url for Login. And different modules for different pages. right? so I will get the different urls corresponding to different pages. for example. Login page. that is the entry point for the application. http://localhost:/examples.Login/Login.html Welcome.jsp that is the different module which I have to create. http://localhost:/examples.Welcome/Welcome.html . When I click the login button I need to pass the http://localhost:/examples.Welcome/Welcome.html. url . am i right? If it is this case, do I need to create this one as the entry point? Or only One entry point and remaining everything I can do in the Composite right? Please correct me If I am wrong. Thanks Bhanu lakshmi On Apr 7, 10:11 pm, Tony Strauss tony.stra...@designingpatterns.com wrote: Just to be sure that I understand, you want two separate URLs and one GWT application? I don't think that you can satisfy both requirements. As far as I know, when you navigate to another page, even if that page references the same application, a new instance of the application will load on that page. I can think of the following alternatives for you: 1.) Only use one URL, as you've already found. 2.) Use two separate GWT applications (and thus get two URLs). You can do this *and* share information between them, if you like. Essentially, your login application, on successful login, would move to another page, say welcome.jsp (using Window.Location.assign, for instance). welcome.jsp would contain another GWT application. This welcome.jsp GWT application either can: a.) Do RPC to the server in order to get information about the user (since the user now has a session on the server). b.) Have the server fill in any necessary information via JSP templating before being returned to the user. See the Dictionary class: http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g... Tony --- Tony Strauss Designing Patterns, LLChttp://www.designingpatterns.comhttp:// blogs.designingpatterns.com On Apr 7, 8:32 am, bhanu baksh...@gmail.com wrote: Hi My Intention is to create a small login and logout application. then once I got to know the concept and everything, I am planning to do quite big application in GWT. Because it seems to be very interesting. Now I am using GWT 1.5.3 version. I am using Cypsal studio for creating modules. I have already created the module for Login screen. so now I have one Login.java and Login.gwt.xml and of course Login.html. Now the real problem starting for me. I could run the application, and could validate the fields. But I dont know how to connect to the second page. Now what I wanted to test is , once the user click OK, it should be forwarded to next page(welcome page) with all session details. I can tell you in JSP point of view.Login.jsp contains the login form. once the user clicks ok, the form is redirected to welcome.jsp and shows his username. and one link for logout. This is how can I implements in GWT. One solution what I got is changing the div id name say for example. RootPanel.get(slot).add(welcome panel). But my url will always be the same. right? I request you to give a small idea regarding the page forwarding. Thanks Bhanu lakshmi On Apr 6, 11:53 pm, Tony Strauss tony.stra...@designingpatterns.com wrote: In general, you need a module file (.gwt.xml) for each GWT module (anything with onModuleLoad()). Perhaps it would be best at this point if you posted your code and described in more detail what you're doing. Which GWT version? Are you testing in hosted mode? With the embedded server? Tony --- Tony Strauss Designing Patterns, LLChttp://www.designingpatterns.comhttp:// blogs.designingpatterns.com On Apr 5, 3:34 am, bhanu baksh...@gmail.com wrote: Hi, Thanks sir for the reply.I need to use to use form.setAction (newpage); Because it has to bring the values from login page to newpage. when I used form.setAction(newpage) I got the the runtime error saying newpage-gwt.xml could not find in classpath. So my doubt is, for each page do I need to create the each module? Sir I am new to gwt. I read lots of articles, But i could not find out any article saying forwarding pages. So I request you I may make many mistakes and foolish questions. sorry for that. thanks Bhanu lakshmi. On Apr 5, 10:32 am, Tony Strauss tony.stra...@designingpatterns.com wrote:
Re: GWT dev on Windows and Linux
Do you have profiles in your POM? It looks something like this: profiles profile idgwt-dev-windows/id properties platformwindows/platform /properties activation activeByDefaulttrue/activeByDefault os familyWindows/family /os /activation /profile profile idgwt-dev-mac/id properties platformmac/platform /properties activation os familymac/family /os /activation /profile profile idgwt-dev-linux/id properties platformlinux/platform /properties activation os nameLinux/name /os /activation /profile /profiles Your gwt-dev dependency would look like this: dependency groupIdcom.google.gwt/groupId artifactIdgwt-dev/artifactId version${gwtVersion}/version classifier${platform}-libs/classifier typezip/type scopeprovided/scope /dependency Regards, -- Arthur Kalmenson On Tue, Apr 7, 2009 at 1:02 PM, Marley nathaniel.au...@gmail.com wrote: I have a GWT project which I have been developing on my Windows XP laptop. An older desktop was laying around and I convinced my boss to let me have it. Amazing how quickly the XP installation on it disappeared! I checked out the code on my Linux box but can not compile it via the Maven GWT plug-in or run it from within eclipse now. Maven blows up and Eclipse gives me a: Plug-in org.maven.ide.eclipse.jdt was unable to load class org.maven.ide.eclipse.jdt.internal.launch.MavenRuntimeClasspathProvider. An error occurred while automatically activating bundle org.maven.ide.eclipse.jdt (602). What do i need to do differently on Linux than Windows? Can I develop the same project on both platforms? --~--~-~--~~~---~--~~ 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 use classes in a module that are not part of any module?
Tim, Making a module means creating one XML file. src/com/mycompany/Domain.gwt.xml: module source path=domain / /module ... and done. Inherit that in your GWT app and, assuming that everything in com.mycompany.domain is GWT-compatible, you're set. - Isaac On Wed, Apr 8, 2009 at 1:49 AM, TimOnGmail timbes...@gmail.com wrote: Yes, just for testing purposes, before I actually need to compile everything into JavaScript. Both hierarchies are part of the same project, by the way, and I have already added the non-module hierarchies (both source and compiled) to the class path of the launch configuration for the module. But when I launch it I get lots of these kinds of things: [ERROR] Line 16: No source code is available for type com.on24.loadtest.management.AgentEntry; did you forget to inherit a required module? - Tim On Apr 7, 10:15 pm, Vitali Lovich vlov...@gmail.com wrote: If you're just trying to launch hosted mode, adding the other project onto the build-path should be sufficient. Have you actually tried this it didn't work? You might also want to add the other project as being a dependancy of the GWT project (not necessary for it to work, but just nicer from a behaviour of Eclipse perspective). However, I've never heard of anyone actually compiling the Java into javascript from eclipse - it's certainly possible, but it's not what the default launch config does. On Wed, Apr 8, 2009 at 1:04 AM, TimOnGmail timbes...@gmail.com wrote: Hi Vitali... Well, I wasn't thinking of how to compile everything together in an Ant script. Rather, I was thinking of using the launch config that's created when you follow the how to create a module instructions, and use it to launch the test, without doing any special build processing. You know, follow how to for Eclipse instructions, but rearrange the locations of things or just modifying the single module I'm writing, so that it drags in the other classes from the Eclipse src/ and bin/ folders. Are you talking about creating a custom builder for the project? I already depend upon the default builder for my project. - Tim On Apr 7, 9:29 pm, Vitali Lovich vlov...@gmail.com wrote: For development, yes. Simply add the other project as a dependancy. However, you can try fooling around with the classpath you provide the compiler - maybe that will work. java failonerror=true fork=true classname=com.google.gwt.dev.Compiler classpath pathelement location=path to my beans/ pathelement location=src/ /classpath arg value=com.foo.bar.MyModule/ /java If it doesn't, you could always just maintain an ant task that takes those beans packages them into a module. No it's not ideal because of the multiple locations you have to keep track of dependancies, but it should work. On Tue, Apr 7, 2009 at 9:51 PM, TimOnGmail timbes...@gmail.com wrote: I found some discussions of this here, but the answer always seems to be you can't (unless you make them part of a module, with a common parent, etc. etc., which I do not want to do). Basically, I have this Eclipse project structure: 1. src/com/mycompany/domain/... (serializable domain objects) 2. gwt/[recommended structure] I want the serializable domain objects in #1 available to the module in #2, WITHOUT HAVING TO MAKE #1 A MODULE. Seems like it should be doable, doesn't it? But from what I've read here, it can't be done. I also tried putting everything in #2 into the top level src/ hierarchy, and put all the module support files in the top level of the project, but I couldn't get it work that way, either. So... as of today, is it at all possible to have 2 separate source hierarchies, 1 of which contains a GWT module, the other of which contains simple serializable beans, and have the module be aware of the other classes? I mean, they are there, they are serializable, the source is available - why wouldn't it be possible to point the GWT module to any arbitrary place where there are classes that can be used? Seems weird. Failing that, is it possible to have a standard Eclipse project format, like the above, with the GWT module classes embedded in the src/ hierarchy? If so, how would you set up the module file, etc.? - Tim On Apr 7, 5:25 pm, TimOnGmail timbes...@gmail.com wrote: Hi all... I've looked around here, and didn't find this specific question asked (although I'm sure it has been). I have created a module, and have a bunch of bean classes residing elsewhere. These bean classes are all Serializable (since I transfer them between several servers already), and I want to use them in my module. However, I don't want to have to turn these other libraries INTO modules just to use these bean classes. Is this even possible in GWT? - Tim
Google App Engine GWT
Good news: http://code.google.com/appengine/docs/java/overview.html http://code.google.com/appengine/docs/java/overview.html ... The Google Plugin for Eclipsehttp://code.google.com/appengine/docs/java/tools/eclipse.html adds new project wizards and debug configurations to your Eclipsehttp://www.eclipse.org/ IDE for App Engine projects. App Engine for Java makes it especially easy to develop and deploy world-class web applications using Google Web Toolkithttp://code.google.com/webtoolkit/ (GWT). The Eclipse plugin comes bundled with the App Engine and GWT SDKs. ... I still don't know if it supports server side GWT code for proper GWT-RPC. Bad news: http://code.google.com/appengine/docs/java/runtime.html http://code.google.com/appengine/docs/java/runtime.html ... The Sandbox ... Threads A Java application cannot create a new java.lang.ThreadGroup nor a new java.lang.Thread. These restrictions also apply to JRE classes that make use of threads. For example, an application cannot create a new java.util.concurrent.ThreadPoolExecutor, or a java.util.Timer. An application *can* perform operations against the current thread, such as Thread.currentThread().dumpStack(). ... Regards, Freller --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Large GWT-application on mobile phones
Hello, today I tried to run my main GWT-application (administrative backend of a server-application) on an iPhone/iPod touch and a G1 with Android. At the moment the application is still compiled using GWT 1.4.60, so some issues might already be fixed with later versions. The following things I saw trying that: Android: - The browser coming with G1 is not able to do HTTP Basic Authentication (WTF?) - RPC-calls using serializable classes lead to ArrayIndex- OutOfBoundsExceptions on the server-side when using serialized classes (seems to work with GWT 1.5.3 if I followed threads here correctly). Mobile Safari: - Safari on an iPod touch 2G is showing the application after some while and crashes after doing some RPC-calls. - Safari on an iPhone 2G shows the application but instead of crashing, the browser fails to do RPC-calls after a while. I think the problems with Safari are a result of the size of the application (HTML-file) of more than 1MB. The application is in my eyes simply running out of memory. Before starting a migration from 1.4.60 to 1.5, should I wait for 1.6 and use LazyPanel or is there no effect at all if I have a huge HTML-file anyway? Or is there now a way to modularize the application, allowing to download parts of the application on demand instead of one big HTML-file being loaded at startup)? Regards, Lothar --~--~-~--~~~---~--~~ 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: Connecting to database with eclipse
No, i don't have it. Here's my client side RPC interface: package vCarePortal.client; import java.sql.Date; import com.google.gwt.user.client.rpc.AsyncCallback; public interface DiscussionBoardServiceAsync { public void getForums(int forumAccessLevel, AsyncCallbackForum[] callback); public void getTopics(int forumID, int topicAccessLevel, AsyncCallbackTopic[] callback); public void getThreads(int topicID, int threadAccessLevel, AsyncCallbackThread[] callback); public void getDiscussionPosts(int threadID, AsyncCallbackThreadReply [] callback); public void getUser(String password, String userID, AsyncCallbackContributor callback); public void countThreads(int topicID, AsyncCallbackInteger callback); public void countThreadReplies(int threadID, AsyncCallbackInteger callback); public void getLatestThreadReply (int threadID, AsyncCallbackString[] callback); public void getImageURL (String imageID, AsyncCallbackString callback); public void createForum(String forumName, String forumDescription, String userID, int accessLevel, AsyncCallbackVoid callback); public void modifyForum (int forumID, String forumName, String forumDescription, int accessLevel, AsyncCallbackVoid callback); public void deteleForum (int forumID, AsyncCallbackVoid callback); public void createTopic (String topicTitle, String topicDescription, int topicAccessLevel, String creatorID, int forumID, AsyncCallbackVoid callback); public void modifyTopic(int topicID, String topicName, String topicDescription, int topicAccessLevel, AsyncCallbackVoid callback); public void deteleTopic (int topicID, AsyncCallbackVoid callback); public void addThread (String threadTitle, String threadDesc, int threadAccessLevel, int threadCreatorID, int topicID, AsyncCallbackVoid callback); public void modifyThread(int threadID, String threadTilte, String threadDescription, int threadAcessLevel, AsyncCallbackVoid callback); public void deleteThread(int threadID, AsyncCallbackVoid callback); public void addThreadReply(int threadID, int replierID, Date replyTimestamp, String replyContent, AsyncCallbackVoid callback); public void modifyThreadReply(int threadReplyID, Date modifyTimestamp, String replyContent, AsyncCallbackVoid callback); public void deleteThreadReply(int threadReplyID, AsyncCallbackVoid callback); } --~--~-~--~~~---~--~~ 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: Connecting to database with eclipse
package vCarePortal.client; import java.sql.Date; import com.google.gwt.user.client.rpc.RemoteService; public interface DiscussionBoardService extends RemoteService { public Forum[] getForums(int forumAccessLevel); public Topic[] getTopics(int forumID, int topicAccessLevel); public Thread[] getThreads(int topicID, int threadAccessLevel); public ThreadReply[] getDiscussionPosts(int threadID); public Contributor getUser(String password, String userID); public int countThreads(int topicID); public int countThreadReplies(int threadID); public String[] getLatestThreadReply (int threadID); public String getImageURL (String imageID); public void createForum(String forumName, String forumDescription, String userID, int accessLevel); public void modifyForum (int forumID, String forumName, String forumDescription, int accessLevel); public void deteleForum (int forumID); public void createTopic (String topicTitle, String topicDescription, int topicAccessLevel, String creatorID, int forumID); public void modifyTopic(int topicID, String topicName, String topicDescription, int topicAccessLevel); public void deteleTopic (int topicID); public void addThread (String threadTitle, String threadDesc, int threadAccessLevel, int threadCreatorID, int topicID); public void modifyThread(int threadID, String threadTilte, String threadDescription, int threadAcessLevel); public void deleteThread(int threadID); public void addThreadReply(int threadID, int replierID, Date replyTimestamp, String replyContent); public void modifyThreadReply(int threadReplyID, Date modifyTimestamp, String replyContent); public void deleteThreadReply(int threadReplyID); } --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Asynchronous communication from server to client
Hello, Is there a possibility in GWT to communicate asynchronously from server to client? The only solution which I've found is to use Timer as it's showed there http://www.gwtapps.com/doc/html/com.google.gwt.user.client.Timer.html , but then calls will be synchronous. What solution do you recommend? Regards, Peter --~--~-~--~~~---~--~~ 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 sing events on the mark up element
On 8 avr, 09:37, vaibhav vaibhav@gmail.com wrote: Hi, I want to access the text box written in HTML from GWT on the basis of element ID. I am able to get this elemt in GWT and also show that. Even I am able to change the text of the text box but I am not able to add the events to the element. How to add the event. I have written some bit of code but not able to sink the event. I have extended the text box to add the element --- -- Public class MarkupTextBox extends TextBox{ Public MarkupTextBox(String markupTextboxID) { This(DOM.getElementById(markupTextboxID)); } Protected MarkupTextBox(Element element) { Super(element); }} --- -- And then adding listener to it --- -- -- Final MarkupTextBox box = new MarkupTextBox(poctext); Box.setText(Hi how are you); Box.addClickListener(new ClickListener(){ Public void onClick(Widget sender) {}}); Box.addChangeListener(new ChangeListener(){ Public void onChange(Widget sender) { Box.setText(Hi how are you);}}); - May be I making some mistake. Your widget isn't attached, so events are actually not sunk. Why not just use TextBox.wrap(DOM.getElementById(markupTextboxID)) instead of building your own MarkupTextBox? --~--~-~--~~~---~--~~ 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: CSS Style for single tabs of a TabBar
@Ian Bambury: Thanks, i will try it with DOM or else if that doesn't work the second way with html, just not sure if i will be able to do that on my own since i am not that experienced :-). DOM should be possible because the tabs don't change, i just want some of them to be disabled at a certain point and enabled later on ... @alan m: No problem, i was just confused about your post, i am thankful for every help i can get ;-). As Ian said it's not the whole TabBar i want to access (set style to 'disabled'), it's a single tab. I already managed to disable them (see other thread i cited in my first post) but i am not able to change the style of those disabled tabs. Thanks guys for the help, i will let you know wheater i was successful or not! Greetings, -Lord-67 --~--~-~--~~~---~--~~ 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: Just getting started with GWT: how to wrap a native Java library?
Hey Jake, I've never used the SWT Canvas, but if it's anything like the canvas tag, you might want to check out the GWTCanvas in the incubator: http://code.google.com/docreader/#p=google-web-toolkit-incubators=google-web-toolkit-incubatort=GWTCanvas Also, Vitali, there's a GWT library for accessing gears: http://code.google.com/p/gwt-google-apis/ Regards, -- Arthur Kalmenson On Tue, Apr 7, 2009 at 3:35 PM, Jake otakuj...@gmail.com wrote: Isaac, thank you for the informed response, I believe that was exactly what I was looking for. Best regards, Jake On Apr 7, 3:27 pm, Isaac Truett itru...@gmail.com wrote: Jake, You would have to create a class org.eclipse.swt.widgets.Canvas such that it is GWT-compatible. That means only using emulated JRE classes (String, collections, etc.). Any class required for the Canvas class API has to be implemented in a GWT-compatible manner as well. This transitive dependency is what really kills you. If you get to a point where you have to use a non-emulated JRE class (e.g., java.io.* (almost)), you're hosed (I believe this was essentially Ian's point). Assuming you manage to implement the entire API, you create a module file (gwt.xml) that includes the source you just wrote, inherit that module in your GWT app, and enjoy. For more on JRE emulation, see: http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=goog... - Isaac On Tue, Apr 7, 2009 at 3:14 PM, Jake otakuj...@gmail.com wrote: I feel like I'm not expressing myself clearly. Let's just focus on the reduced case: import org.eclipse.swt.widgets.Canvas; public class foo { } Right now, if I try to run this through GWT, it will throw an error because it can't compile Canvas and all of its dependencies. This is to be expected. So what I would like is to roll my own Canvas class which extends GWT's Widget class, and have that be used instead, but in such a way that I don't have to touch the existing program's source code. Ian, you seem to be suggesting that I need to hack this into the internals of GWT itself, and try to push it upstream. I feel like there should be a way to do this without having modify GWT internals, because this would allow certain applications (not all of them) that leverage native GUI toolkits to be compiled directly to a browser- based version, without having to port them to a GWT-friendly set of libraries. This would be a very powerful feature, but it may not exist. If I could just get confirmation on this, I would appreciate it. Thanks, Jake On Apr 7, 2:38 pm, Ian Bambury ianbamb...@gmail.com wrote: GWT isn't Java. It just uses Java syntax so that Java books are useful, and things like Eclipse work for it. GWT code becomes JavaScript. It is never at any point Java. A very simple compiler might recognise 'Window.alert( and translate it to 'document.alert( If you whole program consists of Window.alert(Hello); then it will be OK. Anything else will fail. The Google team have emulated many other commands and structures, but not all of them: some are obscure and therefore not high enough up the priority list, and some are impossible because, like threading, JS just doesn't do that. It would be an impossible task to emulate every possible class in every Java library in existence. And would take for ever. So if it ain't emulated, it ain't gonna work because the compiler will issue a polite and rather technical version of 'WTF?' And just throwing any old java program into the GWT compiler is, pretty much, pointless. But if you really want to help Google and emulate rg.eclipse.swt.widgets.Canvas for GWT, then I'm sure they (and many others) will be eternally grateful for at least a week or two :-) If so, troll your little old lallies over to the very bonahttp://groups.google.com/group/Google-Web-Toolkit-Contributors --~--~-~--~~~---~--~~ 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: Just getting started with GWT: how to wrap a native Java library?
On Wed, Apr 8, 2009 at 8:52 AM, Arthur Kalmenson arthur.k...@gmail.comwrote: Hey Jake, I've never used the SWT Canvas, but if it's anything like the canvas tag, you might want to check out the GWTCanvas in the incubator: http://code.google.com/docreader/#p=google-web-toolkit-incubators=google-web-toolkit-incubatort=GWTCanvas GWT 1.6 includes Canvas from what I recall off the top of my head (or is that only trunk?). Also, Vitali, there's a GWT library for accessing gears: http://code.google.com/p/gwt-google-apis/ I never meant to imply that there wasn't - just that it's not part of GWT probably never will be, especially given that HTML5 is an actual W3C standard that browsers have already started implementing. Regards, -- Arthur Kalmenson On Tue, Apr 7, 2009 at 3:35 PM, Jake otakuj...@gmail.com wrote: Isaac, thank you for the informed response, I believe that was exactly what I was looking for. Best regards, Jake On Apr 7, 3:27 pm, Isaac Truett itru...@gmail.com wrote: Jake, You would have to create a class org.eclipse.swt.widgets.Canvas such that it is GWT-compatible. That means only using emulated JRE classes (String, collections, etc.). Any class required for the Canvas class API has to be implemented in a GWT-compatible manner as well. This transitive dependency is what really kills you. If you get to a point where you have to use a non-emulated JRE class (e.g., java.io.* (almost)), you're hosed (I believe this was essentially Ian's point). Assuming you manage to implement the entire API, you create a module file (gwt.xml) that includes the source you just wrote, inherit that module in your GWT app, and enjoy. For more on JRE emulation, see: http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=goog. .. - Isaac On Tue, Apr 7, 2009 at 3:14 PM, Jake otakuj...@gmail.com wrote: I feel like I'm not expressing myself clearly. Let's just focus on the reduced case: import org.eclipse.swt.widgets.Canvas; public class foo { } Right now, if I try to run this through GWT, it will throw an error because it can't compile Canvas and all of its dependencies. This is to be expected. So what I would like is to roll my own Canvas class which extends GWT's Widget class, and have that be used instead, but in such a way that I don't have to touch the existing program's source code. Ian, you seem to be suggesting that I need to hack this into the internals of GWT itself, and try to push it upstream. I feel like there should be a way to do this without having modify GWT internals, because this would allow certain applications (not all of them) that leverage native GUI toolkits to be compiled directly to a browser- based version, without having to port them to a GWT-friendly set of libraries. This would be a very powerful feature, but it may not exist. If I could just get confirmation on this, I would appreciate it. Thanks, Jake On Apr 7, 2:38 pm, Ian Bambury ianbamb...@gmail.com wrote: GWT isn't Java. It just uses Java syntax so that Java books are useful, and things like Eclipse work for it. GWT code becomes JavaScript. It is never at any point Java. A very simple compiler might recognise 'Window.alert( and translate it to 'document.alert( If you whole program consists of Window.alert(Hello); then it will be OK. Anything else will fail. The Google team have emulated many other commands and structures, but not all of them: some are obscure and therefore not high enough up the priority list, and some are impossible because, like threading, JS just doesn't do that. It would be an impossible task to emulate every possible class in every Java library in existence. And would take for ever. So if it ain't emulated, it ain't gonna work because the compiler will issue a polite and rather technical version of 'WTF?' And just throwing any old java program into the GWT compiler is, pretty much, pointless. But if you really want to help Google and emulate rg.eclipse.swt.widgets.Canvas for GWT, then I'm sure they (and many others) will be eternally grateful for at least a week or two :-) If so, troll your little old lallies over to the very bonahttp:// groups.google.com/group/Google-Web-Toolkit-Contributors --~--~-~--~~~---~--~~ 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: Large GWT-application on mobile phones
On Wed, Apr 8, 2009 at 8:38 AM, Lothar Kimmeringer j...@kimmeringer.dewrote: Hello, today I tried to run my main GWT-application (administrative backend of a server-application) on an iPhone/iPod touch and a G1 with Android. At the moment the application is still compiled using GWT 1.4.60, so some issues might already be fixed with later versions. The following things I saw trying that: Android: - The browser coming with G1 is not able to do HTTP Basic Authentication (WTF?) That seems strange unlikely given that it's Chrome (or at least some kind of Webkit-based browser). Try running your app in Chrome on the desktop - does that work? Do you have the latest updates on the phone? - RPC-calls using serializable classes lead to ArrayIndex- OutOfBoundsExceptions on the server-side when using serialized classes (seems to work with GWT 1.5.3 if I followed threads here correctly). Mobile Safari: - Safari on an iPod touch 2G is showing the application after some while and crashes after doing some RPC-calls. - Safari on an iPhone 2G shows the application but instead of crashing, the browser fails to do RPC-calls after a while. Do you see these problems on the desktop version of Safari? The iPhone desktop versions are pretty much identical in the backend. What do you mean by crashes? I think the problems with Safari are a result of the size of the application (HTML-file) of more than 1MB. The application is in my eyes simply running out of memory. Before starting a migration from 1.4.60 to 1.5, should I wait for 1.6 and use LazyPanel or is there no effect at all if I have a huge HTML-file anyway? Or is there now a way to modularize the application, allowing to download parts of the application on demand instead of one big HTML-file being loaded at startup)? Build from trunk use GWT.runAsynchttp://code.google.com/p/google-web-toolkit/wiki/CodeSplitting. LazyPanel is more for drawing performance. You may also want to ensure that you aren't leaving cycles in your references, thereby preventing garbage collection (i.e. when you remove a widget, remove it's listeners as well). Since you're also dealing with the mobile space, you may want to make sure that when you hide a composite, you actually remove it from the page then recreate it as necessary if it gets added back (unless it's really expensive). Uggh - I wish there were decent profiling tools for web development to break down memory usage of webapps. Regards, Lothar --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
ImageBundle too wide to display in IE7 under Vista
I recently encountered an issue where the contents of an ImageBundle were not being displayed at all, but only under Vista and IE7. Using XP with IE6, IE7, FireFox 2, FireFox 3 the contents of the ImageBundle displayed with no problems. There are second hand reports that it worked under Vista and IE8, but I have not seen it myself. I ruled out file size as the limiting factor sense I have other ImageBundles that worked properly, yet their file size was larger than the offending ImageBundle. After some experimenting it APPEARS that IE7 under Vista imposes a limit of 2048 pixels for the width of a PNG that is being displayed using the AlphaImageLoader Filter. As soon as the ImageBundle width exceeds 2048 pixels, it fails to appear. The obvious work around was to break up the ImageBundle to reduce it's width. Has anybody else encountered this? Is this something that I should have already known about? Thanks, Mark McCall --~--~-~--~~~---~--~~ 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: CSS Style for single tabs of a TabBar
Hi, Don't use the DOM - Google might change the structure, that's what would break it. There are two possibilities: 1) Add HTML as the tab title When the enabled/disabled change happens, get it back and change the style class in the html string you get back and replace it (a simple replaceAll() would do). 2) Add a Label widget as the tab title Also add that label to an ArrayList (because there is no way to get it back from the tab, so you have to do it this way) When the enabled/disabled change happens, get the label from the ArrayList and do a setStyle() on it. The first way is kludgier, but simpler :-) Ian http://examples.roughian.com 2009/4/8 -Lord-67 -lord...@web.de @Ian Bambury: Thanks, i will try it with DOM or else if that doesn't work the second way with html, just not sure if i will be able to do that on my own since i am not that experienced :-). DOM should be possible because the tabs don't change, i just want some of them to be disabled at a certain point and enabled later on ... @alan m: No problem, i was just confused about your post, i am thankful for every help i can get ;-). As Ian said it's not the whole TabBar i want to access (set style to 'disabled'), it's a single tab. I already managed to disable them (see other thread i cited in my first post) but i am not able to change the style of those disabled tabs. Thanks guys for the help, i will let you know wheater i was successful or not! Greetings, -Lord-67 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Announcing GWT 1.6...and quite a bit more
I just want to GWT community to know you CAN boost your productivity by using Dreamsource ORM from http://dreamsource-orm.googlecode.com/files/dreamsource2_0_0_04062009_GWT_src.jar. Dreamsource ORM is implemented to target GWT applications after the first version is being used in production for more than three years. It eliminates the problems you have when you use JPA or Hibernate. It also provides JPA2.0 features in a simplest way. Try it to see the difference. Jim Xie On Apr 7, 11:57 pm, Bruce Johnson br...@google.com wrote: Hi Folks! Exciting news today. Rather than attempting to describe everything here, let me point you to some blog posts that hopefully you will find interesting: GWT 1.6 and friends:http://googlewebtoolkit.blogspot.com/2009/04/introducing-gwt-16-and-f... Seriously this time, the new language on App Engine: Javahttp://googleappengine.blogspot.com/2009/04/seriously-this-time-new-l... Google Plugin for Eclipse -- Peanut Butter to Eclipse's Chocolatehttp://googlewebtoolkit.blogspot.com/2009/04/google-plugin-for-eclips... -- Bruce, on behalf of the GWT, App Engine, and Google Plugin teams --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: File Upload Problem with GWT And Java HttpServlet
If you're running in web mode or hosted mode with -noserver, you would deploy class files to WEB-INF/classes. com.example.Foo would be WEB-INF/classes/com/example/Foo.class, for example. 2009/4/8 Nickelnext nickeln...@gmail.com: Hello everyone! sorry for the multiple posting, but this morning i updated everything to the 1.6, downloaded the eclipse plugin and so on. Now i'm getting another error: The code is the same as yesterday. What i get now is a message in the window.alert like this: HTTP ERROR: 404 NOT_FOUND RequestURI=/ provaupload2 MyFormHandler Powered by Jetty:// I really don't understand how and where gwt look for classes or paths. I configured the web.xml with the servlet like the old one. Where should i put the Servlet? And shall i compile it by myself or is gwt doing already? Sorry for this dumb questions but i really don't find an explanation anywhere. Thank you - Nickelnext --~--~-~--~~~---~--~~ 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: Large GWT-application on mobile phones
Vitali Lovich schrieb: Android: - The browser coming with G1 is not able to do HTTP Basic Authentication (WTF?) That seems strange unlikely given that it's Chrome (or at least some kind of Webkit-based browser). Try running your app in Chrome on the desktop - does that work? Do you have the latest updates on the phone? I don't have Chrome on the desktop (I don't agree with the terms of usage, so I'm not able to install it). The phone was updated about one month ago. The phone's message is quite clear: Das Authentifizierungsschema fuer die Site wird nicht unterstuetzt. (The site's authentication-scheme is not supported) The server's response-header looks OK to me: $ telnet 127.0.0.1 9000 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. GET / HTTP/1.0 Host: localhost HTTP/1.1 401 Unauthorized Date: Wed, 08 Apr 2009 13:44:31 GMT Server: IS/5.7.20_14442 WWW-Authenticate: basic realm=HUB Admin Realm Content-Type: text/html Content-Length: 1127 Connection: close Mobile Safari: - Safari on an iPod touch 2G is showing the application after some while and crashes after doing some RPC-calls. - Safari on an iPhone 2G shows the application but instead of crashing, the browser fails to do RPC-calls after a while. Do you see these problems on the desktop version of Safari? No, the application is running smoothly there. The iPhone desktop versions are pretty much identical in the backend. What do you mean by crashes? When working with the application it suddenly vanishes in the same way it do when you press the Main-button. I never saw this behavior on other pages, so I assume that it's killed by the operating system because there is not enough memory and Safari wasn't able to free up enough ressources after being told so by the system (which lead to the kill of the application). So crashing might not be the correct term here but the user- experience is the same ;-) [Splitting GWT-application to reduce memory-consumption] Build from trunk use GWT.runAsync http://code.google.com/p/google-web-toolkit/wiki/CodeSplitting. Looks good (meaning that I still can skip 1.5 and can go from 1.4.60 to 1.6 directly). Two questions that I don't find answered in the page you linked: 1. My application is already modularized, every page allowing the administration of one particular service is a class derived from a superclass AbstractServicePanel. When clicking on an entry in the list of services, a method is called that is evaluating the panel to be initialized: AbstractServicePanel panel = null; try{ if (status.handlingName.equals(AS2Service)){ panel = new As2ServicePanel(); } else if (status.handlingName.equals(LogService)){ panel = new LogServicePanel(); } else if (status.handlingName.equals(authplain)){ panel = new AuthServicePanel(); } else if (status.handlingName.equals(commlogplain)){ panel = new CommunicationLogServicePanel(); } [etc] else if (status.handlingName.equals(AdminService)){ panel = new AdminServicePanel(); } } catch(Throwable t){ callback.onFailure(t); return; } if (panel == null){ panel = new UnimplementedPanel(status); } callback.onSuccess(panel); The callback removes a previously shown panel and adds the new one. Is it enough to put the whole if-cascade into one GWT.runAsync or do I have to do it for every if-statement if I want to let GWT perform a deferred loading for each panel? 2. Is it possible to unload loaded parts? Otherwise I might be able to run the application in the beginning but the longer the application is used (i.e. the more panels are loaded and initialized), the higher the likelyhood of running out of ressources will be. You may also want to ensure that you aren't leaving cycles in your references, thereby preventing garbage collection (i.e. when you remove a widget, remove it's listeners as well). Is there a link to the GWT-documentation where this problem is explained further? If I have a Panel, containing a button and I add a ClickListener to that Button, do I really have to remove that ClickListenner from the Button before removing the Panel? Since you're also dealing with the mobile space, you may want to make sure that when you hide a composite, you actually remove it from the page then recreate it as necessary if it gets added back (unless it's really expensive). I've got quite complex Dialog-boxes. How can I remove a Dialog-box? At the moment I'm only calling hide(). Thanks and regards, Lothar --~--~-~--~~~---~--~~ 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
Re: Large GWT-application on mobile phones
On Wed, Apr 8, 2009 at 9:54 AM, Lothar Kimmeringer j...@kimmeringer.dewrote: Vitali Lovich schrieb: Android: - The browser coming with G1 is not able to do HTTP Basic Authentication (WTF?) That seems strange unlikely given that it's Chrome (or at least some kind of Webkit-based browser). Try running your app in Chrome on the desktop - does that work? Do you have the latest updates on the phone? I don't have Chrome on the desktop (I don't agree with the terms of usage, so I'm not able to install it). Would installing it in a temporary VM be ok? Then you can just wipe the VM afterwards. The phone was updated about one month ago. The phone's message is quite clear: Das Authentifizierungsschema fuer die Site wird nicht unterstuetzt. (The site's authentication-scheme is not supported) The server's response-header looks OK to me: $ telnet 127.0.0.1 9000 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. GET / HTTP/1.0 Host: localhost HTTP/1.1 401 Unauthorized Date: Wed, 08 Apr 2009 13:44:31 GMT Server: IS/5.7.20_14442 WWW-Authenticate: basic realm=HUB Admin Realm Content-Type: text/html Content-Length: 1127 Connection: close I don't have much experience with the HTTP auth route - I tend to do the authentication through the GWT RPC approach. Mobile Safari: - Safari on an iPod touch 2G is showing the application after some while and crashes after doing some RPC-calls. - Safari on an iPhone 2G shows the application but instead of crashing, the browser fails to do RPC-calls after a while. Do you see these problems on the desktop version of Safari? No, the application is running smoothly there. Are you sure that the RPC calls stop that your app isn't crashing? Try this in your onModuleLoad: new Timer() { public void run() { rpcServiceAsync.doRpcHeartbeat(System.currentTimeMillis(), new AsyncCallbackVoid() {public void onFailure(Throwable cause){} public void onSuccess(Void result){}}); } }.scheduleRepeating(5000); where doRpcHeartbeat is an RPC invocation where you just log the timestamp on the server or something. That way you can be sure that you can tell if suddenly RPC stops working (by the way, there's a limit to how many concurrent outstanding AJAX calls you can make - could you be hitting this limit?). The iPhone desktop versions are pretty much identical in the backend. What do you mean by crashes? When working with the application it suddenly vanishes in the same way it do when you press the Main-button. I never saw this behavior on other pages, so I assume that it's killed by the operating system because there is not enough memory and Safari wasn't able to free up enough ressources after being told so by the system (which lead to the kill of the application). Are your phones jailbroken? If so, there might be some performance monitors you can run (at the very least you have top) to get a sense of why Safari crashes (does Apple provide developer tools for determining why Safari unloads the page?) So crashing might not be the correct term here but the user- experience is the same ;-) [Splitting GWT-application to reduce memory-consumption] Build from trunk use GWT.runAsync http://code.google.com/p/google-web-toolkit/wiki/CodeSplitting. Looks good (meaning that I still can skip 1.5 and can go from 1.4.60 to 1.6 directly). Not 1.6 - must be trunk. Code splitting wasn't put into 1.6. It's one of the major featres that's going into 2.0 with OOPHM being another one. Two questions that I don't find answered in the page you linked: 1. My application is already modularized, every page allowing the administration of one particular service is a class derived from a superclass AbstractServicePanel. When clicking on an entry in the list of services, a method is called that is evaluating the panel to be initialized: AbstractServicePanel panel = null; try{ if (status.handlingName.equals(AS2Service)){ panel = new As2ServicePanel(); } else if (status.handlingName.equals(LogService)){ panel = new LogServicePanel(); } else if (status.handlingName.equals(authplain)){ panel = new AuthServicePanel(); } else if (status.handlingName.equals(commlogplain)){ panel = new CommunicationLogServicePanel(); } [etc] else if (status.handlingName.equals(AdminService)){ panel = new AdminServicePanel(); } } catch(Throwable t){ callback.onFailure(t); return; } if (panel == null){ panel = new UnimplementedPanel(status); } callback.onSuccess(panel); The callback removes a previously shown panel and adds the new one. Is it enough to put the whole if-cascade into one GWT.runAsync or do I have to do it for every if-statement if I want to let GWT perform a
Re: Asynchronous communication from server to client
On Wed, Apr 8, 2009 at 7:08 AM, Lothar Kimmeringer j...@kimmeringer.dewrote: petrus schrieb: Is there a possibility in GWT to communicate asynchronously from server to client? The term used in general for that is Server Push. A technique for that is called Comet, so if you search Comet GWT with the search engine of your choice, you should come up with a couple of results. The only solution which I've found is to use Timer as it's showed there http://www.gwtapps.com/doc/html/com.google.gwt.user.client.Timer.html , but then calls will be synchronous. What solution do you recommend? Timers are best for scheduling period tasks like animation. DeferredCommand for background processing. Calls in GWT are always synchronously, independent of the way they are initiated. Actually, they are always asynchronous. They are single threaded though if that's what you meant. Anyways, GWT RPC is the way to invoke server code (RequestBuilder for generic AJAX queries against JSON services whatnot). Give it your AsyncCallback which gets invoked when the call returns from the server. But if you solve it using a Timer you should set a flag if a request is already in progress to make sure that only one requests happen at the same time. Again - not the right pattern. Do your call in the onFailure/onSuccess methods of your callback. That'll implicitly guarantee 1 outstanding call at any time. Regards, Lothar --~--~-~--~~~---~--~~ 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: Asynchronous communication from server to client
Thanks for your advice! I'll try with comet. On 8 Kwi, 13:08, Lothar Kimmeringer j...@kimmeringer.de wrote: petrus schrieb: Is there a possibility in GWT to communicate asynchronously from server to client? The term used in general for that is Server Push. A technique for that is called Comet, so if you search Comet GWT with the search engine of your choice, you should come up with a couple of results. The only solution which I've found is to use Timer as it's showed therehttp://www.gwtapps.com/doc/html/com.google.gwt.user.client.Timer.html , but then calls will be synchronous. What solution do you recommend? Calls in GWT are always synchronously, independent of the way they are initiated. But if you solve it using a Timer you should set a flag if a request is already in progress to make sure that only one requests happen at the same time. Regards, Lothar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Announcing GWT 1.6...and quite a bit more
Nice. On Apr 7, 11:57 pm, Bruce Johnson br...@google.com wrote: Hi Folks! Exciting news today. Rather than attempting to describe everything here, let me point you to some blog posts that hopefully you will find interesting: GWT 1.6 and friends:http://googlewebtoolkit.blogspot.com/2009/04/introducing-gwt-16-and-f... Seriously this time, the new language on App Engine: Javahttp://googleappengine.blogspot.com/2009/04/seriously-this-time-new-l... Google Plugin for Eclipse -- Peanut Butter to Eclipse's Chocolatehttp://googlewebtoolkit.blogspot.com/2009/04/google-plugin-for-eclips... -- Bruce, on behalf of the GWT, App Engine, and Google Plugin teams --~--~-~--~~~---~--~~ 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: Proposal for a compiler optimization parameter allowing a cross-module communication scheme.
Seems like your pattern is easily solved (I didn't look at your compiler suggestion, so this isn't a comment about that). Have your clients send a timestamp in the RPC to the server. The server then takes the highest timestamp tells the client that it doesn't need to listen to notifications instead listen to some other module. Then for your central communication, you can use JSNI to transfer data between modules, or, better yet, have 1 module that inherits the other modules can then provide them with a ServerEventsRouter to use. On Wed, Apr 8, 2009 at 6:04 AM, Yann jan.vorw...@googlemail.com wrote: === Context information === In order to handle server push events, I am using a pattern described and used in multiple places: a getEvents() RPC method waits for up to 30 seconds but returns as soon as an event is received. The issue is that this pattern eats a browser connection, so that if two GWT modules (loaded on a given page) do register to server events, the 2 allowed connections are wasted. Hence my desire to have a central events receiver/router in the browser and possibly several GWT modules listening to that router. === In the router: === public class ServerEventsRouter { public static void addServerEventsListener( ServerEventListener listener ) { // register the listener in a collection... } ... private static native void createRegisteringFunction() /*-{ $wnd.addServerEventsListener = @com.foo.gwt.ServerEventsRouter::addServerEventsListener(Lcom/foo/gwt/ events/ServerEventListener;); }-*/; ... } The createRegisteringFunction() needs to be called first somehow... === And then, in the client listener: === private native void registerServerEventsListener ( ServerEventListener listener )/*-{ $wnd.addServerEventsListener ( listener ); }-*/; and registerServerEventsListener( new ServerEventListener() { public void onServerEvent( ServerEvent event ) { GWT.log( Received event, null ); }); === The Issue(s) === However, as you might expect, this doesn't work. Well, it works for 'hello world' type of functions which not not require parameters... but the ServerEventListener parameter is not marshalled properly. A. In WEB mode The ServerEventListener interface is not implemented by any class in the router module, so that the dispatching function is optimized from: for ( ServerEvent event : events ) { for ( ServerEventListener listener : listeners ) { listener.onServerEvent( event ); } } into something like: for (event$iterator = events.iterator(); event$iterator.hasNext ();) { dynamicCast(event$iterator.next_0(), 11); for (listener$iterator = $AbstractList$IteratorImpl(new AbstractList$IteratorImpl(), this$static.m_listeners); listener $iterator.i listener$iterator.this$0.size_0();) { throwClassCastExceptionUnlessNull($next_1(listener $iterator)); null.nullMethod(); } } B. In HOSTED mode Presumably in order to match the behaviour of the WEB mode, the classes in the two modules are loaded from two different class loaders, so that the implementations of the ServerEventListener are not seen as such in the router module and any assignment generates a class cast exception. === My proposal === Instruct the compiler not to optimize out sub-classes of a specified type (here ServerEventListener), and have these classes loaded from a common upstream (i.e. more global) class loader in Hosted Mode. --~--~-~--~~~---~--~~ 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: Asynchronous communication from server to client
Vitali Lovich schrieb: Calls in GWT are always synchronously, independent of the way they are initiated. Actually, they are always asynchronous. I meant asynchronous, I don't know why I wrote synchronous. They are single threaded though if that's what you meant. No, I simply wrote it wrong. Regards, Lothar --~--~-~--~~~---~--~~ 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 and map viewer
You have a couple of options ... If you are feeling ambitious, you could re-implement the viewer in pure GWT, or you could simply call into the viewer from GWT using JSNI. http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#DevGuideJavaScriptNativeInterface -jason On Apr 7, 2009, at 4:52 PM, toni wrote: Hello, I'm testing GWT for a future project that involves a maps server (mapguide open source). I'm thinking in GWT for the front end. Mapguide can be programmed with JSP for the backend but mapguide has a AJAX viewer and I'm not sure how to integrate the viewer and GWT. Does anyone try to do something like this? 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: Connecting to database with eclipse
Are you using GWT 1.4 or 1.5? If you are using 1.5 add the line: @RemoteServiceRelativePath(teachers) in the same place as where I have mine - replace teachers with whatever path you want for your servlet. next thing is how to call the servlet using RPC this should be done like so: TeacherServiceAsync teacherService = (TeacherServiceAsync) GWT.create (TeacherService.class); teacherService.getPupils(teacherId, new AsyncCallbackListPupilDTO () { public void onFailure(Throwable caught) { // TODO Auto-generated method stub } public void onSuccess(ListPupilDTO result) { // TODO Do something with the result } }); You can see how my client side code matches up now - is this making sense so far and do you have something similar? This is how GWT RPC should be implemented client side. On Apr 8, 1:44 pm, Cryssyenddo miracle...@gmail.com wrote: package vCarePortal.client; import java.sql.Date; import com.google.gwt.user.client.rpc.RemoteService; public interface DiscussionBoardService extends RemoteService { public Forum[] getForums(int forumAccessLevel); public Topic[] getTopics(int forumID, int topicAccessLevel); public Thread[] getThreads(int topicID, int threadAccessLevel); public ThreadReply[] getDiscussionPosts(int threadID); public Contributor getUser(String password, String userID); public int countThreads(int topicID); public int countThreadReplies(int threadID); public String[] getLatestThreadReply (int threadID); public String getImageURL (String imageID); public void createForum(String forumName, String forumDescription, String userID, int accessLevel); public void modifyForum (int forumID, String forumName, String forumDescription, int accessLevel); public void deteleForum (int forumID); public void createTopic (String topicTitle, String topicDescription, int topicAccessLevel, String creatorID, int forumID); public void modifyTopic(int topicID, String topicName, String topicDescription, int topicAccessLevel); public void deteleTopic (int topicID); public void addThread (String threadTitle, String threadDesc, int threadAccessLevel, int threadCreatorID, int topicID); public void modifyThread(int threadID, String threadTilte, String threadDescription, int threadAcessLevel); public void deleteThread(int threadID); public void addThreadReply(int threadID, int replierID, Date replyTimestamp, String replyContent); public void modifyThreadReply(int threadReplyID, Date modifyTimestamp, String replyContent); public void deleteThreadReply(int threadReplyID); } --~--~-~--~~~---~--~~ 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: Connecting to database with eclipse
Next you need to have server side class something like this: - package com.company.server.gwt; public class TeacherServiceImpl extends RemoteServiceServlet implements TeacherService { private static final long serialVersionUID = 1L; public ListPupilDTO getPupils(Integer teacherId) { ListPupilDTO results = performYourServerSideAction(); return results; } } --- Then in your GWT.xml file you need to link the server to the client with servlet mappings like so: servlet path=/teachers class=com.company.server.gwt.TeacherServiceImpl/ Notice I use /teachers to map to my server side class. Thats pretty much it. Your DB code that you have already shown us should go on the server side either in your ServiceImpl class or another server side bean (preferred) On Apr 8, 3:36 pm, eggsy jimbob...@hotmail.com wrote: Are you using GWT 1.4 or 1.5? If you are using 1.5 add the line: @RemoteServiceRelativePath(teachers) in the same place as where I have mine - replace teachers with whatever path you want for your servlet. next thing is how to call the servlet using RPC this should be done like so: TeacherServiceAsync teacherService = (TeacherServiceAsync) GWT.create (TeacherService.class); teacherService.getPupils(teacherId, new AsyncCallbackListPupilDTO () { public void onFailure(Throwable caught) { // TODO Auto-generated method stub } public void onSuccess(ListPupilDTO result) { // TODO Do something with the result } }); You can see how my client side code matches up now - is this making sense so far and do you have something similar? This is how GWT RPC should be implemented client side. On Apr 8, 1:44 pm, Cryssyenddo miracle...@gmail.com wrote: package vCarePortal.client; import java.sql.Date; import com.google.gwt.user.client.rpc.RemoteService; public interface DiscussionBoardService extends RemoteService { public Forum[] getForums(int forumAccessLevel); public Topic[] getTopics(int forumID, int topicAccessLevel); public Thread[] getThreads(int topicID, int threadAccessLevel); public ThreadReply[] getDiscussionPosts(int threadID); public Contributor getUser(String password, String userID); public int countThreads(int topicID); public int countThreadReplies(int threadID); public String[] getLatestThreadReply (int threadID); public String getImageURL (String imageID); public void createForum(String forumName, String forumDescription, String userID, int accessLevel); public void modifyForum (int forumID, String forumName, String forumDescription, int accessLevel); public void deteleForum (int forumID); public void createTopic (String topicTitle, String topicDescription, int topicAccessLevel, String creatorID, int forumID); public void modifyTopic(int topicID, String topicName, String topicDescription, int topicAccessLevel); public void deteleTopic (int topicID); public void addThread (String threadTitle, String threadDesc, int threadAccessLevel, int threadCreatorID, int topicID); public void modifyThread(int threadID, String threadTilte, String threadDescription, int threadAcessLevel); public void deleteThread(int threadID); public void addThreadReply(int threadID, int replierID, Date replyTimestamp, String replyContent); public void modifyThreadReply(int threadReplyID, Date modifyTimestamp, String replyContent); public void deleteThreadReply(int threadReplyID); } --~--~-~--~~~---~--~~ 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: Connecting to database with eclipse
I've made the modifications to my codes, and yet the same error still pop out...here's the modifications i've done: package vCarePortal.client; import java.sql.Date; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; @RemoteServiceRelativePath(DiscussionBoardServices) public interface DiscussionBoardService extends RemoteService { public Forum[] getForums(int forumAccessLevel); public Topic[] getTopics(int forumID, int topicAccessLevel); public Thread[] getThreads(int topicID, int threadAccessLevel); public ThreadReply[] getDiscussionPosts(int threadID); public Contributor getUser(String password, String userID); -- As you suggested, I've seperated the sql queries from my impl class: package vCarePortal.server; import java.sql.Date; import com.google.gwt.user.server.rpc.RemoteServiceServlet; import vCarePortal.client.Contributor; import vCarePortal.client.DiscussionBoardService; import vCarePortal.client.Topic; import vCarePortal.client.Forum; import vCarePortal.client.Thread; import vCarePortal.client.ThreadReply; public abstract class DiscusisonBoardServiceImpl extends RemoteServiceServlet implements DiscussionBoardService{ /** * Get information on all forums */ public Forum[] getForums(int forumAccessLevel) { return QueryExecutor.getForums(forumAccessLevel); } /** * Get topics of selected forum */ public Topic[] getTopics(int forumID, int accessLevel){ return QueryExecutor.getTopics(forumID, accessLevel); } --- Here's the connector class: package vCarePortal.server; import java.sql.Connection; import java.sql.DriverManager; import java.sql.Statement; public class DatabaseConnector { private static Statement stmt; private static String url = jdbc:mysql://cpcc-2009:3306/; private static String db = charityportal; private static String driver = com.mysql.jdbc.Driver; private static String user = root; private static String password = Abcd1234; private static Connection connection; public static Statement getConnection(){ try{ Class.forName(driver); System.out.println(Driver loaded); connection = DriverManager.getConnection(url +db,user,password); System.out.println(Database Connected); stmt = connection.createStatement(); } catch (Exception ex) { ex.printStackTrace(); } return stmt; } public static void closeConnection(){ try{ stmt.close(); connection.close(); } catch(Exception e){ e.getMessage(); } } } And then here's my gwt.xml file: module !-- Inherit the core Web Toolkit stuff. -- inherits name='com.google.gwt.user.User'/ !-- Other module inherits -- !-- Specify the app entry point class. -- entry-point class='vCarePortal.client.DiscussionBoard'/ !-- Specify the remote services path -- servlet path=/DiscussionBoardServices class=vCarePortal.server.DiscussionBoardServiceImpl / !-- Specify the application specific style sheet. -- stylesheet src='DiscussionBoard.css' / /module --~--~-~--~~~---~--~~ 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: Connecting to database with eclipse
I've made the modifications to my codes, and yet the same error still pop out...here's the modifications i've done: package vCarePortal.client; import java.sql.Date; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; @RemoteServiceRelativePath(DiscussionBoardServices) public interface DiscussionBoardService extends RemoteService { public Forum[] getForums(int forumAccessLevel); public Topic[] getTopics(int forumID, int topicAccessLevel); public Thread[] getThreads(int topicID, int threadAccessLevel); public ThreadReply[] getDiscussionPosts(int threadID); public Contributor getUser(String password, String userID); -- As you suggested, I've seperated the sql queries from my impl class: package vCarePortal.server; import java.sql.Date; import com.google.gwt.user.server.rpc.RemoteServiceServlet; import vCarePortal.client.Contributor; import vCarePortal.client.DiscussionBoardService; import vCarePortal.client.Topic; import vCarePortal.client.Forum; import vCarePortal.client.Thread; import vCarePortal.client.ThreadReply; public abstract class DiscusisonBoardServiceImpl extends RemoteServiceServlet implements DiscussionBoardService{ /** * Get information on all forums */ public Forum[] getForums(int forumAccessLevel) { return QueryExecutor.getForums(forumAccessLevel); } /** * Get topics of selected forum */ public Topic[] getTopics(int forumID, int accessLevel){ return QueryExecutor.getTopics(forumID, accessLevel); } --- Here's the connector class: package vCarePortal.server; import java.sql.Connection; import java.sql.DriverManager; import java.sql.Statement; public class DatabaseConnector { private static Statement stmt; private static String url = jdbc:mysql://cpcc-2009:3306/; private static String db = charityportal; private static String driver = com.mysql.jdbc.Driver; private static String user = root; private static String password = Abcd1234; private static Connection connection; public static Statement getConnection(){ try{ Class.forName(driver); System.out.println(Driver loaded); connection = DriverManager.getConnection(url +db,user,password); System.out.println(Database Connected); stmt = connection.createStatement(); } catch (Exception ex) { ex.printStackTrace(); } return stmt; } public static void closeConnection(){ try{ stmt.close(); connection.close(); } catch(Exception e){ e.getMessage(); } } } And then here's my gwt.xml file: module !-- Inherit the core Web Toolkit stuff. -- inherits name='com.google.gwt.user.User'/ !-- Other module inherits -- !-- Specify the app entry point class. -- entry-point class='vCarePortal.client.DiscussionBoard'/ !-- Specify the remote services path -- servlet path=/DiscussionBoardServices class=vCarePortal.server.DiscussionBoardServiceImpl / !-- Specify the application specific style sheet. -- stylesheet src='DiscussionBoard.css' / /module --~--~-~--~~~---~--~~ 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: Connecting to database with eclipse
and by the way, i'm using gwt1.5.3 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Eclipse Plugin Compile Button Stack Overflow
Just installed the Google plugin for Eclipse, and hit the Compile button on my project. It gave me a stack overflow error. Prior to using the plugin, I'd compile by hitting the Compile button in the hosted mode browser. In the Run/Debug Eclipse configuration, I have -Xss4k -Xmx256M Compiles worked fine with those flags and the Compile button from hosted mode. How do I set the Xss flag for use by the Compile button in the eclipse toolbar? I tried putting it in the Advanced section, but this just informed me it wasn't an appropriate gwt compiler option. This isn't stopping me from doing anything, as I can still compile from hosted mode, just curious how to set it up. I checked the plugin faq, but couldn't find anything 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 -~--~~~~--~~--~--~---
Reverse engineering
Hi, Im wondering if there is an easy way to reverse engineer your code to produce class diagrams? Regards, Jack --~--~-~--~~~---~--~~ 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: debug freeze
Correct, the hosted mode log showed the creation of various widgets but there was no null pointer messages. I had sprinkled Window.alert() messages all over the place to narrow down the issue and eventually found the line. Starring at the line made no sense because it was a rational statement... except that I had not initialized the object. On a whim I stuck a try/catch block around the line and it shouted out that the object was null. go figure. On Wed, Apr 8, 2009 at 4:08 AM, Vitali Lovich vlov...@gmail.com wrote: And the hosted mode log didn't print any exceptions? Weird. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Trying to use server in another module
Hello all, I'm facing my first GWT development. I had the idea of developing a project with a module which I have called x.gwtlogin. The server of this module can perform queries on a LDAP server. My idea is to have an instance of this module running in the application server and use its server from any other GWT application I develop. Let's say one of these applications is x.dt. I have copied all x.gwtlogin.client classes that implement the server's interfance in this application, so now I have two client packages in the project: x.dt.client x.gwtlogin.client The problem is that when debugging in hosted mode wherever I try to use a x.gwtlogin.client.Class in a x.dt.client.Class, I get the following error: [ERROR] Line 20: No source code is available for type x.gwtlogin.client.Class; did you forget to inherit a required module? I suppose the problem is that GWT is not compiling and including the classes in x.gwtlogin.client when building x.dt.client. What can I do?. Is what I intend to do possible at all?. Thank you, Ivan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Announcing GWT 1.6...and quite a bit more
Thank you, can't wait to dig in! Does the Google/GWT plugin for Eclipse create the service stubs (Async/ Sync/Impl classes) and modify the web.xml to add the servlet for you like Cypal Studio? On Apr 7, 11:57 pm, Bruce Johnson br...@google.com wrote: Hi Folks! Exciting news today. Rather than attempting to describe everything here, let me point you to some blog posts that hopefully you will find interesting: GWT 1.6 and friends:http://googlewebtoolkit.blogspot.com/2009/04/introducing-gwt-16-and-f... Seriously this time, the new language on App Engine: Javahttp://googleappengine.blogspot.com/2009/04/seriously-this-time-new-l... Google Plugin for Eclipse -- Peanut Butter to Eclipse's Chocolatehttp://googlewebtoolkit.blogspot.com/2009/04/google-plugin-for-eclips... -- Bruce, on behalf of the GWT, App Engine, and Google Plugin teams --~--~-~--~~~---~--~~ 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 create CSS style for disabled buttons
I have the same problem with textboxes: it does not work on IE6, selectors are not supported. You need to define a specific class for that style (disabled) and add that style to your component when it is disabled. I am currently looking for a better way to do that. One solution would consist to extend the component and manage a disabled dependent style by overriding the setEnabled function. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Can't compile with new 1.6 project
I have this problem too ! I am trying the Java-SDK for AppEngine which contains GWT 1.6.4. On 8 Apr., 11:32, jeremyprioux jeremypri...@gmail.com wrote: Hello, I was using 1.5 and Eclipse for my project and it worked fine (with some home made compiled script). As I wanted to upgrade to the last version, I installed the new Eclipse gwt plugin and created a new project. I think I succeed to import my 5 or 6 modules of my old project, as they are recognized while I want to use the compile tool from the gwt eclipse plugin. But... I can't compile, I've got an error with the very first module, something like : Compiling module fr..client.accueil Computing all possible rebind results for 'fr..client.site.tab.accueil.HomeTabEntryPoint' Rebinding fr..client.site.tab.accueil.HomeTabEntryPoint Checking rule generate-with class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/ [ERROR] Unable to find type 'fr..client.site.tab.accueil.HomeTabEntryPoint' [ERROR] Hint: Previous compiler errors may have made this type unavailable [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly I only inherit the com.google.gwt.user.User module, I verified that 'fr..client.site.tab.accueil.HomeTabEntryPoint' is right too (and in the directory src, which is the source folder), and gwt-user and gwt-dev are part of my librairies in my build path. I must have forgot something so thank you for helping me ! --~--~-~--~~~---~--~~ 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 1.6: Where to save hibernate.cfg.xml and logback.xml?
Thanks Toni. I thought these configuration files has been taken into consideration in the standard GWT 1.6 project directories. On Wed, Apr 8, 2009 at 12:56 AM, Tony Strauss tony.stra...@designingpatterns.com wrote: You might want to keep a version controlled src\conf directory that is separate from your build targets; before you build (or run hosted mode), you copy the source files into the build target directory (war \WEB-INF\classes in this case). I generally keep all of my build targets completely separate from my version-controlled source targets because: 1.) Cleaning is very simple and safe (just blow away the target directory). 2.) It's easy to tell the version control system what is and what is not meant to be version controlled (svn:ignore). 3.) This system can accommodate multiple build types if necessary (if, for instance, you have any platform-specific code). Tony --- Tony Strauss Designing Patterns, LLC http://www.designingpatterns.com http://blogs.designingpatterns.com On Apr 7, 9:40 am, hezjing hezj...@gmail.com wrote: Hi With GWT 1.6, where do we save the hibernate.cfg.xml and logback.xml? I normally save these files in war\WEB-INF\classes, but the generated Ant's clean task will delete the classes directory. Where should we keep the configuration files without modifying the Ant's clean task? -- Hez -- 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: Connecting to database with eclipse
I solved the problem...I made a typo error at my impl class. I've made the corrections and it works now. I'm wondering, how should i call a service properly? In this piece of code below, i'm trying to get an array Forum object which the data i retrieved form my database and then i intend topopulate my panel with the buttons with each representing a forum. I've double checked that my database wasn't empty. But I kept hitting a null exception. So i'm wondering did i call the services the right way. Here are the two methods i used; first for calling the RPC to get all the forum records and the second method to populate the panel with forum buttons: /** * Method to retrieve list of forums from server */ protected void getForums() { if(services == null){ services = (DiscussionBoardServiceAsync)GWT.create (DiscussionBoardService.class); } ServiceDefTarget serviceURL = (ServiceDefTarget) services; String address = GWT.getModuleBaseURL() +DiscussionBoardServices; serviceURL.setServiceEntryPoint(address); AsyncCallbackForum[] callback = new AsyncCallbackForum[]() { public void onFailure(Throwable caught) { String details = caught.getMessage(); Window.alert(details); } public void onSuccess(Forum[] result) { buildMainPage(result); } }; services.getForums(user.getUserClass(), callback); } /** * Method to build and display main page display contents * @param receivedForumList */ private void buildMainPage(Forum[] receivedForumList){ // Initialise all components discussionBoardTitle = new Label(v-Care Discussion Board Title); main_Panel = new VerticalPanel(); main_Selection = new HorizontalPanel(); forumList = new Forum[receivedForumList.length]; forumButtons = new Button[receivedForumList.length]; pageFlag = PAGE_MAIN; forumButtonListsner = new ForumButtonListener(); main_Panel.setCellHorizontalAlignment(discussionBoardTitle, HasHorizontalAlignment.ALIGN_CENTER); for(int i =0; ireceivedForumList.length; i++){ forumButtons[i] = new Button(receivedForumList[i].getForumName ()); forumButtons[i].addClickListener(forumButtonListsner); forumButtons[i].setStyleName(forumButton); forumList[i] = receivedForumList[i]; main_Selection.add(forumButtons[i]); } // If user is admin then insert admin options if (userClass = 2) { // Create admin buttons admin_AddForumButton = new Button(Add Forum); // Add button listeners admin_AddForumButton.addClickListener(this); // Add admin options main_Panel.insert(main_AdminOptions, 1); } RootPanel.get().clear(); RootPanel.get().add(main_Panel); } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Announcing GWT 1.6...and quite a bit more
I got the following exception: Plug-in org.eclipse.ajdt.ui was unable to load class org.eclipse.ajdt.internal.ui.ajde.CachedRuntimeClasspathEntryResolver. An error occurred while automatically activating bundle org.eclipse.ajdt.ui (33). when I try to run web application from the project context menu after I create an web application based on the tutorial, I have ajdt installed in this box. Jim Xie On Apr 8, 9:43 am, Stan B stan...@gmail.com wrote: Thank you, can't wait to dig in! Does the Google/GWT plugin for Eclipse create the service stubs (Async/ Sync/Impl classes) and modify the web.xml to add the servlet for you like Cypal Studio? On Apr 7, 11:57 pm, Bruce Johnson br...@google.com wrote: Hi Folks! Exciting news today. Rather than attempting to describe everything here, let me point you to some blog posts that hopefully you will find interesting: GWT 1.6 and friends:http://googlewebtoolkit.blogspot.com/2009/04/introducing-gwt-16-and-f... Seriously this time, the new language on App Engine: Javahttp://googleappengine.blogspot.com/2009/04/seriously-this-time-new-l... Google Plugin for Eclipse -- Peanut Butter to Eclipse's Chocolatehttp://googlewebtoolkit.blogspot.com/2009/04/google-plugin-for-eclips... -- Bruce, on behalf of the GWT, App Engine, and Google Plugin teams- 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: CSS Style for single tabs of a TabBar
Hi, i didn't find out how to do it with DOM and i won't try any more (thanks for this hint). Instead i was able to change the single tabs due to setting the HTML as you told, but i wasn't able to set a CSS style The first solution sounds a bit like quick and dirty. I think i will try the second one which sounds good to me. Pretty sophisticated work. Thanks! Greetings, -Lord-67 On Apr 8, 3:13 pm, Ian Bambury ianbamb...@gmail.com wrote: Hi, Don't use the DOM - Google might change the structure, that's what would break it. There are two possibilities: 1) Add HTML as the tab title When the enabled/disabled change happens, get it back and change the style class in the html string you get back and replace it (a simple replaceAll() would do). 2) Add a Label widget as the tab title Also add that label to an ArrayList (because there is no way to get it back from the tab, so you have to do it this way) When the enabled/disabled change happens, get the label from the ArrayList and do a setStyle() on it. The first way is kludgier, but simpler :-) Ian http://examples.roughian.com 2009/4/8 -Lord-67 -lord...@web.de @Ian Bambury: Thanks, i will try it with DOM or else if that doesn't work the second way with html, just not sure if i will be able to do that on my own since i am not that experienced :-). DOM should be possible because the tabs don't change, i just want some of them to be disabled at a certain point and enabled later on ... @alan m: No problem, i was just confused about your post, i am thankful for every help i can get ;-). As Ian said it's not the whole TabBar i want to access (set style to 'disabled'), it's a single tab. I already managed to disable them (see other thread i cited in my first post) but i am not able to change the style of those disabled tabs. Thanks guys for the help, i will let you know wheater i was successful or not! Greetings, -Lord-67 --~--~-~--~~~---~--~~ 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: Connecting to database with eclipse
Can you confirm (server side) that the array of objects isn't null? If so this sounds like GWT might not be able to handle objects of type Forum. GWT can only handle objects declared under the client side packages and wont be able to handle any database POJO object declared at server level. For some more background info: http://www.dotnetguru2.org/bmarchesson/index.php?p=786more=1c=1tb=1pb=1 You'll need to create some form of client side DTO object alternatively if you can move over to using Hibernate you can use a package called Hibernate4GWT I've also compiled a tutorial on this at: http://eggsylife.blogspot.com/2007/11/hibernate-spring-google-web-toolkit.html That is part two of the tutorial with my DTO objects. On Apr 8, 4:38 pm, Cryssyenddo miracle...@gmail.com wrote: I solved the problem...I made a typo error at my impl class. I've made the corrections and it works now. I'm wondering, how should i call a service properly? In this piece of code below, i'm trying to get an array Forum object which the data i retrieved form my database and then i intend topopulate my panel with the buttons with each representing a forum. I've double checked that my database wasn't empty. But I kept hitting a null exception. So i'm wondering did i call the services the right way. Here are the two methods i used; first for calling the RPC to get all the forum records and the second method to populate the panel with forum buttons: /** * Method to retrieve list of forums from server */ protected void getForums() { if(services == null){ services = (DiscussionBoardServiceAsync)GWT.create (DiscussionBoardService.class); } ServiceDefTarget serviceURL = (ServiceDefTarget) services; String address = GWT.getModuleBaseURL() +DiscussionBoardServices; serviceURL.setServiceEntryPoint(address); AsyncCallbackForum[] callback = new AsyncCallbackForum[]() { public void onFailure(Throwable caught) { String details = caught.getMessage(); Window.alert(details); } public void onSuccess(Forum[] result) { buildMainPage(result); } }; services.getForums(user.getUserClass(), callback); } /** * Method to build and display main page display contents * @param receivedForumList */ private void buildMainPage(Forum[] receivedForumList){ // Initialise all components discussionBoardTitle = new Label(v-Care Discussion Board Title); main_Panel = new VerticalPanel(); main_Selection = new HorizontalPanel(); forumList = new Forum[receivedForumList.length]; forumButtons = new Button[receivedForumList.length]; pageFlag = PAGE_MAIN; forumButtonListsner = new ForumButtonListener(); main_Panel.setCellHorizontalAlignment(discussionBoardTitle, HasHorizontalAlignment.ALIGN_CENTER); for(int i =0; ireceivedForumList.length; i++){ forumButtons[i] = new Button(receivedForumList[i].getForumName ()); forumButtons[i].addClickListener(forumButtonListsner); forumButtons[i].setStyleName(forumButton); forumList[i] = receivedForumList[i]; main_Selection.add(forumButtons[i]); } // If user is admin then insert admin options if (userClass = 2) { // Create admin buttons admin_AddForumButton = new Button(Add Forum); // Add button listeners admin_AddForumButton.addClickListener(this); // Add admin options main_Panel.insert(main_AdminOptions, 1); } RootPanel.get().clear(); RootPanel.get().add(main_Panel); } --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Provide support for NavigableMap/NavigableSet implementation?
Hi, I was wondering if anyone has tried adding NavigableMap/ NavigableSet (From JDK 1.6), support for use in GWT? Using the JRE emulation mechanism (super-source), it should be possible to add the required interfaces then update GWT's TreeMap, to implement NavigableMap. I've gotten part-way through this with a SkipList but implementing all of the extra methods to return sub-views is too much work. I realized it might be simpler to just extend Google's version of TreeMap to add the Navigable code. Any thoughts? I searched a bit, but nothing yet. My main use case is finding a point in a sorted set, then efficiently iterating in either direction. I've cooked up my own SkipListMap implementation but I feel like I'm reinventing the wheel if I create my own navigable interface, but the NavigableMap dictates a lot of functionality I don't have time to implement myself either. --~--~-~--~~~---~--~~ 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: IE doesnt show my progress bar when the data loads in to my Grid
On 8 avr, 07:22, Suren nsurendi...@gmail.com wrote: Hi All, I am loading 100x100 values into the cells of a Grid from the DB. Its taking some time to show the Grid in IE. So thought of showing a progress bar during that time instead of showing blank page to the user. So I am trying to display a progressbar.gif image during the data load. But the problem here is that, still the progressbar is not shown. Its showing hourglass mouse cursor in the IE and showing nothing and looks like the loading page. what I am doing wrong here? do I need to have a seperate thread to show the image?? Or instead of this approach, I expect if anything else is better way of doing it from the group. IncrementalCommand is your new friend! ;-) In a few words: split your data loading algorithm and load segments at a time. --~--~-~--~~~---~--~~ 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: Connecting to database with eclipse
Yes, i did created an object class Forum at client side, and i've just confirmed that the array from server side is null. I've found out the problem with result set is we can do execute queries one after another...so i changed the order of my result set codes, that solves the problem. Anyway, thanks a million for helping me through that database connection and RPC declaring problem, i really appreciate that :D --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Deploying GWT applications on OSGi Equinox
Ian, Have seen the article Embedding an HTTP server in Equinox? If not give it a read and we can continue. It explains how to do without war file. http://www.eclipse.org/equinox/server/http_in_equinox.php On Apr 8, 2:41 am, lan anouar.khem...@gmail.com wrote: Yes I'm absolutely interested. I don't understand how you don't use a war 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 -~--~~~~--~~--~--~---
Android Compatibility Isses with GWT (UI based, not RPC)
Hey guys, Little stream of conciseness here, sorry if this is a bit long/ disjoined. I was wondering if anyone had done any work with GWT and the Android Browser. While I'm getting basic functionality to work, the general speed, responsiveness and user experience seem very sluggish and, well, sorta bad. Another issue I'm having is locating a group to go to for support, examples and help. While I'm interested in GWT with Android, it seems that Android Developers Group is really only interested in native apps. Where to go for Browser specific help? Anyways, some of the particulars I've run into: What group to go to? 1. Issues Controlling the viewport: No matter what I do, I can't seem to get proper control of the viewport. Editing the meta data, overflow CSS properties, insuring that the window's objects are small, etc. I'm continually getting white space borders and stuff like that. This causes weird finger behavior, especially allowing the user to browse into the white space. 2. HTML5/Gears Wrappers: I was wondering if the Gears API has an implementation to support HTML5 storage/cache issues in case of a non- gears enabled client. If not, is there a library anywhere that supports the encapsulation for GWT? 3. MouseListeners: The OS seems to swallow up the MouseUp event in order to do detection of scroll/drag type stuff. I guess I understand why it does it for the drag type thing, but it never fires MouseUp even after the drag is done. Ehh... fair enough, I guess. 4. Focus Panel ClickListeners: When I click a focus panel, a orange circle shows up in the upper/left corner with what seems like a cursor in it? (http://i243.photobucket.com/albums/ff2/gte619n/ selectBubble.png) Also seems like a non-trivial delay between the press and then a following action. Makes the app seem especially sluggish. 5. Image Loading/Display: Seems really slow. Even when doing background repositioning to flip sprites. Additionally, the images don't seem to load in any fixed order and method. Also seems to hang when loading images (http://i243.photobucket.com/albums/ff2/gte619n/ selectBubble.png) I've attempted to get around this by doing Prefetch and such, but nothing seems to work. Seems like it needs to talk itself into refreshing the screen after loading finishes (even in localhost in the emulator) 6. Visibility hide/show: Very sluggish in general. 7. Scroll inside divs: Flat out doesn't support this. I guess the Cupcake release, bringing the browser up to Nov 2008 Webkit, should fix this but I still don't have any visibility into that release. Has anyone compiled some best practices to use when building an Application for Android? Maybe even some widgets or JSNI breakouts to better manage the behavior and performance of the app? Thanks! Evan --~--~-~--~~~---~--~~ 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 Plugin Compile Button Stack Overflow
On Wed, Apr 8, 2009 at 11:11 AM, Brian hibr...@gmail.com wrote: Just installed the Google plugin for Eclipse, and hit the Compile button on my project. It gave me a stack overflow error. Prior to using the plugin, I'd compile by hitting the Compile button in the hosted mode browser. In the Run/Debug Eclipse configuration, I have -Xss4k -Xmx256M Compiles worked fine with those flags and the Compile button from hosted mode. How do I set the Xss flag for use by the Compile button in the eclipse toolbar? I tried putting it in the Advanced section, but this just informed me it wasn't an appropriate gwt compiler option. The advanced section just passes the arguments to the GWT compiler. There is no way to bump those up right now. We'll need to include this in the next update of the plugin (still no timeframe on that). This isn't stopping me from doing anything, as I can still compile from hosted mode, just curious how to set it up. I checked the plugin faq, but couldn't find anything there. -- Miguel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT 1.5.3 upgrade problem with RPC
Hi, I never used GWT 1.4. I started from GWT 1.5.3 directly. But I get the same exception. What would be the cause for that? Do you know anything about this? On Mar 14, 11:05 am, 唐振坤 tan...@gmail.com wrote: In the GWT docs, you need to change the Content-Type from text/plain to text/x-gwt-rpc, and update your server with GWT 1.5 gwt-servlet.jar. It may be caused by still using the gwt-servlet.jar of GWT Version 1.4. In GWT 1.5, the RPC content type was switched from text/plain to text/x-gwt-rpc. If you receive this exception, then your server is still using a GWT 1.4 gwt-servlet.jar. On Sat, Mar 14, 2009 at 3:00 PM, Ganesh ganesh@gmail.com wrote: Hi, I have a small problem when I upgraded to 1.5.3(from 1.0.21) with RPC Exception while dispatching incoming RPC call javax.servlet.ServletException: Content-Type must be 'text/plain' with 'charset= utf-8' (or unspecified charset) at com.google.gwt.user.server.rpc.RemoteServiceServlet.readPayloadAsUtf8 (RemoteServiceServlet.java:507) I googled(http://code.google.com/p/google-web-toolkit-doc-1-5/wiki/ FAQ_RPCContentTypeTextPlain ).. and made changes to shell/complile and my server-side class path(the impl class). I use Geronimo I am not able to get rid of the above exception... could someone help me... --~--~-~--~~~---~--~~ 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: Trying to use server in another module
Sorry, too fast. I made it work including x.gwtlogin in x.dt as a module with no entry point. I didn't need to copy the server classes, so I have a single server as I wanted. On 8 abr, 17:28, Ivan M supertra...@gmail.com wrote: Hello all, I'm facing my first GWT development. I had the idea of developing a project with a module which I have called x.gwtlogin. The server of this module can perform queries on a LDAP server. My idea is to have an instance of this module running in the application server and use its server from any other GWT application I develop. Let's say one of these applications is x.dt. I have copied all x.gwtlogin.client classes that implement the server's interfance in this application, so now I have two client packages in the project: x.dt.client x.gwtlogin.client The problem is that when debugging in hosted mode wherever I try to use a x.gwtlogin.client.Class in a x.dt.client.Class, I get the following error: [ERROR] Line 20: No source code is available for type x.gwtlogin.client.Class; did you forget to inherit a required module? I suppose the problem is that GWT is not compiling and including the classes in x.gwtlogin.client when building x.dt.client. What can I do?. Is what I intend to do possible at all?. Thank you, Ivan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Announcing GWT 1.6...and quite a bit more
On Wed, Apr 8, 2009 at 9:43 AM, Stan B stan...@gmail.com wrote: Thank you, can't wait to dig in! Does the Google/GWT plugin for Eclipse create the service stubs (Async/ Sync/Impl classes) and modify the web.xml to add the servlet for you like Cypal Studio? We did not include that feature in this release, but we are considering it. On Apr 7, 11:57 pm, Bruce Johnson br...@google.com wrote: Hi Folks! Exciting news today. Rather than attempting to describe everything here, let me point you to some blog posts that hopefully you will find interesting: GWT 1.6 and friends: http://googlewebtoolkit.blogspot.com/2009/04/introducing-gwt-16-and-f... Seriously this time, the new language on App Engine: Javahttp:// googleappengine.blogspot.com/2009/04/seriously-this-time-new-l... Google Plugin for Eclipse -- Peanut Butter to Eclipse's Chocolatehttp:// googlewebtoolkit.blogspot.com/2009/04/google-plugin-for-eclips... -- Bruce, on behalf of the GWT, App Engine, and Google Plugin teams -- Miguel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Announcing GWT 1.6...and quite a bit more
What version of eclipse are you using? What version of ajdt? On Wed, Apr 8, 2009 at 11:41 AM, Jim jim.p...@gmail.com wrote: I got the following exception: Plug-in org.eclipse.ajdt.ui was unable to load class org.eclipse.ajdt.internal.ui.ajde.CachedRuntimeClasspathEntryResolver. An error occurred while automatically activating bundle org.eclipse.ajdt.ui (33). when I try to run web application from the project context menu after I create an web application based on the tutorial, I have ajdt installed in this box. Jim Xie On Apr 8, 9:43 am, Stan B stan...@gmail.com wrote: Thank you, can't wait to dig in! Does the Google/GWT plugin for Eclipse create the service stubs (Async/ Sync/Impl classes) and modify the web.xml to add the servlet for you like Cypal Studio? On Apr 7, 11:57 pm, Bruce Johnson br...@google.com wrote: Hi Folks! Exciting news today. Rather than attempting to describe everything here, let me point you to some blog posts that hopefully you will find interesting: GWT 1.6 and friends: http://googlewebtoolkit.blogspot.com/2009/04/introducing-gwt-16-and-f... Seriously this time, the new language on App Engine: Javahttp:// googleappengine.blogspot.com/2009/04/seriously-this-time-new-l... Google Plugin for Eclipse -- Peanut Butter to Eclipse's Chocolatehttp:// googlewebtoolkit.blogspot.com/2009/04/google-plugin-for-eclips... -- Bruce, on behalf of the GWT, App Engine, and Google Plugin teams- Hide quoted text - - Show quoted text - -- Miguel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Announcing GWT 1.6...and quite a bit more
I am using Eclipse 3.3. I got this exception first time when I tried to run web application after I installed the plugin and restarted eclipse. However this exception goes away after I restarted my Eclipse. Jim On Apr 8, 1:03 pm, Miguel Méndez mmen...@google.com wrote: What version of eclipse are you using? What version of ajdt? On Wed, Apr 8, 2009 at 11:41 AM, Jim jim.p...@gmail.com wrote: I got the following exception: Plug-in org.eclipse.ajdt.ui was unable to load class org.eclipse.ajdt.internal.ui.ajde.CachedRuntimeClasspathEntryResolver. An error occurred while automatically activating bundle org.eclipse.ajdt.ui (33). when I try to run web application from the project context menu after I create an web application based on the tutorial, I have ajdt installed in this box. Jim Xie On Apr 8, 9:43 am, Stan B stan...@gmail.com wrote: Thank you, can't wait to dig in! Does the Google/GWT plugin for Eclipse create the service stubs (Async/ Sync/Impl classes) and modify the web.xml to add the servlet for you like Cypal Studio? On Apr 7, 11:57 pm, Bruce Johnson br...@google.com wrote: Hi Folks! Exciting news today. Rather than attempting to describe everything here, let me point you to some blog posts that hopefully you will find interesting: GWT 1.6 and friends: http://googlewebtoolkit.blogspot.com/2009/04/introducing-gwt-16-and-f... Seriously this time, the new language on App Engine: Javahttp:// googleappengine.blogspot.com/2009/04/seriously-this-time-new-l... Google Plugin for Eclipse -- Peanut Butter to Eclipse's Chocolatehttp:// googlewebtoolkit.blogspot.com/2009/04/google-plugin-for-eclips... -- Bruce, on behalf of the GWT, App Engine, and Google Plugin teams- Hide quoted text - - Show quoted text - -- Miguel- 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 -~--~~~~--~~--~--~---
Content-Type must be 'text/plain' with 'charset=utf-8' Error, But not an upgrade issue
Hi, I've sent this post to a thread via googlegroups page, but it doesn't exist in my sent mails folder and also in that page. So I had to post here once more. I'm getting the error in the title. I searched previous threads, all saying that it's a 1.4 - 1.5 issue. But I actually never used 1.4. I started using GWT with version 1.5.3. Any comments? -- M. Raşit ÖZDAŞ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Announcing GWT 1.6...and quite a bit more
Restarting a second time fixes it? On Wed, Apr 8, 2009 at 1:17 PM, Jim jim.p...@gmail.com wrote: I am using Eclipse 3.3. I got this exception first time when I tried to run web application after I installed the plugin and restarted eclipse. However this exception goes away after I restarted my Eclipse. Jim On Apr 8, 1:03 pm, Miguel Méndez mmen...@google.com wrote: What version of eclipse are you using? What version of ajdt? On Wed, Apr 8, 2009 at 11:41 AM, Jim jim.p...@gmail.com wrote: I got the following exception: Plug-in org.eclipse.ajdt.ui was unable to load class org.eclipse.ajdt.internal.ui.ajde.CachedRuntimeClasspathEntryResolver. An error occurred while automatically activating bundle org.eclipse.ajdt.ui (33). when I try to run web application from the project context menu after I create an web application based on the tutorial, I have ajdt installed in this box. Jim Xie On Apr 8, 9:43 am, Stan B stan...@gmail.com wrote: Thank you, can't wait to dig in! Does the Google/GWT plugin for Eclipse create the service stubs (Async/ Sync/Impl classes) and modify the web.xml to add the servlet for you like Cypal Studio? On Apr 7, 11:57 pm, Bruce Johnson br...@google.com wrote: Hi Folks! Exciting news today. Rather than attempting to describe everything here, let me point you to some blog posts that hopefully you will find interesting: GWT 1.6 and friends: http://googlewebtoolkit.blogspot.com/2009/04/introducing-gwt-16-and-f. .. Seriously this time, the new language on App Engine: Javahttp:// googleappengine.blogspot.com/2009/04/seriously-this-time-new-l... Google Plugin for Eclipse -- Peanut Butter to Eclipse's Chocolatehttp:// googlewebtoolkit.blogspot.com/2009/04/google-plugin-for-eclips... -- Bruce, on behalf of the GWT, App Engine, and Google Plugin teams- Hide quoted text - - Show quoted text - -- Miguel- Hide quoted text - - Show quoted text - -- Miguel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Error installing google plugin for eclipse
I installed in Spring tool suite 2.0 the plugin. I work in ubuntu (linux). For I got it error: Invocation of com.google.gwt.user.tools.WebAppCreator failed. If someone can help with it. Please, Joe --~--~-~--~~~---~--~~ 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: Android Compatibility Isses with GWT (UI based, not RPC)
On Wed, Apr 8, 2009 at 12:22 PM, Evan Ruff evan.r...@gmail.com wrote: Hey guys, Little stream of conciseness here, sorry if this is a bit long/ disjoined. I was wondering if anyone had done any work with GWT and the Android Browser. While I'm getting basic functionality to work, the general speed, responsiveness and user experience seem very sluggish and, well, sorta bad. Another issue I'm having is locating a group to go to for support, examples and help. While I'm interested in GWT with Android, it seems that Android Developers Group is really only interested in native apps. Where to go for Browser specific help? I recommend the Android lists--some members of the Android browser team monitor those lists (I don't think any of them monitor this list). Also, filing bugs on the tracker is always recommended. As for trying out cupcake, you can build an emulator running Cupcake with the instructions at http://source.android.com/download . jason Anyways, some of the particulars I've run into: What group to go to? 1. Issues Controlling the viewport: No matter what I do, I can't seem to get proper control of the viewport. Editing the meta data, overflow CSS properties, insuring that the window's objects are small, etc. I'm continually getting white space borders and stuff like that. This causes weird finger behavior, especially allowing the user to browse into the white space. 2. HTML5/Gears Wrappers: I was wondering if the Gears API has an implementation to support HTML5 storage/cache issues in case of a non- gears enabled client. If not, is there a library anywhere that supports the encapsulation for GWT? 3. MouseListeners: The OS seems to swallow up the MouseUp event in order to do detection of scroll/drag type stuff. I guess I understand why it does it for the drag type thing, but it never fires MouseUp even after the drag is done. Ehh... fair enough, I guess. 4. Focus Panel ClickListeners: When I click a focus panel, a orange circle shows up in the upper/left corner with what seems like a cursor in it? (http://i243.photobucket.com/albums/ff2/gte619n/ selectBubble.png) Also seems like a non-trivial delay between the press and then a following action. Makes the app seem especially sluggish. 5. Image Loading/Display: Seems really slow. Even when doing background repositioning to flip sprites. Additionally, the images don't seem to load in any fixed order and method. Also seems to hang when loading images (http://i243.photobucket.com/albums/ff2/gte619n/ selectBubble.png) I've attempted to get around this by doing Prefetch and such, but nothing seems to work. Seems like it needs to talk itself into refreshing the screen after loading finishes (even in localhost in the emulator) 6. Visibility hide/show: Very sluggish in general. 7. Scroll inside divs: Flat out doesn't support this. I guess the Cupcake release, bringing the browser up to Nov 2008 Webkit, should fix this but I still don't have any visibility into that release. Has anyone compiled some best practices to use when building an Application for Android? Maybe even some widgets or JSNI breakouts to better manage the behavior and performance of the app? Thanks! Evan --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Center Root Panel
Hi all: how can i center the main panel into the page ... i've been reading that this panel have an absolute position , in that case , should i get the screen resolution and add some padding to the component? thanks ... Gonzalo. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Announcing GWT 1.6...and quite a bit more
Yes. I am using the following version of ajdt and aspectj: Version: 1.5.3.200807141310 AspectJ version: 1.6.1.2008070312 Jim On Apr 8, 1:28 pm, Miguel Méndez mmen...@google.com wrote: Restarting a second time fixes it? On Wed, Apr 8, 2009 at 1:17 PM, Jim jim.p...@gmail.com wrote: I am using Eclipse 3.3. I got this exception first time when I tried to run web application after I installed the plugin and restarted eclipse. However this exception goes away after I restarted my Eclipse. Jim On Apr 8, 1:03 pm, Miguel Méndez mmen...@google.com wrote: What version of eclipse are you using? What version of ajdt? On Wed, Apr 8, 2009 at 11:41 AM, Jim jim.p...@gmail.com wrote: I got the following exception: Plug-in org.eclipse.ajdt.ui was unable to load class org.eclipse.ajdt.internal.ui.ajde.CachedRuntimeClasspathEntryResolver. An error occurred while automatically activating bundle org.eclipse.ajdt.ui (33). when I try to run web application from the project context menu after I create an web application based on the tutorial, I have ajdt installed in this box. Jim Xie On Apr 8, 9:43 am, Stan B stan...@gmail.com wrote: Thank you, can't wait to dig in! Does the Google/GWT plugin for Eclipse create the service stubs (Async/ Sync/Impl classes) and modify the web.xml to add the servlet for you like Cypal Studio? On Apr 7, 11:57 pm, Bruce Johnson br...@google.com wrote: Hi Folks! Exciting news today. Rather than attempting to describe everything here, let me point you to some blog posts that hopefully you will find interesting: GWT 1.6 and friends: http://googlewebtoolkit.blogspot.com/2009/04/introducing-gwt-16-and-f. .. Seriously this time, the new language on App Engine: Javahttp:// googleappengine.blogspot.com/2009/04/seriously-this-time-new-l... Google Plugin for Eclipse -- Peanut Butter to Eclipse's Chocolatehttp:// googlewebtoolkit.blogspot.com/2009/04/google-plugin-for-eclips... -- Bruce, on behalf of the GWT, App Engine, and Google Plugin teams- Hide quoted text - - Show quoted text - -- Miguel- Hide quoted text - - Show quoted text - -- Miguel- 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: Announcing GWT 1.6...and quite a bit more
I should go back in using eclipse for the project or osmething. I been using netbeans with the gwt4nb but that havnt been updated to support 1.6 I dont really know how to write those config files to setup the new debugger and stuff for netbeans On Apr 8, 10:28 am, Miguel Méndez mmen...@google.com wrote: Restarting a second time fixes it? On Wed, Apr 8, 2009 at 1:17 PM, Jim jim.p...@gmail.com wrote: I am using Eclipse 3.3. I got this exception first time when I tried to run web application after I installed the plugin and restarted eclipse. However this exception goes away after I restarted my Eclipse. Jim On Apr 8, 1:03 pm, Miguel Méndez mmen...@google.com wrote: What version of eclipse are you using? What version of ajdt? On Wed, Apr 8, 2009 at 11:41 AM, Jim jim.p...@gmail.com wrote: I got the following exception: Plug-in org.eclipse.ajdt.ui was unable to load class org.eclipse.ajdt.internal.ui.ajde.CachedRuntimeClasspathEntryResolver. An error occurred while automatically activating bundle org.eclipse.ajdt.ui (33). when I try to run web application from the project context menu after I create an web application based on the tutorial, I have ajdt installed in this box. Jim Xie On Apr 8, 9:43 am, Stan B stan...@gmail.com wrote: Thank you, can't wait to dig in! Does the Google/GWT plugin for Eclipse create the service stubs (Async/ Sync/Impl classes) and modify the web.xml to add the servlet for you like Cypal Studio? On Apr 7, 11:57 pm, Bruce Johnson br...@google.com wrote: Hi Folks! Exciting news today. Rather than attempting to describe everything here, let me point you to some blog posts that hopefully you will find interesting: GWT 1.6 and friends: http://googlewebtoolkit.blogspot.com/2009/04/introducing-gwt-16-and-f. .. Seriously this time, the new language on App Engine: Javahttp:// googleappengine.blogspot.com/2009/04/seriously-this-time-new-l... Google Plugin for Eclipse -- Peanut Butter to Eclipse's Chocolatehttp:// googlewebtoolkit.blogspot.com/2009/04/google-plugin-for-eclips... -- Bruce, on behalf of the GWT, App Engine, and Google Plugin teams- Hide quoted text - - Show quoted text - -- Miguel- Hide quoted text - - Show quoted text - -- Miguel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Reverse engineering
the source code is in the jar files. so in netbeans i can hit ctrl +shift+b to go to the class it used On Apr 8, 8:15 am, fatjack1...@googlemail.com fatjack1...@googlemail.com wrote: Hi, Im wondering if there is an easy way to reverse engineer your code to produce class diagrams? Regards, Jack --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Announcing GWT 1.6...and quite a bit more
That is strange. We'll track it internally. Please let us know if it happens again. On Wed, Apr 8, 2009 at 1:51 PM, Jim jim.p...@gmail.com wrote: Yes. I am using the following version of ajdt and aspectj: Version: 1.5.3.200807141310 AspectJ version: 1.6.1.2008070312 Jim On Apr 8, 1:28 pm, Miguel Méndez mmen...@google.com wrote: Restarting a second time fixes it? On Wed, Apr 8, 2009 at 1:17 PM, Jim jim.p...@gmail.com wrote: I am using Eclipse 3.3. I got this exception first time when I tried to run web application after I installed the plugin and restarted eclipse. However this exception goes away after I restarted my Eclipse. Jim On Apr 8, 1:03 pm, Miguel Méndez mmen...@google.com wrote: What version of eclipse are you using? What version of ajdt? On Wed, Apr 8, 2009 at 11:41 AM, Jim jim.p...@gmail.com wrote: I got the following exception: Plug-in org.eclipse.ajdt.ui was unable to load class org.eclipse.ajdt.internal.ui.ajde.CachedRuntimeClasspathEntryResolver. An error occurred while automatically activating bundle org.eclipse.ajdt.ui (33). when I try to run web application from the project context menu after I create an web application based on the tutorial, I have ajdt installed in this box. Jim Xie On Apr 8, 9:43 am, Stan B stan...@gmail.com wrote: Thank you, can't wait to dig in! Does the Google/GWT plugin for Eclipse create the service stubs (Async/ Sync/Impl classes) and modify the web.xml to add the servlet for you like Cypal Studio? On Apr 7, 11:57 pm, Bruce Johnson br...@google.com wrote: Hi Folks! Exciting news today. Rather than attempting to describe everything here, let me point you to some blog posts that hopefully you will find interesting: GWT 1.6 and friends: http://googlewebtoolkit.blogspot.com/2009/04/introducing-gwt-16-and-f. .. Seriously this time, the new language on App Engine: Javahttp:// googleappengine.blogspot.com/2009/04/seriously-this-time-new-l... Google Plugin for Eclipse -- Peanut Butter to Eclipse's Chocolatehttp:// googlewebtoolkit.blogspot.com/2009/04/google-plugin-for-eclips... -- Bruce, on behalf of the GWT, App Engine, and Google Plugin teams- Hide quoted text - - Show quoted text - -- Miguel- Hide quoted text - - Show quoted text - -- Miguel- Hide quoted text - - Show quoted text - -- Miguel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Error installing google plugin for eclipse
Was there a stack traced or more information in the failure? What versions of eclipse, etc are involved? On Wed, Apr 8, 2009 at 1:43 PM, joedayz jamdiazd...@gmail.com wrote: I installed in Spring tool suite 2.0 the plugin. I work in ubuntu (linux). For I got it error: Invocation of com.google.gwt.user.tools.WebAppCreator failed. If someone can help with it. Please, Joe -- Miguel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
New version of Print.it
So here you can find the last version of Print.it. It works for both 1.4 and 1.5. You can supply a DOCTYPE do be used to render the printing frame and you can alter the way the printing frame is generated and printed on slow machines, http://code.google.com/p/gwt-print-it/source/browse/trunk/src/br/com/freller/tool/client/Print.java /** * pre * * Description: * * Generic printing class * Can be used to print the Window it self, DOM.Elements, UIObjects (Widgets) and plain HTML * * Usage: * * You must insert this iframe in your host page: * iframe id=__printingFrame style=width:0;height: 0;border:0/iframe * * Window: * Print.it(); * * Objects/HTML: * Print.it(RootPanel.get(myId)); * Print.it(DOM.getElementById(myId)); * Print.it(Just bPrint.it()/b!); * * Objects/HTML using styles: * Print.it(link rel=StyleSheet type=text/css media=paper href=/paperStyle.css, RootPanel.get(myId)); * Print.it(style type=text/css media=paper .newPage { page-break-after: always; } /style, * Hip class=newPage/pBy); * * Objects/HTML using styles and DocType: * Print.it(!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01//EN' 'http://www.w3.org/TR/html4/strict.dtd', * link rel=StyleSheet type=text/css media=paper href=/paperStyle.css, * RootPanel.get(myId)); * * OBS: * * Warning: You can't use \ in your style String * * Obs: If your machine is to slow to render the page and you keep getting blank pages, change USE_TIMER to true and * play with TIMER_DELAY * * Obs: If you try to print Form elements, like TextArea and ListBox they will show default status * * /pre */ --~--~-~--~~~---~--~~ 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: Android Compatibility Isses with GWT (UI based, not RPC)
Hey Jason, Thanks for the tips. I've posted my note on the Android Developers list so hopefully someone over there has already gone down this road. As for the emulator tip, I've found some images and will be installing them shortly. Sometimes I kind of forget what I'm working with and just assume I've only got the device! So yeah, after upgrading to the new Cupcake on the emulator... meh I'd say no improvement :-(. E On Apr 8, 12:57 pm, Jason Parekh jasonpar...@gmail.com wrote: On Wed, Apr 8, 2009 at 12:22 PM, Evan Ruff evan.r...@gmail.com wrote: Hey guys, Little stream of conciseness here, sorry if this is a bit long/ disjoined. I was wondering if anyone had done any work with GWT and the Android Browser. While I'm getting basic functionality to work, the general speed, responsiveness and user experience seem very sluggish and, well, sorta bad. Another issue I'm having is locating a group to go to for support, examples and help. While I'm interested in GWT with Android, it seems that Android Developers Group is really only interested in native apps. Where to go for Browser specific help? I recommend the Android lists--some members of the Android browser team monitor those lists (I don't think any of them monitor this list). Also, filing bugs on the tracker is always recommended. As for trying out cupcake, you can build an emulator running Cupcake with the instructions athttp://source.android.com/download. jason Anyways, some of the particulars I've run into: What group to go to? 1. Issues Controlling the viewport: No matter what I do, I can't seem to get proper control of the viewport. Editing the meta data, overflow CSS properties, insuring that the window's objects are small, etc. I'm continually getting white space borders and stuff like that. This causes weird finger behavior, especially allowing the user to browse into the white space. 2. HTML5/Gears Wrappers: I was wondering if the Gears API has an implementation to support HTML5 storage/cache issues in case of a non- gears enabled client. If not, is there a library anywhere that supports the encapsulation for GWT? 3. MouseListeners: The OS seems to swallow up the MouseUp event in order to do detection of scroll/drag type stuff. I guess I understand why it does it for the drag type thing, but it never fires MouseUp even after the drag is done. Ehh... fair enough, I guess. 4. Focus Panel ClickListeners: When I click a focus panel, a orange circle shows up in the upper/left corner with what seems like a cursor in it? (http://i243.photobucket.com/albums/ff2/gte619n/ selectBubble.png) Also seems like a non-trivial delay between the press and then a following action. Makes the app seem especially sluggish. 5. Image Loading/Display: Seems really slow. Even when doing background repositioning to flip sprites. Additionally, the images don't seem to load in any fixed order and method. Also seems to hang when loading images (http://i243.photobucket.com/albums/ff2/gte619n/ selectBubble.png) I've attempted to get around this by doing Prefetch and such, but nothing seems to work. Seems like it needs to talk itself into refreshing the screen after loading finishes (even in localhost in the emulator) 6. Visibility hide/show: Very sluggish in general. 7. Scroll inside divs: Flat out doesn't support this. I guess the Cupcake release, bringing the browser up to Nov 2008 Webkit, should fix this but I still don't have any visibility into that release. Has anyone compiled some best practices to use when building an Application for Android? Maybe even some widgets or JSNI breakouts to better manage the behavior and performance of the app? Thanks! Evan --~--~-~--~~~---~--~~ 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: iText Causing GWT-RPC callback to fail. Need to send to HttpServletResponse?
Can we see how does your itext pdf look like? here is mine: http://www.nabble.com/file/p17809870/DomesticApprovalS13371.pdf On Apr 7, 10:50 pm, Carl Pritchett bogusggem...@gmail.com wrote: Hi, You'll have to work out a token generation scheme. If you find a nice one, post it. Sessions will typically timeout (the timeout is app server dependent), but I also added session.invalidate() on login to ensure that the previous session is invalidated (e.g. two users usin the same browser). Carl. On Apr 8, 8:04 am, Superman859 russ.d.hollo...@gmail.com wrote: Thanks Carl! Your method worked fine. It's almost fully implemented, but the only question I have that remains is the proper way to generate tokens. I haven't ever had to generate them before - is there an automatic way of generating unique tokens, or is generateToken () a function I would write myself and have to ensure that each token generated was unique? For now, I just hard coded a random string into the code, which worked well enough to see that the PDF did indeed open in a new window and display as expected. I will also need to figure out the session settings so that they are invalidated properly, although I think I will need to do a bit more reading on this. // RPC code in the class which extends RemoteServiceServlet public String generatePDF(ReportDO report, int id) { // initialize new document for PDF Document document = new Document(); // generate one time token that the client can use to retrieve the PDF String token = 258958395ai53; // generate test PDF try { ByteArrayOutputStream baos = new ByteArrayOutputStream(); PdfWriter.getInstance(document, baos); document.open(); document.add(new Paragraph(Hello World!)); document.close(); byte[] pdf = baos.toByteArray(); HttpServletRequest request = this.getThreadLocalRequest(); HttpSession session = request.getSession(); session.setAttribute(token, pdf); } catch (Exception e) { System.out.println(ReportServlet::generatePDF::Exception + e.getMessage()); } return token; } // standard servlet public class PDFServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { // create output stream from byte array in session ByteArrayOutputStream baos = new ByteArrayOutputStream(); String token = request.getParameter(token); byte[] pdf = (byte[]) request.getSession().getAttribute(token); baos.write(pdf); // setting some response headers response.setHeader(Expires, 0); response.setHeader(Cache-Control, must-revalidate, post-check=0, pre-check=0); response.setHeader(Pragma, public); response.setContentType(application/pdf); // content length is needed for MSIE response.setContentLength(baos.size()); // write ByteArrayOutputStream to ServletOutputStream ServletOutputStream out = response.getOutputStream(); baos.writeTo(out); out.flush(); } } // client side code section ReportController.getInstance().generatePDF(report, id, new AsyncCallback() { public void onFailure(Throwable caught) { SC.say(Failed); } public void onSuccess(Object result) { String token = (String) result; Window.open(PDFService?token= + token, _blank, menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes); } }); } }); On Apr 7, 1:04 am, Carl Pritchett bogusggem...@gmail.com wrote: The simplest safest way I can think of is basically the same as other people have already stated in this thread. Using a token and storing data in the session means that the pdf data is unique to the user (as long as the session is invalidated properly). - Send an RPC call to generate the pdf (or at least send the information used to generate the pdf) - The RPC service saves the pdf (or request data) in the session: // use the data to create the PDF
Re: Android Compatibility Isses with GWT (UI based, not RPC)
Jason, I actually downloaded a January 7th image I found on the web. Do you know if that version has the Webkit/SquirrelFish updates in it? Sorry if this thread has kinda gotten a little off the tracks, guys. E On Apr 8, 12:57 pm, Jason Parekh jasonpar...@gmail.com wrote: On Wed, Apr 8, 2009 at 12:22 PM, Evan Ruff evan.r...@gmail.com wrote: Hey guys, Little stream of conciseness here, sorry if this is a bit long/ disjoined. I was wondering if anyone had done any work with GWT and the Android Browser. While I'm getting basic functionality to work, the general speed, responsiveness and user experience seem very sluggish and, well, sorta bad. Another issue I'm having is locating a group to go to for support, examples and help. While I'm interested in GWT with Android, it seems that Android Developers Group is really only interested in native apps. Where to go for Browser specific help? I recommend the Android lists--some members of the Android browser team monitor those lists (I don't think any of them monitor this list). Also, filing bugs on the tracker is always recommended. As for trying out cupcake, you can build an emulator running Cupcake with the instructions athttp://source.android.com/download. jason Anyways, some of the particulars I've run into: What group to go to? 1. Issues Controlling the viewport: No matter what I do, I can't seem to get proper control of the viewport. Editing the meta data, overflow CSS properties, insuring that the window's objects are small, etc. I'm continually getting white space borders and stuff like that. This causes weird finger behavior, especially allowing the user to browse into the white space. 2. HTML5/Gears Wrappers: I was wondering if the Gears API has an implementation to support HTML5 storage/cache issues in case of a non- gears enabled client. If not, is there a library anywhere that supports the encapsulation for GWT? 3. MouseListeners: The OS seems to swallow up the MouseUp event in order to do detection of scroll/drag type stuff. I guess I understand why it does it for the drag type thing, but it never fires MouseUp even after the drag is done. Ehh... fair enough, I guess. 4. Focus Panel ClickListeners: When I click a focus panel, a orange circle shows up in the upper/left corner with what seems like a cursor in it? (http://i243.photobucket.com/albums/ff2/gte619n/ selectBubble.png) Also seems like a non-trivial delay between the press and then a following action. Makes the app seem especially sluggish. 5. Image Loading/Display: Seems really slow. Even when doing background repositioning to flip sprites. Additionally, the images don't seem to load in any fixed order and method. Also seems to hang when loading images (http://i243.photobucket.com/albums/ff2/gte619n/ selectBubble.png) I've attempted to get around this by doing Prefetch and such, but nothing seems to work. Seems like it needs to talk itself into refreshing the screen after loading finishes (even in localhost in the emulator) 6. Visibility hide/show: Very sluggish in general. 7. Scroll inside divs: Flat out doesn't support this. I guess the Cupcake release, bringing the browser up to Nov 2008 Webkit, should fix this but I still don't have any visibility into that release. Has anyone compiled some best practices to use when building an Application for Android? Maybe even some widgets or JSNI breakouts to better manage the behavior and performance of the app? Thanks! Evan --~--~-~--~~~---~--~~ 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 for eclipse
This is the information of my STS: SpringSource Tool Suite Version: 2.0.0 (c) Copyright SpringSource 2007, 2009. All rights reserved. Visit http://springsource.com/products/sts My ubuntu: Ubuntu 8.10 - the Intrepid Ibex - released in October 2008. Log: !ENTRY org.eclipse.jdt.ui 4 10001 2009-04-08 13:17:19.818 !MESSAGE Internal Error !STACK 1 Java Model Exception: Core Exception [code 0] Invocation of com.google.gwt.user.tools.WebAppCreator failed. See the error log for more details. at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:50) at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:716) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800) at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4563) at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:92) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) Caused by: org.eclipse.core.runtime.CoreException: Invocation of com.google.gwt.user.tools.WebAppCreator failed. See the error log for more details. at com.google.gwt.eclipse.core.runtime.tools.WebAppProjectCreatorRunner.createProject(WebAppProjectCreatorRunner.java:48) at com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.createGWTProject(WebAppProjectCreator.java:376) at com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.create(WebAppProjectCreator.java:204) at com.google.gdt.eclipse.suite.wizards.NewWebAppProjectWizard.finishPage(NewWebAppProjectWizard.java:202) at org.eclipse.jdt.internal.ui.wizards.NewElementWizard$2.run(NewElementWizard.java:117) at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:39) at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:716) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800) at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4563) at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:92) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) !SUBENTRY 1 com.google.gwt.eclipse.core 4 0 2009-04-08 13:17:19.819 !MESSAGE Invocation of com.google.gwt.user.tools.WebAppCreator failed. See the error log for more details. 2009/4/8 Miguel Méndez mmen...@google.com Was there a stack traced or more information in the failure? What versions of eclipse, etc are involved? On Wed, Apr 8, 2009 at 1:43 PM, joedayz jamdiazd...@gmail.com wrote: I installed in Spring tool suite 2.0 the plugin. I work in ubuntu (linux). For I got it error: Invocation of com.google.gwt.user.tools.WebAppCreator failed. If someone can help with it. Please, Joe -- Miguel -- ** ** JOEDAYZ Ing. Jose Diaz Diaz www.joedayz.com 4116200 ext 2527 985419782 ** ** --~--~-~--~~~---~--~~ 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 for eclipse
Last question, is this a 64 machine? On Wed, Apr 8, 2009 at 2:17 PM, Jose Diaz jamdiazd...@gmail.com wrote: This is the information of my STS: SpringSource Tool Suite Version: 2.0.0 (c) Copyright SpringSource 2007, 2009. All rights reserved. Visit http://springsource.com/products/sts My ubuntu: Ubuntu 8.10 - the Intrepid Ibex - released in October 2008. Log: !ENTRY org.eclipse.jdt.ui 4 10001 2009-04-08 13:17:19.818 !MESSAGE Internal Error !STACK 1 Java Model Exception: Core Exception [code 0] Invocation of com.google.gwt.user.tools.WebAppCreator failed. See the error log for more details. at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:50) at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:716) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800) at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4563) at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:92) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) Caused by: org.eclipse.core.runtime.CoreException: Invocation of com.google.gwt.user.tools.WebAppCreator failed. See the error log for more details. at com.google.gwt.eclipse.core.runtime.tools.WebAppProjectCreatorRunner.createProject(WebAppProjectCreatorRunner.java:48) at com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.createGWTProject(WebAppProjectCreator.java:376) at com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.create(WebAppProjectCreator.java:204) at com.google.gdt.eclipse.suite.wizards.NewWebAppProjectWizard.finishPage(NewWebAppProjectWizard.java:202) at org.eclipse.jdt.internal.ui.wizards.NewElementWizard$2.run(NewElementWizard.java:117) at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:39) at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:716) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800) at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4563) at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:92) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) !SUBENTRY 1 com.google.gwt.eclipse.core 4 0 2009-04-08 13:17:19.819 !MESSAGE Invocation of com.google.gwt.user.tools.WebAppCreator failed. See the error log for more details. 2009/4/8 Miguel Méndez mmen...@google.com Was there a stack traced or more information in the failure? What versions of eclipse, etc are involved? On Wed, Apr 8, 2009 at 1:43 PM, joedayz jamdiazd...@gmail.com wrote: I installed in Spring tool suite 2.0 the plugin. I work in ubuntu (linux). For I got it error: Invocation of com.google.gwt.user.tools.WebAppCreator failed. If someone can help with it. Please, Joe -- Miguel -- ** ** JOEDAYZ Ing. Jose Diaz Diaz www.joedayz.com 4116200 ext 2527 985419782 ** ** -- Miguel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Error installing google plugin for eclipse
Sorry The error is because in my preferences i am using JDK 1.4 by default. I change to jdk 1.6 and the problem was solved. Joe. www.joedayz.org On Wed, Apr 8, 2009 at 1:17 PM, Jose Diaz jamdiazd...@gmail.com wrote: This is the information of my STS: SpringSource Tool Suite Version: 2.0.0 (c) Copyright SpringSource 2007, 2009. All rights reserved. Visit http://springsource.com/products/sts My ubuntu: Ubuntu 8.10 - the Intrepid Ibex - released in October 2008. Log: !ENTRY org.eclipse.jdt.ui 4 10001 2009-04-08 13:17:19.818 !MESSAGE Internal Error !STACK 1 Java Model Exception: Core Exception [code 0] Invocation of com.google.gwt.user.tools.WebAppCreator failed. See the error log for more details. at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:50) at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:716) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800) at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4563) at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:92) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) Caused by: org.eclipse.core.runtime.CoreException: Invocation of com.google.gwt.user.tools.WebAppCreator failed. See the error log for more details. at com.google.gwt.eclipse.core.runtime.tools.WebAppProjectCreatorRunner.createProject(WebAppProjectCreatorRunner.java:48) at com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.createGWTProject(WebAppProjectCreator.java:376) at com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.create(WebAppProjectCreator.java:204) at com.google.gdt.eclipse.suite.wizards.NewWebAppProjectWizard.finishPage(NewWebAppProjectWizard.java:202) at org.eclipse.jdt.internal.ui.wizards.NewElementWizard$2.run(NewElementWizard.java:117) at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:39) at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:716) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800) at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4563) at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:92) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) !SUBENTRY 1 com.google.gwt.eclipse.core 4 0 2009-04-08 13:17:19.819 !MESSAGE Invocation of com.google.gwt.user.tools.WebAppCreator failed. See the error log for more details. 2009/4/8 Miguel Méndez mmen...@google.com Was there a stack traced or more information in the failure? What versions of eclipse, etc are involved? On Wed, Apr 8, 2009 at 1:43 PM, joedayz jamdiazd...@gmail.com wrote: I installed in Spring tool suite 2.0 the plugin. I work in ubuntu (linux). For I got it error: Invocation of com.google.gwt.user.tools.WebAppCreator failed. If someone can help with it. Please, Joe -- Miguel -- ** ** JOEDAYZ Ing. Jose Diaz Diaz www.joedayz.com 4116200 ext 2527 985419782 ** ** -- ** ** JOEDAYZ Ing. Jose Diaz Diaz www.joedayz.com 4116200 ext 2527 985419782 ** ** --~--~-~--~~~---~--~~ 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 dev on Windows and Linux
Thanks for the response. I tried this but am still getting an error. What is in your platform-libs zip? On Apr 8, 8:33 am, Arthur Kalmenson arthur.k...@gmail.com wrote: Do you have profiles in your POM? It looks something like this: profiles profile idgwt-dev-windows/id properties platformwindows/platform /properties activation activeByDefaulttrue/activeByDefault os familyWindows/family /os /activation /profile profile idgwt-dev-mac/id properties platformmac/platform /properties activation os familymac/family /os /activation /profile profile idgwt-dev-linux/id properties platformlinux/platform /properties activation os nameLinux/name /os /activation /profile /profiles Your gwt-dev dependency would look like this: dependency groupIdcom.google.gwt/groupId artifactIdgwt-dev/artifactId version${gwtVersion}/version classifier${platform}-libs/classifier typezip/type scopeprovided/scope /dependency Regards, -- Arthur Kalmenson On Tue, Apr 7, 2009 at 1:02 PM, Marley nathaniel.au...@gmail.com wrote: I have a GWT project which I have been developing on my Windows XP laptop. An older desktop was laying around and I convinced my boss to let me have it. Amazing how quickly the XP installation on it disappeared! I checked out the code on my Linux box but can not compile it via the Maven GWT plug-in or run it from within eclipse now. Maven blows up and Eclipse gives me a: Plug-in org.maven.ide.eclipse.jdt was unable to load class org.maven.ide.eclipse.jdt.internal.launch.MavenRuntimeClasspathProvider. An error occurred while automatically activating bundle org.maven.ide.eclipse.jdt (602). What do i need to do differently on Linux than Windows? Can I develop the same project on both platforms? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---