Re: OSGI - adding new client/server code to an existing app through a bundle
Hi I used GWT and OSGi. I don't know if it is possible to do a modular client application the same way as OSGi, in a simple way. I don't think the problem comes from the Root.get(""), but more from how you load the JavaScript files from your different Bundles. Yet, the problem with Root.get() is that you can't get a son of the already Root.get() element. Root.get("father"); //OK Root.get("son"); //fail As far I understand, you want to develop a GWT module per OSGi Bundle. The platform will automatically enhanced the GWT clients with the presence or not of these OSGi Bundles. Can you dynamically load GWT modules ? I don't know the solution. I think all the modules are compiled in a single JS file, per Browser, except if you use GWT.runAsync() (split code feature from the SVN trunk). With GWT.runAsync(), the initial load is less important, and it will load new JS file once the code in the runAsync() is called. But still, the references to these numerous JS files, for each GWT.runAsync(), are compiled in the very first JavaScript loaded. So you can split the code, but you can't add new code, unless you do GWT.runAsync() at multiple levels. (runAsync(...runAsync())) Or you do this in the JavaScript way, not Java-GWT, with JSNI. I am not a JS expert. My best advice is that you should ask information to the Google Wave Community, they know how to add gadgets. I am eager to get the code of this GWT-Wave client... There is a lot to learn there. Baptiste On 24 juil, 19:58, Michael Sullivan wrote: > I'm looking at using GWT in anOSGiapplication. We want to be able > to add extra features as bundles. These bundles would add new > database tables, workflows and screens to an existing application. > > I think it would be easy to add something to the menu - have a service > where the clients polls the server for new menu items, the server uses > anOSGiservice to check for new features, and the client simply > rebuilds the menu. > > I'm less certain as to how to SHOW a new feature at the UI after it is > added to a menu. I would think by the time the client code has been > compiled and sent to the browser, it's too late to do RootPanel.get > ("xx").add( yy); > > Is there some kind of reference I can pass to the client that it can > use to show a new screen in a 'div' or 'object' section? Would I have > to pass the HTML application page for the new feature? If so, how > would I have the browser show it? > > Any suggestions would be appreciated. > > Mike --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: problem with history in hosted mode
Hey, Thanks for the response, i already have the tag in my body tag on the page but i still get the error messeage. so i am not sure were exactly the problem is. i use maven 2.2.0 and gwt 1.7 thanks jeremiah On Fri, Aug 7, 2009 at 11:37 AM, Salman Hemani wrote: > > I thought I'd post another problem in the same thread which works fine > for Firefox but not in IE. Seems like a bug in GWT > > I start off with my initial token. Let's say "start". When page1 is > loaded I add another token "page1". When I click on another page it > initializes that page and adds another token "page2". So the stack for > the back button should look like: > > page2 > page1 > start > > Now when I hit back it should go to page1. And the stack for back > button looks like: > > page1 > start > > where as forward button stack looks like > > page2 > > So if I hit forward it should take me to page2. But this only works in > Firefox. (Have not tried other non IE browsers). > In IE, forward stack is empty (cannot tell in the GWT Browser because > the button is always enabled. But if you load IE, forward button is > never enabled). Furthermore, the back button stack looks like this: > > page1 > page2 > start > > What's going on? > > Jeremiah, > > When you get passed the problem you reported initially, let me know if > you see the above issue. > > Anyone else, please shed some light. > > Thanks. > > > On Aug 7, 1:53 am, Salman Hemani wrote: > > I have the following line in my html file and I don't see the problem > > in hosted mode. > > > > > > > > Copy the above into your body tag. Let us know if that worked > > > > On Aug 7, 12:30 am, Jeremiah Moses wrote: > > > > > any updates on this would be much appreciated > > > > > On Wed, Aug 5, 2009 at 2:32 PM, Jeremiah Moses < > jeremiah.mo...@gmail.com>wrote: > > > > > > Hey, > > > > > > I am having a strange problem withhistoryi use the value change > handler > > > > and had the problme wiht both 1.64 and now with 1.7. the problem is > this > > > > error that comes in hosted mode and on internet explorer > > > > > > [INFO] Unable to initialize thehistorysubsystem; did you include the > > > >historyframe in your host page? Try > > > id='__gwt_historyFrame' > > > > style='position:absolute;width:0;height:0;border:0'> > > > > > > now the odd thing is i hvae that iframe in my main page and when > compile i > > > > am able to go through the pages in firefox the problem seems to only > in > > > > internet explorer and in hosted mode. > > > > > > any suggestions to fix this ? > > > > > > thanks > > > > > > jeremiah > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Enhancing Data Classes jpa only?
Using JDO also requires enhancing the data classes. On Aug 7, 2:46 pm, asianCoolz wrote: > Only JPA required to do Enhancing Data Classes , JDO , not required ? > why? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
tyring out uibinder
1. i downloaded gwt from svn compiled and use this lib 2. create a xml file like below Hello, . where should i put this xml file in my gwt application in order to be called by my class ? public class HelloWorld extends UIObject { --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Image behind Tabs? Is it possible?
hmz..I think you would need to do this by assigning them all the same background, but starting the background from a position that matchs each tabs separate x-location. (background-position). Or, rather, the negative of the x-location of the tab. (so your moving the background right just enough, so when its positioned relative to the tab it seems to form part of a seamless image). Bit crude though, not sure of a better way. On Aug 6, 8:59 am, "alex.d" wrote: > I would like to put an image behind my tabs (marketing thinks that it > is an awesome idea :). Is it somehow possible? One should still see > the tabs with an ongoing image inbetween them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Profiling memory usage for large gwt application
Sumit Chandel wrote: > > I've seen some cases where IE would blow up when sending overly > complex DTOs through the wire (deep maps or map values referring the > DTO object itself). > > Sounds reminiscent of issue 3577. http://code.google.com/p/google-web-toolkit/issues/detail?id=3577 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 while installing google plugin for eclipse 3.5
more details? On Aug 5, 6:17 pm, dilip wrote: > i followed the instructions of google plugin from google article after > some time it throws an error > > am finiding the difficulty --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: cant resize images from imagebundle
Unfortunately, I think this simply cant be done and is a current limitation of Image bundles. I hope at some point they can find a way around this. Maybe by scaling the whole image before its cropped down in css. (and the crop altered proportionately too). On Aug 5, 9:57 am, ben fenster wrote: > using setSize or setPixelSize methods doesnt work on images from > imagebundle is there any way to do such operation on image from > imagebundle ? > plz help --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: StaticStringInternationalization
hm.. the steps above work for me maybe read these articles: * http://code.google.com/intl/de-DE/webtoolkit/doc/1.6/DevGuideI18nAndA11y.html#DevGuideDynamicStringInternationalization * http://code.google.com/intl/de-DE/webtoolkit/tutorials/1.6/i18n.html#local it says, you can also append the locale as parameter to the URL - may speed up your debugging ah - one more thing: are you sure, that you really compile all the permutations for the languages? On Aug 7, 7:15 am, lumo wrote: > > * use this content type in the HTML page: > > > > * make sure, your .properties files are saved using UTF-8 encoding > > (file-properties in eclipse) > > * set the language using: > content='locale=de'> > > okay, i changed the content type to utf-8 and also the encoding of the > .properties files. > i added the language meta tag into my html file > > > > > > etc. > still... its only the default .properties showing up. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Save as dialog box
Im using something like this: new ClickHandler() { public void onClick(ClickEvent event) { DOM.setElementAttribute(RootPanel.get("__download") .getElement(), "src", GWT.getModuleBaseURL() + "downloadAttachmentServlet?attachment_name=" + a.getName() + "&folder_name=" + folder + "&message_uuid=" + uid + "&sessionId=" + sessionUid); } }); And add this to the body of your html page: Works on IE/Firefox/Safari. Bye, Norman 2009/8/6 Charlie : > > Well maybe someone can answer this one for me: > I have this button when it's clicked I want a "Save as" dialog box to > show, > I used Window.open in the ClickHandler and it worked great, a window > opened and then a the "save as" dialog box showed, BUT when I added an > http request to that ClickHandler IE acted with a popup blocker. > > Any idea why? > > > On Aug 6, 4:41 pm, jhulford wrote: >> Just use a standard link. If the content type header on the response >> from the download page is set to something other than html/xml you'll >> get the browser's file save/execute dialog and it won't navigate away >> from the current page. >> >> On Aug 5, 8:16 pm, Charlie wrote: >> >> >> >> > Hello >> > Right now I'm using "Window.open" function in order for the user to >> > download files from my web-app but this leads to the internet exploer >> > do the block bar and when you enable it , it refreshes the page is >> > there any way to avoid this? I searched around but couldn't find >> > anything that works. >> >> > Charlie- 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 -~--~~~~--~~--~--~---
Problem while clearing a panel
Hi all I have added some child widgets in a vertical panel before vertical panel got attach. Now a child widget has thrown some exception in its onAttach method. Now want to clear this panel, but no way I am getting 'java.lang.IllegalStateException: Should only call onDetach when the widget is attached to the browser's document' Sample code to produce the bug: VerticalPanel v = new VerticalPanel(); Button b = new Button() { protected void onAttach() { if (true) { throw new ResourceException("Exception in onAttach"); } super.onAttach(); } }; v.add(b); try { RootPanel.get().add(v); } catch (Exception e) { } finally { try{ v.clear(); }catch(Exception e){ }finally{ Window.alert("Finally" + v.getWidgetCount()); } } Thanks and Regards Rick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
update to Eclipse 3.5 and GWT 1.7 -> problem
hello NG, i updated my ide and gwt and moved my project to the new ide. now i can still compile the project after fixing some errors. but when i come to execution i get the following error: Project XXX is not GWT project ?? i can build the map but its no gwt project? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: StaticStringInternationalization
horray! you pointed me to my mistake! i added the locale stuff to the .html instead of the .gwt.xml after sorting this out i get way more files compiled (due different languages :) ) thanks a lot! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Image behind Tabs? Is it possible?
That's a pretty interesting idea. Very hacky ;) Except for i don't know the width of the tabs - it's a i18n system and tab-text (and it's length) differs from language to language. On 7 Aug., 10:45, twdarkflame wrote: > hmz..I think you would need to do this by assigning them all the same > background, but starting the background from a position that matchs > each tabs separate x-location. (background-position). Or, rather, the > negative of the x-location of the tab. (so your moving the background > right just enough, so when its positioned relative to the tab it seems > to form part of a seamless image). > > Bit crude though, not sure of a better way. > > On Aug 6, 8:59 am, "alex.d" wrote: > > > I would like to put an image behind my tabs (marketing thinks that it > > is an awesome idea :). Is it somehow possible? One should still see > > the tabs with an ongoing image inbetween them. > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
ScrollPanel modification
Hello, Is there a way to modify slidebar behaviour? I want to put a small panel (perfect fit) into a ScrollPanel but also I need it to behave like it would contain a much bigger and virtually resizable panel. Thx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: I18n and special Characters
Thanx - that solved problem. I formerly wondered why the display remains in unreadable character - as I registered, that the char set changing in eclipse changed the characters. Therefore the chars were unreadable in code :) Okay, now the next stage: I use a MySql DB and this one in latin. The view is now in utf8 and each "umlaut" character in DB appears crippled in the view. And vice versa. Special characters on the view are persistet crippled. Okay, this is not a S critical impact - because the view of those unreadable chars result in the correct special characters. I tried to create a table in UTF8 character encoding inserted some special characters - but still the problem remain. Some ideas for that? Cheers harkon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Getting com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException while calling RPC method
i have the same problem...any help? On 16 Jun., 11:23, ramraj wrote: > Hi, > > I am using gwt2.0,i have some RPC service classes,previously i have > used 1.6 at that all rpc functionlaities are working fine after > changed to 2.0 i am un able to call the RPC methods,while calling the > method i am getting the exception like > > 2009-06-16 14:52:36.641:/:WARN: An IncompatibleRemoteServiceException > was thrown while processing this call. > com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: > Parameter 0 of is of an unknown type > 'com.vimukti.defbiz.client.TaskNoteDetails/4032166626' > at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:277) > at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall > (RemoteServiceServlet.java:163) > at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost > (RemoteServiceServlet.java:86) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) > at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: > 491) > at org.mortbay.jetty.servlet.ServletHandler.handle > (ServletHandler.java:367) > at org.mortbay.jetty.security.SecurityHandler.handle > (SecurityHandler.java:185) > at org.mortbay.jetty.servlet.SessionHandler.handle > (SessionHandler.java:181) > at org.mortbay.jetty.handler.ContextHandler.handle > (ContextHandler.java:689) > at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: > 391) > at org.mortbay.jetty.handler.HandlerCollection.handle > (HandlerCollection.java:114) > at org.mortbay.jetty.handler.HandlerWrapper.handle > (HandlerWrapper.java:139) > at org.mortbay.jetty.Server.handle(Server.java:285) > at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: > 457) > at org.mortbay.jetty.HttpConnection$RequestHandler.content > (HttpConnection.java:765) > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:627) > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357) > at org.mortbay.io.nio.SelectChannelEndPoint.run > (SelectChannelEndPoint.java:329) > at org.mortbay.thread.BoundedThreadPool$PoolThread.run > (BoundedThreadPool.java:475) > Caused by: java.lang.ClassNotFoundException: > com.vimukti.defbiz.client.TaskNoteDetails/4032166626 > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:247) > at com.google.gwt.user.server.rpc.RPC.getClassFromSerializedName > (RPC.java:657) > at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:274) > ... 20 more > > Please reply --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
url rewrite and gwt
In gwt url rewrite is possible.how can i make it ? for example when i use category button,my category panel is opened but i also want to make url rewrite so "./category" must be writed How can i make this? Do you have any document or link ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Image behind Tabs? Is it possible?
How about: .gwt-TabPanel { background-image: url(image.png); } .gwt-TabBar .gwt-TabBarItem { background-color: #ccc; margin-right: 20px; } .gwt-TabPanelBottom { background-color: #ccc; } Ian http://examples.roughian.com 2009/8/7 alex.d > > That's a pretty interesting idea. Very hacky ;) Except for i don't > know the width of the tabs - it's a i18n system and tab-text (and it's > length) differs from language to language. > > On 7 Aug., 10:45, twdarkflame wrote: > > hmz..I think you would need to do this by assigning them all the same > > background, but starting the background from a position that matchs > > each tabs separate x-location. (background-position). Or, rather, the > > negative of the x-location of the tab. (so your moving the background > > right just enough, so when its positioned relative to the tab it seems > > to form part of a seamless image). > > > > Bit crude though, not sure of a better way. > > > > On Aug 6, 8:59 am, "alex.d" wrote: > > > > > I would like to put an image behind my tabs (marketing thinks that it > > > is an awesome idea :). Is it somehow possible? One should still see > > > the tabs with an ongoing image inbetween them. > > > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Profiling memory usage for large gwt application
Ankur, If I understand correctly, you're describing two separate issues here: 1. The incubator GlassPanel appears to be causing a leak. How did you detect this? 2. RPC is causing IE's memory usage to increase over time. Are we talking about OOPHM or web mode in both of these cases? If it's OOPHM, I'll have to defer to others on how Java<->JS references are accounted for in the plugin. If it's in web mode, then it would be useful to have simple test cases that reproduces these issues. Given some of the hackery in the GlassPanel code, I can imagine that a memory leak might have slipped through. RPC would surprise me, though, as we try to carefully clean up al references that could create memory-leak cycles involving the XHR object in the RequestBuilder code. But stranger things have happened :) Cheers, joel. On Thu, Aug 6, 2009 at 5:31 PM, Sumit Chandel wrote: > Hi Ankur, > Please see replies inlined below. > > We have found some leaks in our application.One of the greatest leak >> that we found in the glasspanel.So for now we are using just a static >> glasspanel(From gwt incubator ) and only adding and removing from the >> rootpanel.so for now the problem has been partially fixed at its >> leaking only on window close.Still we need to figure out why >> glasspanel is leaking.may be we could found a leak pattern. > > > If you can produce a repro code snippet that shows the memory leak with the > GlassPanel widget, please report it on the GWT Incubator Issue Tracker. > > GWT Incubator Issue Tracker: > http://code.google.com/p/google-web-toolkit-incubator/issues/list > > >> Another possible leak are may be that gwt always creates a new >> XMLHTTPRequest object,I tried with a sample appliction both on firefox >> and iei was just sending a byte array of size 1 from client to >> server and vice versa.In IE memory kept on increasing while in firefox >> it was constant.In that sample i tried to reuse the XHR object,the >> memory seems to be stable in IE after that.But reusing of XHR seems to >> breaking somewhere as that logic cripped when tried with our main >> application(may be because in sample there was onl one RPC so it would >> hav worked). > > > It seems like you're using GWT RPC, and if so, it also seems like you made > some changes to make each RPC call reuse a single XMLHttpRequest object. I'm > not sure if GWT RPC does this already by default, but if not, it would > definitely be useful to have a repro code snippet here as well to help > reproduce the problem here. Also, can I have more information about the > types that you're transferring over GWT RPC? Specifically, what do the DTOs > that you're sending across the wire contain? I've seen some cases where IE > would blow up when sending overly complex DTOs through the wire (deep maps > or map values referring the DTO object itself). > > >> Actully there is some problem with the logic how the gwt guys are >> clearing the objects in the threadlocal of the JavaDispatchImpl and in >> the objects collection of the ObjectTable.java class. I saw the code >> they have the logic to clear the objects when they get a free message >> from the browser they free up the object from the collection of the >> Object table class.We saw the free request is comming for many objects >> but it never comback for the callback objects so they are always in >> the browser memory.This can be easily seen using jprofiler to profile >> the starter application while debugging. May be this problem is only >> at debug timeI am thinking to raise it.But OOPHM is not yet >> released, so i am not sure if i can raise that issue. > > > I've forwarded this over to John on the GWT team to take an early look in > case this is a real issue. > > Cheers, > -Sumit Chandel > > >> >> >> >> regards >> ankur >> >> >> >> >> On Jul 30, 10:10 pm, Sumit Chandel wrote: >> > Hi Ankur, >> > An application size of 3MB sounds extremely large. Is that gzipped or >> > uncompressed? Also, how large is your codebase? >> > >> > I would imagine that the runAsync feature would have given you a huge >> boost >> > in reducing the initial download size of your application. You mentioned >> > that you broke down the compiled code into multiple script tags - this >> > doesn't sound like the result of using the runAsync feature, but rather >> a >> > manual attempt at breaking your code into smaller chunks. Did you use >> the >> > runAsync feature to break down the compiled code into smaller chunks, or >> use >> > a different approach? >> > >> > For what it's worth, 700 MB of memory entirely used up by your GWT >> > application is an immensely high number. Are you sure that this is only >> when >> > your application is running in the browser? If so, there are major hot >> spots >> > where you are either instantiating way too many objects at a time or >> leaking >> > major amounts of memory as you navigate from one part of the application >> to >> > the next. >> > >> > The problem with profiling me
Re: Why does not HTMLPanel implement HasHTML interface?
Sumit, Thank you for your reply. In fact, my question was aimed at better understanding the usages of HTMLPanel and its applications. I intent to use this widget as my layout manager in combination with CSS and when I am going through more elaborate phase than I am in now I will be able to see if there is a need for this indeed. On Aug 4, 1:10 pm, Sumit Chandel wrote: > Hi Gregory, > The common thing between all the widgets that do implement the HasHTML > interface is that they are all widgets that contain flat HTML as their > innerHTML. This is also true for the HTMLPanel, however, the HTMLPanel also > supports adding widgets to its innerHTML, which could cause problems when > calling getText() or getHTML() and expecting a flat and unchanging HTML > structure to be returned. > > Aside from that, it would seem logical for the HTMLPanel to implement the > HasHTML interface, if with the possible caveat mentioned above. Feel free to > create a report for this on the Issue Tracker to get some of the UI team to > consider the change. Before doing that though, could you elaborate a little > more on your use case for having the HTMLPanel implement the HasHTML > interface? There may be other ways to solve the problem depending on what > you're trying to do. > > Issue Tracker:http://code.google.com/p/google-web-toolkit/issues/list > > Hope that helps, > -Sumit Chandel > > On Fri, Jul 31, 2009 at 2:18 PM, Gregory Kanevsky wrote: > > > > > It seems very logical - almost obvious to me or what I am missing? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: ScrollPanel modification
You mean like google-maps? On 7 Aug., 11:23, wicher wrote: > Hello, > Is there a way to modify slidebar behaviour? > I want to put a small panel (perfect fit) into a ScrollPanel but also > I need it to behave like it would contain a much bigger and virtually > resizable panel. > Thx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: tyring out uibinder
there are good example in the source code you downloaded. also in the uibinder package. /FLemming On Fri, Aug 7, 2009 at 10:16 AM, asianCoolz wrote: > > 1. i downloaded gwt from svn compiled and use this lib > 2. create a xml file like below > > > > >Hello, . > > > > > where should i put this xml file in my gwt application in order to be > called by my class ? > public class HelloWorld extends UIObject { > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: size of TextBox in GWT
@Michael I want to change the size and not the maxlength of the TextBox Looks like setSize() and setPixelSize() aren't changing the number of visual characters, too. On Aug 7, 3:34 am, Michael W wrote: > user TextBox method setMaxLength(...) > > On Aug 6, 2:59 pm,Tobe wrote: > > > > > Hi, > > how do I set the size parameter of a HTML input element with > > type="text" for a TextBox in GWT? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Image behind Tabs? Is it possible?
Of course! Sometimes i seriously doubt my intelligence. Setting background-image of the .gwt-TabPanel was the first thing i've tried. Except for i've changed it for the .gwt-TabPanel and excpected the result on the DecoratedTabPanel. Thx Ian. On 7 Aug., 13:54, Ian Bambury wrote: > How about: > > .gwt-TabPanel > { > background-image : url(image.png);} > > .gwt-TabBar .gwt-TabBarItem > { > background-color : #ccc; > margin-right : 20px;} > > .gwt-TabPanelBottom > { > background-color : #ccc; > > } > > Ian > > http://examples.roughian.com > > 2009/8/7 alex.d > > > > > That's a pretty interesting idea. Very hacky ;) Except for i don't > > know the width of the tabs - it's a i18n system and tab-text (and it's > > length) differs from language to language. > > > On 7 Aug., 10:45, twdarkflame wrote: > > > hmz..I think you would need to do this by assigning them all the same > > > background, but starting the background from a position that matchs > > > each tabs separate x-location. (background-position). Or, rather, the > > > negative of the x-location of the tab. (so your moving the background > > > right just enough, so when its positioned relative to the tab it seems > > > to form part of a seamless image). > > > > Bit crude though, not sure of a better way. > > > > On Aug 6, 8:59 am, "alex.d" wrote: > > > > > I would like to put an image behind my tabs (marketing thinks that it > > > > is an awesome idea :). Is it somehow possible? One should still see > > > > the tabs with an ongoing image inbetween them. > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: problem with history in hosted mode
Hi, I seems to have fixed it for now. my gwt script tag was generated by maven and was placed in the head tag and my history tag in body tag.I was just fiddling around with it and moved my gwt script to the body tag below the iframe and it seems to be working.which seems weird to me as all the examples i had seen of this had the history ifram after the gwt script tag . On Fri, Aug 7, 2009 at 1:13 PM, Jeremiah Moses wrote: > Hey, > > > Thanks for the response, i already have the tag in my body tag on the page > but i still get the error messeage. so i am not sure were exactly the > problem is. > > i use maven 2.2.0 and gwt 1.7 > > thanks > jeremiah > > > On Fri, Aug 7, 2009 at 11:37 AM, Salman Hemani wrote: > >> >> I thought I'd post another problem in the same thread which works fine >> for Firefox but not in IE. Seems like a bug in GWT >> >> I start off with my initial token. Let's say "start". When page1 is >> loaded I add another token "page1". When I click on another page it >> initializes that page and adds another token "page2". So the stack for >> the back button should look like: >> >> page2 >> page1 >> start >> >> Now when I hit back it should go to page1. And the stack for back >> button looks like: >> >> page1 >> start >> >> where as forward button stack looks like >> >> page2 >> >> So if I hit forward it should take me to page2. But this only works in >> Firefox. (Have not tried other non IE browsers). >> In IE, forward stack is empty (cannot tell in the GWT Browser because >> the button is always enabled. But if you load IE, forward button is >> never enabled). Furthermore, the back button stack looks like this: >> >> page1 >> page2 >> start >> >> What's going on? >> >> Jeremiah, >> >> When you get passed the problem you reported initially, let me know if >> you see the above issue. >> >> Anyone else, please shed some light. >> >> Thanks. >> >> >> On Aug 7, 1:53 am, Salman Hemani wrote: >> > I have the following line in my html file and I don't see the problem >> > in hosted mode. >> > >> > >> > >> > Copy the above into your body tag. Let us know if that worked >> > >> > On Aug 7, 12:30 am, Jeremiah Moses wrote: >> > >> > > any updates on this would be much appreciated >> > >> > > On Wed, Aug 5, 2009 at 2:32 PM, Jeremiah Moses < >> jeremiah.mo...@gmail.com>wrote: >> > >> > > > Hey, >> > >> > > > I am having a strange problem withhistoryi use the value change >> handler >> > > > and had the problme wiht both 1.64 and now with 1.7. the problem is >> this >> > > > error that comes in hosted mode and on internet explorer >> > >> > > > [INFO] Unable to initialize thehistorysubsystem; did you include the >> > > >historyframe in your host page? Try > > > > id='__gwt_historyFrame' >> > > > style='position:absolute;width:0;height:0;border:0'> >> > >> > > > now the odd thing is i hvae that iframe in my main page and when >> compile i >> > > > am able to go through the pages in firefox the problem seems to only >> in >> > > > internet explorer and in hosted mode. >> > >> > > > any suggestions to fix this ? >> > >> > > > thanks >> > >> > > > jeremiah >> >> >> > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: url rewrite and gwt
You dont do this in gwt, but rather using a .htaccess file on your sever. I dont know the precise process myself, but its basicaly writting a few lines in a text file, renaming it ".htaccess", then putting it on the route of the sever. This file can make it so that...as far as gwt is concerned...the "/ catagory/blah" is actualy a query string "?Catagory_Blah" or something On Aug 7, 1:43 pm, Bhayat wrote: > In gwt url rewrite is possible.how can i make it ? for example when i > use category button,my category panel is opened but i also want to > make url rewrite so "./category" must be writed > > How can i make this? > Do you have any document or link ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: update to Eclipse 3.5 and GWT 1.7 -> problem
It would help to know what plugins you have installed or are trying to use. On Fri, Aug 7, 2009 at 5:59 AM, lumo wrote: > > hello NG, > > i updated my ide and gwt and moved my project to the new ide. > now i can still compile the project after fixing some errors. > but when i come to execution i get the following error: > > Project XXX is not GWT project > > ?? i can build the map but its no gwt project? > > > -- 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: problem with history in hosted mode
Sorry I don't use Maven so wouldn't know. GWT script tag should be in the body tag. I put my GWT script tag above the history tag although it should not matter. Do you think you could check if you are having the same problem that I described above? Is it just an IE issue? I will check the GWT issue list also. On Aug 7, 9:27 am, Jeremiah Moses wrote: > Hi, > > I seems to have fixed it for now. my gwt script tag was generated by maven > and was placed in the head tag and my history tag in body tag.I was just > fiddling around with it and moved my gwt script to the body tag below the > iframe and it seems to be working.which seems weird to me as all the > examples i had seen of this had the history ifram after the gwt script tag . > > On Fri, Aug 7, 2009 at 1:13 PM, Jeremiah Moses > wrote: > > > > > Hey, > > > Thanks for the response, i already have the tag in my body tag on the page > > but i still get the error messeage. so i am not sure were exactly the > > problem is. > > > i use maven 2.2.0 and gwt 1.7 > > > thanks > > jeremiah > > > On Fri, Aug 7, 2009 at 11:37 AM, Salman Hemani > > wrote: > > >> I thought I'd post another problem in the same thread which works fine > >> for Firefox but not in IE. Seems like a bug in GWT > > >> I start off with my initial token. Let's say "start". When page1 is > >> loaded I add another token "page1". When I click on another page it > >> initializes that page and adds another token "page2". So the stack for > >> the back button should look like: > > >> page2 > >> page1 > >> start > > >> Now when I hit back it should go to page1. And the stack for back > >> button looks like: > > >> page1 > >> start > > >> where as forward button stack looks like > > >> page2 > > >> So if I hit forward it should take me to page2. But this only works in > >> Firefox. (Have not tried other non IE browsers). > >> In IE, forward stack is empty (cannot tell in the GWT Browser because > >> the button is always enabled. But if you load IE, forward button is > >> never enabled). Furthermore, the back button stack looks like this: > > >> page1 > >> page2 > >> start > > >> What's going on? > > >> Jeremiah, > > >> When you get passed the problem you reported initially, let me know if > >> you see the above issue. > > >> Anyone else, please shed some light. > > >> Thanks. > > >> On Aug 7, 1:53 am, Salman Hemani wrote: > >> > I have the following line in my html file and I don't see the problem > >> > in hosted mode. > > >> > > > >> > Copy the above into your body tag. Let us know if that worked > > >> > On Aug 7, 12:30 am, Jeremiah Moses wrote: > > >> > > any updates on this would be much appreciated > > >> > > On Wed, Aug 5, 2009 at 2:32 PM, Jeremiah Moses < > >> jeremiah.mo...@gmail.com>wrote: > > >> > > > Hey, > > >> > > > I am having a strange problem withhistoryi use the value change > >> handler > >> > > > and had the problme wiht both 1.64 and now with 1.7. the problem is > >> this > >> > > > error that comes in hosted mode and on internet explorer > > >> > > > [INFO] Unable to initialize thehistorysubsystem; did you include the > >> > > >historyframe in your host page? Try >> > > > id='__gwt_historyFrame' > >> > > > style='position:absolute;width:0;height:0;border:0'> > > >> > > > now the odd thing is i hvae that iframe in my main page and when > >> compile i > >> > > > am able to go through the pages in firefox the problem seems to only > >> in > >> > > > internet explorer and in hosted mode. > > >> > > > any suggestions to fix this ? > > >> > > > thanks > > >> > > > jeremiah- 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: update to Eclipse 3.5 and GWT 1.7 -> problem
2009/8/7 Miguel Méndez > It would help to know what plugins you have installed or are trying to use. > i do not have loads of plugins installed: Instantiations Designer Hibernate Google GWT, GDT in this projects i do only use gwt (and hibernate) PS: funny part is in eclipse help it says you can manage features/plugins in: *Help > Software Updates > Manage Configuration... *but... actuall i do not have this menuepoint* *welcome help contents search dynamic help ley assist tips and tricks cheat sheet *check for updates install new software* about eclipse sdk* * --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: ScrollPanel modification
Not exactly, I want to have a small canvas that will represent a much larger space and I need some scrollbars to move around it. The problem is I cant make ScrollPanel to expand his scrollbars without making the canvas bigger. Of course I can make my own scrollbars. On 7 Sie, 14:26, "alex.d" wrote: > You mean like google-maps? > > On 7 Aug., 11:23, wicher wrote: > > > Hello, > > Is there a way to modify slidebar behaviour? > > I want to put a small panel (perfect fit) into a ScrollPanel but also > > I need it to behave like it would contain a much bigger and virtually > > resizable panel. > > Thx > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: MenuBar auto-close
Fortunately, I detected a bug in my code. Keeping track of the last event occurred and triggering a timer to hide the child menu if its mouseout seems to work quite well. I do wish there was a convenient close method to easily close the menu. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: update to Eclipse 3.5 and GWT 1.7 -> problem
On Fri, Aug 7, 2009 at 9:55 AM, lumo wrote: > 2009/8/7 Miguel Méndez > >> It would help to know what plugins you have installed or are trying to >> use. >> > > i do not have loads of plugins installed: > > Instantiations Designer > Hibernate > Google GWT, GDT > And you say that you are trying to launch the project when you see this error? Are you doing a Run As/Debug As Web Application? > > in this projects i do only use gwt (and hibernate) > > PS: > funny part is in eclipse help it says you can manage features/plugins in: > *Help > Software Updates > Manage Configuration... > *but... actuall i do not have this menuepoint* > *welcome > help contents > search > dynamic help > ley assist > tips and tricks > cheat sheet > *check for updates > install new software* > about eclipse sdk > * > * > > > -- 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: update to Eclipse 3.5 and GWT 1.7 -> problem
i got my Map.java open, when i click run as -> Compile GWT Application it starts to compile the map; when i click run as -> GWT Application it pops up a window where i can edit configuration and launch, underneath this it says project Map is not GWT project. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: update to Eclipse 3.5 and GWT 1.7 -> problem
On Fri, Aug 7, 2009 at 10:18 AM, lumo wrote: > i got my Map.java open, > when i click run as -> Compile GWT Application it starts to compile the > map; > when i click run as -> GWT Application it pops up a window where i can edit > configuration and launch, underneath this it says project Map is not GWT > project. > The Google Plugin for Eclipse does not support run as -> GWT Application. It supports run as -> Web Application. Is that what you meant? > > > > > > > -- 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: update to Eclipse 3.5 and GWT 1.7 -> problem
> The Google Plugin for Eclipse does not support run as -> GWT Application. > It supports run as -> Web Application. Is that what you meant? > aye caramba; well two points 1) yes, it works if i click run as -> web application 2) you say it does not support it, but its available and enabled...? (i can send screenshot for proof) thanks for your quick reply! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: java.io.NotSerializableException for gwt portlets - wps 6.1
Any inputs on how to make gwt client side java serializable ? I think after reading the gwt docs; having the client class implement java.io.serializable is similar to isSerializable interface. Do I have to use something other than HttpSession in my gwt client side code ? Is there another way to accomplish this ? Would appreciate any ideas. On Aug 5, 4:14 pm, kss wrote: > Thanks for the quick reply. I now understand the issue. So in the gwt > client side code we are using the getThreadLocalRequest().getSession() > to put objects in HttpSession. But i guess those objects are gwt > serializable but not java.io.serializable. Any ideas on how to resolve > this ? > > On Aug 5, 10:06 am, Jason Morris wrote: > > > This complaint is coming from WebSphere, not GWT. > > > By implementing IsSerializable you've said "this object may be serialized > > by GWT", but you haven't > > implemented normal "java.io.Serializable" to make it serializable by > > WebSphere. > > > Whensessionreplicationis turned on, any object in thesessionis pushed to > > all other WebSphere > > servers via normal Java serialization as part of each HTTP request / > > response cycle. > > > In short, you need to implement java.io.Serializable on these objects. > > > Hope that helps. > > //Jason > > >ksswrote: > > > We are getting java.io.NotSerializableException in one of our gwt jsr > > > 286 api portlets in WebSphere Portal 6.1. This exception has started > > > to surface in the logs since we enabledsessionreplicationon our > > > WebSphere Portal server. The object which its complaining about has > > > isSerializable interface implemented. When we dont havesession > > >replicationenabled; the issue dosent occur. > > > > Has anyone seen this exception in websphere environment for gwt > > > portlets or have any ideas ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: update to Eclipse 3.5 and GWT 1.7 -> problem
On Fri, Aug 7, 2009 at 10:30 AM, lumo wrote: > > The Google Plugin for Eclipse does not support run as -> GWT Application. >> It supports run as -> Web Application. Is that what you meant? >> > > aye caramba; > well two points > 1) yes, it works if i click run as -> web application > 2) you say it does not support it, but its available and enabled...? (i can > send screenshot for proof) > Please do send the screen shot. > > thanks for your quick reply! > > > > -- 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: tyring out uibinder
hi, may i know which sample dynatable,hello,i18n,json,mail,showcase? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: update to Eclipse 3.5 and GWT 1.7 -> problem
you can find the screenshot at: http://www.biooffice.at/biomap/proof.png greets --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Query: Multi-user environment and GWT RPC
No, each request does not get it's own instance of a servlet. If you must store user data on the server between requests, put it in session or in the database. On Fri, Aug 7, 2009 at 12:28 AM, Parmeet Kohli wrote: > > I seem to be facing a similar problem. The class i have created at the > server end ( extends RemoteServiceServlet and implements the interface > at the client end ) does have state and methods which depend on each > other. IS A NEW OBJECT NOT INSTANTIATED FROM THIS CLASS EVERY TIME A > NEW USER CALLS IT ? This does not seem to be happening because when i > test the application in parallel from two different browsers, its > mixing up the results. Please help me with a solution or let me know > if anyone needs more details. > > Thanks, > Parmeet > > > On Jul 31, 1:42 am, Isaac Truett wrote: >> > Say if users using different services concurrently and yet I have >> > grouped the services together, will my web application crash (it can't >> > tell which service for whom) ? >> >> Are you saying that your servlets are stateful? That would indeed be a >> problem. You shouldn't have any member variables in your servlet >> classes that hold data specific to a single user or request. Your >> servlets should be stateless to allow forconcurrentaccess. >> >> On Thu, Jul 30, 2009 at 1:45 AM, style.x7 wrote: >> >> > Hi fellow members, >> >> > I have been following examples found on the web to build my web >> > application with RPC mechanism. >> >> > My web application has quite a few services. By right, each service >> > should have its own class files on both client and server side. But >> > this way will result in a lot of class files, quite troublesome. >> >> > So I'm grouping all the services into one "union" set of class files. >> > It works for single-user usage, soon I have to test on multi-user >> > environment and wonder if problem can arise. >> >> > Say if users using different services concurrently and yet I have >> > grouped the services together, will my web application crash (it can't >> > tell which service for whom) ? Or I'm worrying too much as there will >> > be individual instance of the class files for each user? >> >> > Just want to get this right before I continue developing~ Thanks in >> > advance :) >> >> > Regards, >> > style.x7 >> >> > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Can't set vertical size of TabPanel
Hi Joe, No, it's not a bug. The TabPanel has another component (DeckPanel) which is the container for the widgets you add to the TabPanel. Therefore your CSS should contain an additional selector for it. You can apply this selector in the code like this: TabPanel tp = new TabPanel(); tp.setStylePrimaryName("tabPanel"); tp.getDeckPanel().setStylePrimaryName("tabPanelBottom"); CSS: .tabPanel { width: 1100px; height: 700px; } .tabPanelBottom { border-color: #92c1f0; border-style: solid; border-width: 3px 2px 2px; overflow: hidden; padding: 6px; /* eg.*/ height: 123px; } Does that work? Michael On Aug 6, 2:22 am, Joseph Arceneaux wrote: > Creating a generic TabPanel with corresponding CSS as follows: > .tabPanel { > width: 1100px; > height: 700px; > > } > > results in correctly setting the width, but not the height. Tweaking the > values in Firebug yields similar results, I can change the height just fine, > but not the width. I've also noticed this with other widgets. > > Is this some sort of known bug? > > Thanks, > 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: update to Eclipse 3.5 and GWT 1.7 -> problem
If I may, I would guess that's coming from the Instantiations plugin, not the Google plugin. I do not use the Instatiations plugin, but I do use the Google plugin and I've never seen that option. On Fri, Aug 7, 2009 at 10:42 AM, lumo wrote: > you can find the screenshot at: > http://www.biooffice.at/biomap/proof.png > > greets > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Cookies and client state. Suggestions?
Well, I'll take a stab at this so that this email doesn't disappear into the void. I think these are good design questions. On Tue, Aug 4, 2009 at 10:55 PM, brett.wooldridge wrote: > > I have a question about cookies and maintaining client-side state, and > looking for suggestions about how to solve (what I perceive to be) an > issue (for us). > > We allow the user to create a "sticky" login. You know, the one where > they tick the checkbox that says something like "Stay logged in?" > This of course creates a persistent authentication token (cookie) on > the client. Really we only need this cookie on the first "hit" from > the client -- we re-authenticate then send back (via RPC) a session > identifier that is used in all further conversations with the server. OK. > What we would like to avoid, but seems unavoidable (hence this post), > is having the cookie sent with every request to the site. Because the > entire site, from the front page all the way back is one entire GWT > application, the "path" (in cookie terms) is always the root of our > server. Therefore, the cookie gets sent with every RPC to every > service. Isn't this part of the HTTP protocol? > We would like to stuff additional persistent information down to the > client for survivability across visits, such as user preferences, but > we don't want this stuff blasted back to us with every request. How can you ensure real survivability across sessions w/o storing preferences on the server? Preferences are lost once the client clears cookies. Storing preferences via cookies is a brittle technique, esp. if it takes significant time to reestablish those preferences after clearing cookies. > For > the purpose of envisioning our traffic patterns, imagine our site is > an online game (it's not, but...) with a single client making one call > every second or three and 10k+ simultaneous users. Right now the > typical "payload" is only two or three dozen bytes, but the size of > the cookie even though small is actually larger. We could cut our > traffic in half without the cookie being sent back on every request. OK, but you'll have to stop using HTTP. > Is there an effective way to break up an single application across a > URL space? Maybe via multiple modules? For example, can we serve the > 'login' module .js files from /login and the 'settings' > module .js files from settings? If so, does that mean that > from GWT I can access cookies in the path '/login'? My concern is > that because the "page" was served from "/", even though the > script was served from "/login" that those cookies will not be > accessible. As it is, if the server sends back a cookie with a path "/ > login", they are not accessible to the client. I was surprised, > though maybe shouldn't be, as I expected JavaScript served by a > certain domain to be able to access ALL cookies in that domain, > regardless of path. That seems not to be the case. It's not clear from the description that the use of the cookie domain and path attributes in the example are correct and complete. Part of the issue may be that your server isn't RFC 2109 compliant. You might also want RFC 2965 cookie management To reiterate, I'm not convinced that saving preferences in a cookie is a good idea. It does make more work for you in the sense that you would replace the simplicity of cookies w/ the complexity of database maintenance. It may be that you've already evaluated this tradeoff. Another possibility may be to use some of the backing storage solutiions available to Javascript: the secondary storage subsystem of HTML 5; backing storage using Flash; and (of course) Gears. I hope this was some help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Timer.schedule()
No it is not same. timer.schedule(x); -- will not cancel previous timer if applied. timer.cancel(); > timer.schedule(x); -> it will cancel previous timer if any On Aug 6, 9:11 pm, Radu Grigore wrote: > Is { timer.schedule(x); } equivalent to { timer.cancel(); > timer.schedule(x); } ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 get started using MarkerClusterer with GWT
I am interested in using the MarkerClusterer JavaScript utility (http://googlegeodevelopers.blogspot.com/2009/04/markerclusterer- solution-to-too-many.html) with Java/GWT. How do I go about integrating the two? Is there a Java wrapper already available? Thanks, Mike --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Future of GWT
Hi everybody, I've always feared technologies that work the way GWT does, because if GWT stops being updated everything built on it will stop working if users keep updating their browsers. I mean, if I develop an application with GWT 1.7, which supports FF3.5 for instance and then GWT stops being developed and FF4 comes out and some of the features are broken there's nothing I can do to solve it except going native on that feature. What do you think of this? What makes you not fear this? I know having Google behind should be a pretty good guarantee but who knows... Obviously this concern has no meaning if your customer asks you to develop an application up to a specific browser version, this way you're only responsible to support this version, but what if you're developing for the web, which users you can't control, do you trust GWT? Thank you for your opinion! Best regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Looking for feedback and contributors for GTW-based project
Hello, Roman. I think you'll have problem with indexing site by search crawlers. With javascript off, i see page titles only. Also i would be glad to see fixed issue 9 and 11. Thank you for your interesting project! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: update to Eclipse 3.5 and GWT 1.7 -> problem
the Instantiations plugin does not support any Run As features, it creates a UI and generates Java native code, nothing else. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 can you wait until GWT is ready externally? (after onEnterModule)
You can tweak the linker stuff in Gwt, however it gets a little complicated. I tried to write a linker that would load Gwt 'right away' but I had issue with IE so I gave up on this. I did write a modified linker though that provides a callback mechanism: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/3c613fd1ee857b09/d94db4f30c63f910#d94db4f30c63f910 All in all the way gwt loads though understandable, is not very convenient when you you it in conjunction with Js. Pierre On Aug 6, 1:11 am, dougx wrote: > Yes, that does work. However, it's awkward. > > For example, if someone using jquery were to use my API, it would be > nice for them to be able to do this: > $(function() { > MyAPI.XXX(...); > > }); > > Not this: > myApiReady() { > MyAPI.XXX(...); > > } > > Big deal right? ...but imagine how it scales. Say you depend on three > GWT API's. Now you're looking at something like this: > > var readyStates = {'one' : false, 'two' : false, 'three' : false }; > myReallyActuallyReallyReadyFunction() { > ...} > > function myApiOneReady() { > readyStates.one = true; > if (readyStates.one && readyStates.two && readyStates.three) > myReallyActuallyReallyReadyFunction();}; > > function myApiTwoReady() { > readyStates.two = true; > if (readyStates.one && readyStates.two && readyStates.three) > myReallyActuallyReallyReadyFunction();}; > > function myApiThreeReady() { > readyStates.three = true; > if (readyStates.one && readyStates.two && readyStates.three) > myReallyActuallyReallyReadyFunction(); > > }; > > Ouch. > > I still don't understand why the onModuleLoad kicks off after the > onLoad event; unless GWT is specifically waiting for the onLoad event > before it kicks off its own internal processes. > > I suppose that vaguely makes sense, but it means that as an API > platform it's vastly unuseful, unless there's a way to turn it off. > > ~ > Doug. > > On Aug 6, 3:06 pm, olivier nouguier > wrote: > > > hi, > > On "simple" solution: > > > * In your html/js code define a: > > > function toBeCalledByGWT{ > > NetLoaderAPI.startUnitTests(); > > > } > > > * Call this function by JNSI at the end of onModuleLoad(). > > > public void onModuleLoad(){ > > /* > > ... Standard GWT code. > > */ > > > callJSInPage(); > > > } > > > public void native callJSInPage() /*-{ > > $wnd.toBeCalledByGWT()(); > > > }-*/; > > > HIH > > > On Thu, Aug 6, 2009 at 8:09 AM, dougx wrote: > > > > How can you wait until after onModuleLoad() has been invoked for an > > > application in external javascript? > > > > Should be quite a simple matter: > > > - I have a GWT aplication that publishes a static JS API via JSNI. > > > - I have a page that uses that API. > > > > I should be able to do this: > > > > > > > > > > > > function apiTest() { > > > NetLoaderAPI.startUnitTests(); > > > } > > > > > > > > > > However, I can't use it, beacause I get an error like this: > > > "TypeError: window.NetWorkerAPI is undefined" > > > > What? How is there some kind of delay between scripts loaded and run, > > > and the document ready event? > > > > I have, for reference, compiled in xs mode, so the gwt code is not > > > being loaded in an external iframe. > > > > ie. The API js is being included directly into the page header, > > > firebug shows it as: > > > http://localhost:8080/js/NetLoaderAPI/ > > > 9B08C2C4C155D60688C70B5ED70CC3CA.cache.js">... > > > > ~ > > > Doug. > > > -- > > A coward is incapable of exhibiting love; it is the prerogative of the > > brave. > > -- > > Mohandas Gandhi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: HTML widget and URL event
ok the draw that I did in the previouse one is missed up, so ignore it On Aug 7, 4:30 am, Aladdin wrote: > Hi everyone, I have two panels, one has HTML and I want to capture the > URL clicks so I can load them to the other panel. > > What I'm trying to do is to have a menu in the side and load the > content to the other one. I can handle loading the HTML but my only > problem if panel A has a link to yahoo for example and someone clicks > on it the default behavior of the browser is to open a new window, I > want to capture that click so I can load it to the panel B. > > ***Panel A*** ***Panel > B*** > * blah HTML * * > YAHOO.COM * > * yahoo.com * ==When Click==>* > * > *** > > > Because I want to handle loading URLs I want to disable the browser > from opening the link. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: update to Eclipse 3.5 and GWT 1.7 -> problem
I'm not sure what to tell you at this point. Run as GWT application is not coming from our plugin. On Fri, Aug 7, 2009 at 11:00 AM, lumo wrote: > the Instantiations plugin does not support any Run As features, > it creates a UI and generates Java native code, nothing else. > > > > > -- 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: update to Eclipse 3.5 and GWT 1.7 -> problem
probably from com.google.appengine.eclipse.core_1.1.0.v200907291526.jar ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: update to Eclipse 3.5 and GWT 1.7 -> problem
That's part of our plugin as well, its not there since it is App Engine specific. On Fri, Aug 7, 2009 at 11:09 AM, lumo wrote: > probably from > com.google.appengine.eclipse.core_1.1.0.v200907291526.jar > > ? > > > > -- 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: How can one module initialize servlets that exist in a dependent module?
bump. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: update to Eclipse 3.5 and GWT 1.7 -> problem
hmm ok. i'm off for weekend -> check back on monday! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: update to Eclipse 3.5 and GWT 1.7 -> problem
> the Instantiations plugin does not support any Run As features http://download.instantiations.com/DesignerDoc/continuous/latest/docs/html/gwt/application_launching.html I beg to differ. :-) On Fri, Aug 7, 2009 at 11:00 AM, lumo wrote: > the Instantiations plugin does not support any Run As features, > it creates a UI and generates Java native code, nothing else. > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: update to Eclipse 3.5 and GWT 1.7 -> problem
eh?! i'm using it now for more than half a year and never saw that Run As! GWT != GWT :) shame on me - sorry for the hassle! 2009/8/7 Isaac Truett > > > the Instantiations plugin does not support any Run As features > > > http://download.instantiations.com/DesignerDoc/continuous/latest/docs/html/gwt/application_launching.html > > I beg to differ. :-) > > > > On Fri, Aug 7, 2009 at 11:00 AM, lumo wrote: > > the Instantiations plugin does not support any Run As features, > > it creates a UI and generates Java native code, nothing else. > > > > > > > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
At new item to a list at each position
Hi, I have a list, which items are divs, and want the user to add new items at any position. So if there are 2 item there have to be 3 button, one before the first, one between both and one after the last. Can somebody tell me how to create this "array" of buttons. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Future of GWT
I don't think that is a real concern given the direction Google's OS is going with apps seemingly being RIAs. If GWT became unpopular then yeah that be an issue but I assume that means something better came along so why would you be using GWT? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Timer.schedule()
schedule(i) calls cancel() so cancel() isn't necessary if you are rescheduling Ian http://examples.roughian.com 2009/8/7 Rohit Bansal > > No it is not same. > timer.schedule(x); -- will not cancel previous timer if applied. > > timer.cancel(); > > timer.schedule(x); -> it will cancel previous timer if any > > > On Aug 6, 9:11 pm, Radu Grigore wrote: > > Is { timer.schedule(x); } equivalent to { timer.cancel(); > > timer.schedule(x); } ? > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 can one module initialize servlets that exist in a dependent module?
What do the servlet and serlet-mapping tags say for MyLoginModule? I ran into something like this integrating several jars. Although the web.xml in MyLoginModule may have used /myloginmodule/ loginServices, in MyApp's web.xml it must read /myapp/loginServices. On Aug 6, 4:59 pm, jreue wrote: > I have one Eclipse project (a gwt module) that's sole purpose is to > provide user authentication. It has client widgets for creating/ > editing users as well as logging in/out. It also has a servlet that > communicates with a MySQL database. All this functionality is in that > project, lets call 'MyLoginModule'. > > This project is generic enough to be consumed by my other project in > which i need the user management/authentication features. > > Lets say my other project is called 'MyApp' > > In Eclipse I edit the build path of 'MyApp' and add the > 'MyLoginModule' project. > I modified the MyApp.gwt.xml file and added name='org.blah.MyLoginModule.myLoginModule'/> > > Now in my entryPoint class of MyApp, I am able to access classes from > the project MyLoginModule. So I add something like > getRoot().get().add(new LoginWidget()); > > I run the 'MyApp' project. > I see the login widget. > Everything looks good, I have one project depending on another module > i created. > > I enter my credentials and click login. > Here at takes the entered credentials and is suppose to communicate > with the servlet thats in the 'MyLoginModule' project. > > I get an error concerning the request URI for the servlet is not > found. This makes sense because the the servlet mapping is in my > 'MyLoginModel' package, not 'MyApp' project. > > I tried taking the servlet mapping from MyLoginModule and putting it > in the web.xml of MyApp, but I get an error on startup complaining it > cannot find the class to my servlet implementation. > > I tried taking that out and putting the mapping in the MyApp.gwt.xml > file. I did not get an error here, but it then complained that it was > not in the web.xml file. I put it in both places. > > It still does now work properly. > > I seem to be missing something depending on another module. I suppose > the main question is, 'How can the MyApp project properly initialize > the servlet mappings defined in the dependent MyLoginModule project'? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Future of GWT
Additionally, GWT is open-source, so if Google stopped supporting it the community could continue to develop the code. On Aug 7, 11:13 am, Frank Stallone wrote: > I don't think that is a real concern given the direction Google's OS > is going with apps seemingly being RIAs. > > If GWT became unpopular then yeah that be an issue but I assume that > means something better came along so why would you be using GWT? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Using XML configuration with GWT
Hello, I try to implement a mechanism which loads informations from an XML file in order to dynamically loads classes (using information of this file) within one of my classes of my GWT application. My idea is to externalize this aspect from my code... First of all, I wonder if this approach is possible with GWT? Moreover, is it possible to use the generator feature of GWT to achieve that? I would like to dynamically generate a configuration class basing the XML configuration file. This class would be then executing at my application startup. Thanks for your help! Thierry --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Future of GWT
Unless you write in the native language of your application container and remain fully versed in the variety and upgrades, you are in this same position regardless of your choice of library/compiler/ environment. If you write apps using Java and suddenly the complier stopped being compatible with some future version of Windows, you'd be forced with a rewrite. If you use JQuery as a javascript library, you are counting on them to remain current with browser variations.. It's really an age old problem that is best solved by looking at the company/organization behind it (Franks point) and other attributes (like open source, Tonys point). My .02 USD. On Aug 7, 10:16 am, Tony wrote: > Additionally, GWT is open-source, so if Google stopped supporting it > the community could continue to develop the code. > > On Aug 7, 11:13 am, Frank Stallone wrote: > > > > > I don't think that is a real concern given the direction Google's OS > > is going with apps seemingly being RIAs. > > > If GWT became unpopular then yeah that be an issue but I assume that > > means something better came along so why would you be using GWT?- 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: size of TextBox in GWT
It may be whatever container/panel that you have text box in is overriding the size. Such are the joys of HTML and CSS. On Aug 7, 8:51 am, Tobe wrote: > @Michael > I want to change the size and not the maxlength of the TextBox > > Looks like setSize() and setPixelSize() aren't changing the number of > visual characters, too. > > On Aug 7, 3:34 am, Michael W wrote: > > > user TextBox method setMaxLength(...) > > > On Aug 6, 2:59 pm,Tobe wrote: > > > > Hi, > > > how do I set the size parameter of a HTML input element with > > > type="text" for a TextBox in GWT? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Future of GWT
Thank you for your input, guess you're right, I'm overly concerned with this. I really enjoy working with GWT, I hope Google and the community keep up this good work. On Aug 7, 5:38 pm, mikedshaffer wrote: > Unless you write in the native language of your application container > and remain fully versed in the variety and upgrades, you are in this > same position regardless of your choice of library/compiler/ > environment. If you write apps using Java and suddenly the complier > stopped being compatible with some future version of Windows, you'd be > forced with a rewrite. If you use JQuery as a javascript library, you > are counting on them to remain current with browser variations.. It's > really an age old problem that is best solved by looking at the > company/organization behind it (Franks point) and other attributes > (like open source, Tonys point). > > My .02 USD. > > On Aug 7, 10:16 am, Tony wrote: > > > Additionally, GWT is open-source, so if Google stopped supporting it > > the community could continue to develop the code. > > > On Aug 7, 11:13 am, Frank Stallone wrote: > > > > I don't think that is a real concern given the direction Google's OS > > > is going with apps seemingly being RIAs. > > > > If GWT became unpopular then yeah that be an issue but I assume that > > > means something better came along so why would you be using GWT?- 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: How can one module initialize servlets that exist in a dependent module?
I see. So it is 'possible' to have one module depend on another module that has servlets in it correct? I was afraid I was going in a completely incorrect direction in my design... Now as far as I understand, in earlier versions of GWT, the servlet mapping was put in the gwt.xml file, and now we should put it in the web.xml. Am I correct on this? On Aug 7, 11:15 am, Thad wrote: > What do the servlet and serlet-mapping tags say for MyLoginModule? I > ran into something like this integrating several jars. Although the > web.xml in MyLoginModule may have used /myloginmodule/ > loginServices, in MyApp's web.xml it must read pattern>/myapp/loginServices. > > On Aug 6, 4:59 pm, jreue wrote: > > > I have one Eclipse project (a gwt module) that's sole purpose is to > > provide user authentication. It has client widgets for creating/ > > editing users as well as logging in/out. It also has a servlet that > > communicates with a MySQL database. All this functionality is in that > > project, lets call 'MyLoginModule'. > > > This project is generic enough to be consumed by my other project in > > which i need the user management/authentication features. > > > Lets say my other project is called 'MyApp' > > > In Eclipse I edit the build path of 'MyApp' and add the > > 'MyLoginModule' project. > > I modified the MyApp.gwt.xml file and added > name='org.blah.MyLoginModule.myLoginModule'/> > > > Now in my entryPoint class of MyApp, I am able to access classes from > > the project MyLoginModule. So I add something like > > getRoot().get().add(new LoginWidget()); > > > I run the 'MyApp' project. > > I see the login widget. > > Everything looks good, I have one project depending on another module > > i created. > > > I enter my credentials and click login. > > Here at takes the entered credentials and is suppose to communicate > > with the servlet thats in the 'MyLoginModule' project. > > > I get an error concerning the request URI for the servlet is not > > found. This makes sense because the the servlet mapping is in my > > 'MyLoginModel' package, not 'MyApp' project. > > > I tried taking the servlet mapping from MyLoginModule and putting it > > in the web.xml of MyApp, but I get an error on startup complaining it > > cannot find the class to my servlet implementation. > > > I tried taking that out and putting the mapping in the MyApp.gwt.xml > > file. I did not get an error here, but it then complained that it was > > not in the web.xml file. I put it in both places. > > > It still does now work properly. > > > I seem to be missing something depending on another module. I suppose > > the main question is, 'How can the MyApp project properly initialize > > the servlet mappings defined in the dependent MyLoginModule project'? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Incubator TableModelHelper only supports Java RPC?
Hi, For those of us who don't use Java RPC: Am I missing something in TableModelHelper that would make it work out-of-the-box with RequestBuilder? By this I mean, among other issues, that the TableModelHelper class only provides an IsSerializable instance of the abstract class Response. It looks like I should write my own Response that does not use Java RPC. Or am I missing something in how to use this TableModelHelper? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Offline GWT Applications
I've tried building a VERY simple GWT project both in Netbeans and Eclipse that contained an RPC service. As SOON as I took the application offline, it couldn't perform an RPC service as simple as returning a string, got the same "check network connection" error. Is there a specific way I have to access the application by URL? Is there a setting I have to enable? If so, what is it? Thanks very much for your time. On Aug 4, 3:51 pm, Dominic Holt wrote: > Yes, everything is on the same machine. The address that displays in > the browser when the application is running ishttp://localhost:8080/AppName/ > > On Aug 4, 3:25 pm, jhulford wrote: > > > > > Is the server on the same machine as as your development environment? > > ie. is this all done locally via RPC to the loopback or localhost > > address? > > > On Aug 4, 12:29 pm, Dominic Holt wrote: > > > > Absolutely, I'd be happy to give more details. I'll try and give a > > > brief overview first, if I'm missing some information you may need > > > please don't hesitate to ask for it. > > > > Essentially I use NetBeans as my IDE, I also have the GWT4NB plugin. > > > It's pretty standard as far as RPC calls go, I have a MainEntryPoint > > > class where all the lovely GUI things happen, and then of course under > > > the client package I have classes called GWTService and > > > GWTServiceAsync. Under the server package I have the Implementation of > > > the service. If I'm online, all the service stuff works just fine. As > > > soon as I unplug the network cable or set IE to "Working Offline" I > > > get the error message: "unable to initiate the asynchronous service > > > invocation -- check the network connection" and quite naturally, none > > > of the RPC stuff works anymore. > > > > When I run the application in the IDE, it deploys on glassfish v3. I > > > also sometimes package up the build and run it outside of the > > > development environment on Tomcat 6.x. Either way, the same problem > > > happens. The glassfish server is on port 8080 and the Tomcat server is > > > on port 80. > > > > Thanks very much for your help, greatly appreciated. > > > > On Aug 4, 10:01 am, jhulford wrote: > > > > > I do development work all the time using GWT and a local server > > > > without any internet access. My job had all internet traffic blocked > > > > over the VPN I work over for the longest time too so I can pretty > > > > definitively say that bog standard GWT RPC does not require any > > > > internet access to function. I have a tomcat instance running on my > > > > local machine and a GWT app deployed to it and have no problem doing > > > > RPC calls to the tomcat server without any access to the internet. > > > > > How exactly do you have your project set up? Maybe some more > > > > information would help. > > > > > - Show quoted text -- Hide quoted text - > > > - Show quoted text -- 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: Looking for feedback and contributors for GTW-based project
Hello Nurlan, > I think you'll have problem with indexing site by search crawlers. > With javascript off, i see page titles only. It is not a bug. You probably see links only, when looking at "perspective" pages - those that have several windows inside. We placed content only on the pages, responsible for one window, to prevent doubling of content, which is not loved by browsers. Please try e.g. this URL: http://www.google.com/search?q=Andrey+softaria+level to ensure that google was able to index it. > Also i would be glad to see fixed issue 9 and 11. Issue 9 has high prio. While issue 11, I guess will be fixed not very soon. > Thank you for your interesting project! Thank you for your interest --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Offline GWT Applications
On 08/07/2009 11:12 AM, Dominic Holt wrote: > > I've tried building a VERY simple GWT project both in Netbeans and > Eclipse that contained an RPC service. As SOON as I took the > application offline, it couldn't perform an RPC service as simple as > returning a string, got the same "check network connection" error. Is > there a specific way I have to access the application by URL? Is there > a setting I have to enable? If so, what is it? > > Thanks very much for your time. Don't take the browser offline. It sounds like you're accomplishing this via the browser menu. What problem are you trying to solve by setting the browser offline? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: tyring out uibinder
not in the "normal" samples. But in the source code tree. do a search for uibinder and you will find it. On Aug 7, 4:39 pm, CoolDude wrote: > hi, may i know which sample > > dynatable,hello,i18n,json,mail,showcase? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: size of TextBox in GWT
But issn't it better to set the size attribute of the HTML element to have the number of visual characters? How can I do the same in CSS? How do I know how much pixel (width) has one character? On Aug 7, 6:46 pm, Thad wrote: > It may be whatever container/panel that you have text box in is > overriding the size. Such are the joys of HTML and CSS. > > On Aug 7, 8:51 am,Tobe wrote: > > > > > @Michael > > I want to change the size and not the maxlength of the TextBox > > > Looks like setSize() and setPixelSize() aren't changing the number of > > visual characters, too. > > > On Aug 7, 3:34 am, Michael W wrote: > > > > user TextBox method setMaxLength(...) > > > > On Aug 6, 2:59 pm,Tobe wrote: > > > > > Hi, > > > > how do I set the size parameter of a HTML input element with > > > > type="text" for a TextBox in GWT? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How can one module initialize servlets that exist in a dependent module?
I have done what you suggested, but I am getting an html error in my GWT Hosted Mode Console and a stack trace in my Eclipse console. The stack trace is complaining about a ClassNotFoundException. It makes perfect sense why the servlet is not getting invoked because the class cannot be found; my question is really why cant it be found? I am able to use the client side code of my inherited project, but not the server side code. Is there anything special/extra I have to do? In Eclipse, the MyApp project has a project dependency on the MyLoginModule project. I know this works because I dont get designTime/ compileTime errors when referencing the client widgets in the dependent project. I checked the runtime source and classpath and they both are including the MyLoginModule project Does it expect the dependent project to be jarred up in the MyApp WEB-INF/lib forder or something? I'm not ready for any deployment so I'd rather build/run off of source rather than a jar. Here are my gwt.xml and web.xml settings MyApp.gwt.xml contains: -- MyApp's web.xml contains: LoginModule org.reue.loginmodule.server.LoginModuleServiceImpl LoginModule /loginintegration/login -- LoginModule's web.xml contains: LoginModule org.reue.loginmodule.server.LoginModuleServiceImpl LoginModule /loginmodule/login I am getting the following html error in the GWT Hosted Mode Browser HTTP ERROR: 503 SERVICE_UNAVAILABLE RequestURI=/Loginintegration.html Powered by jetty:// -- I am getting the following stack trace in my Eclipse console: Aug 7, 2009 7:47:57 PM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: EXCEPTION java.lang.ClassNotFoundException: org.reue.loginmodule.server.LoginModuleServiceImpl at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:316) at com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass (IsolatedAppClassLoader.java:142) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.mortbay.util.Loader.loadClass(Loader.java:91) at org.mortbay.util.Loader.loadClass(Loader.java:71) at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:73) at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java: 233) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at org.mortbay.jetty.servlet.ServletHandler.initialize (ServletHandler.java:612) at org.mortbay.jetty.servlet.Context.startContext(Context.java:139) at org.mortbay.jetty.webapp.WebAppContext.startContext (WebAppContext.java:1218) at org.mortbay.jetty.handler.ContextHandler.doStart (ContextHandler.java:500) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java: 448) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerWrapper.doStart (HandlerWrapper.java:117) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerWrapper.doStart (HandlerWrapper.java:117) at org.mortbay.jetty.Server.doStart(Server.java:217) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at com.google.appengine.tools.development.JettyContainerService.startContainer (JettyContainerService.java:152) at com.google.appengine.tools.development.AbstractContainerService.startup (AbstractContainerService.java:116) at com.google.appengine.tools.development.DevAppServerImpl.start (DevAppServerImpl.java:218) at com.google.appengine.tools.development.gwt.AppEngineLauncher.start (AppEngineLauncher.java:86) at com.google.gwt.dev.HostedMode.doStartUpServer(HostedMode.java:365) at com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:590) at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:397) at com.google.gwt.dev.HostedMode.main(HostedMode.java:232) Aug 7, 2009 7:47:57 PM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: failed LoginManager javax.servlet.UnavailableException: org.reue.loginmodule.server.LoginModuleServiceImpl at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:79) at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java: 233) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at org.m
Re: Hosted mode doesn't work at all on my Vista notebook under Eclipse
Weird. I was planing to take a closer look after vacation to see if my hosts file was gone or something. But mine exists, only with the typo shown in the post you linked to. Weird that i dont have problems using tomcat with a broken hosts file. Oh well. Thanks for the post. (switching the :: to # did fix it) On Aug 4, 8:09 am, Rajeev Dayal wrote: > See the following > thread:http://groups.google.com/group/google-appengine-java/browse_thread/th... > > There have been some instances of Vista shipping with a hosts file that does > not properly map localhost. > > Rajeev > > On Tue, Aug 4, 2009 at 2:35 AM, Trevis wrote: > > > Well that was a hellish 3 hours of my life that i'll never get back. > > For some reason localhost isn't working on my notebook with jetty. > > 127.0.0.1 though does work with it. > > > On Aug 4, 12:34 am, Trevis wrote: > > > Ok, so i compiled it, downloaded tomcat 6 and ran the tests there and > > > it works no problem. Why isnt jetty responding?!?!?! > > > > On Aug 3, 11:58 pm, Trevis wrote: > > > > > Ok, it has nothing to do with eclipse because the ant > > launchedhostedmodedoesn't work either. This is so frustrating! > > > > > On Aug 3, 11:36 pm, Trevis wrote: > > > > > > I've been developing pretty heavily in GWT on my desktop for the past > > > > > month, tomorrow i'm going on a trip and trying to get my notebook > > > > > ready to do builds. For the life of me i can not get GWT to work > > with > > > > > it. > > > > > > I tried to get it working with MyEclipse 6.01 (Eclipse 3.3.1) and it > > > > > didnt work so i upgraded to MyEclipse 7.5 (Eclipse 3.4.2) i added the > > > > > latest GWT version and eclipse plugin and it still does the same > > > > > thing. > > > > > > I can create projects, compile them but i can not launchhostedmode. > > > > > The Jetty browser andhostedserver launch but i get an error in the > > > > > browser and nothing but a simple message in Jetty > > > > > > "Starting Jetty on port 8080" (with two success messages beneath it) > > > > > > What is going on? I don't think that jetty is accepting requests. > > > > > This is on Windows Vista 32 with IE8. Things were flawless on my > > > > > desktop so i'm at a loss. > > > > > > I can create a project and compile it but if i launchhostedmodei > > > > > just get an error in the browser. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Servlet in Jar
I have the same issue and I posted it here yesterday. My module that contains the service works fine standalone but the service is not being initialized (because of the ClassNotFoundException) when I import the module and expect to use it i another project. I took a look at the example posted by Kamal, but that example has nothing to do with inheriting a module containing the servlet. Any current insight on this on? On Aug 6, 10:34 pm, Kamal Chandana Mettananda wrote: > This is a tutorial with an example of using Servlets with GWT. Hope you'll > get the issue resolved. > > http://lkamal.blogspot.com/2008/09/java-gwt-servlets-web-app-tutorial... > > On Thu, Aug 6, 2009 at 7:58 PM, Patrik wrote: > > > Hi, > > I have a usermodule that I would like to have in a jar-file and > > include in other projects, when I try to test I get > > java.lang.ClassNotFoundException: > > se.riket.gwt.user.server.rpc.impl.LoginServiceImpl. That's the login > > servlet class, > > in my web.xml I have > > > > > loginService > > se.riket.gwt.user.server.rpc.impl.LoginServiceImpl > servlet-class> > > > > > > > loginService > > /yeti/login > > > > > I have added my jar in the classpath and in the *.gwt.xml file. > > > Anyone with an idea? > > > BR > > Patrik --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Offline GWT Applications
It matters little whether I take the browser offline or rip the ethernet cable out of the back of the computer, either way RPC calls stop working it seems. I am interested to know if anyone has a project they have setup currently that is making RPC calls offline. Several people said they were able to accomplish this and it'd be awesome if someone could point out what they had to do to make these RPC calls without an internet connection. Thanks again for taking the time to reply. On Aug 7, 3:03 pm, Jeff Chimene wrote: > On 08/07/2009 11:12 AM, Dominic Holt wrote: > > > > > I've tried building a VERY simple GWT project both in Netbeans and > > Eclipse that contained anRPCservice. As SOON as I took the > > applicationoffline, it couldn't perform anRPCservice as simple as > > returning a string, got the same "check network connection" error. Is > > there a specific way I have to access the application by URL? Is there > > a setting I have to enable? If so, what is it? > > > Thanks very much for your time. > > Don't take the browser offline. It sounds like you're accomplishing > this via the browser menu. > > What problem are you trying to solve by setting the browseroffline? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Offline GWT Applications
On 08/07/2009 03:35 PM, Dominic Holt wrote: > > It matters little whether I take the browser offline or rip the > ethernet cable out of the back of the computer, either way RPC calls > stop working it seems. I am interested to know if anyone has a project > they have setup currently that is making RPC calls offline. Several > people said they were able to accomplish this and it'd be awesome if > someone could point out what they had to do to make these RPC calls > without an internet connection. > > Thanks again for taking the time to reply. As I and others have observed, there is nothing special. There is no magic switch. I hoped there was a clue when you said "As SOON as I took the application offline.." Apparently not. I do recall you saying that you observed identical behavior after disconnecting the network cable. To reiterate my (unanswered) question: what problem are you trying to solve? > > On Aug 7, 3:03 pm, Jeff Chimene wrote: >> On 08/07/2009 11:12 AM, Dominic Holt wrote: >> >> >> >>> I've tried building a VERY simple GWT project both in Netbeans and >>> Eclipse that contained anRPCservice. As SOON as I took the >>> applicationoffline, it couldn't perform anRPCservice as simple as >>> returning a string, got the same "check network connection" error. Is >>> there a specific way I have to access the application by URL? Is there >>> a setting I have to enable? If so, what is it? >> >>> Thanks very much for your time. >> >> Don't take the browser offline. It sounds like you're accomplishing >> this via the browser menu. >> >> What problem are you trying to solve by setting the browseroffline? > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Cannot compile gadget: GadgetGenerator threw org.w3c.dom.DOMException: NAMESPACE_ERR
Eric, thank you for your reply. The thing is that I encounter this issue by trying to work around the Xerces class issue. I had encountered the Xerces class issue with Google GWT Gadget library file described at http://groups.google.com/group/google-appengine-java/browse_frm/thread/145d950d2606bef7/d5c00a71468a08fb?hl=en&q=Gears,+Gadget+API+libraries+giving+error+with+GWT#d5c00a71468a08fb. Thereby, as I wrote, I picked up the gwt-gadgets-noredist.jar from http://gwt-google-apis.googlecode.com/files/gwt-gadgets-1.0.3.tar.gz, which does not contain Xerces classes (And I confirmed that gwt- gadgets-noredist.jar does not contain Xerces classes.) So, I had good expectation of that it would compile without a problem. But.. I got this issue. Regards On Aug 6, 7:51 pm, Eric Ayers wrote: > This error I've seen caused by a conflict in Xerces distributed with > gwt-gadget.jar. Try using the gwt-gadget-noredist.jar file. It > doesn't bundle the Xerces library. > > > > On Thu, Aug 6, 2009 at 10:36 PM, Art wrote: > > > Hello, > > > I'm blocked from trying to have fun with Google gadget and GWT. ;-) > > I got the exception like below in trying to compile a simple Google > > gadget on Eclipse (Galileo). > > I highly appreciate if someone can give me the crew of this cause. > > Regards. > > > Compiling module com.inetools.igadgetexperiment2.IGadgetExperiment2 > > Computing all possible rebind results for > > 'com.inetools.igadgetexperiment2.client.IGadgetExperiment2' > > Rebinding > > com.inetools.igadgetexperiment2.client.IGadgetExperiment2 > > Invoking > class='com.google.gwt.gadgets.rebind.GadgetGenerator'/> > > [ERROR] Generator > > 'com.google.gwt.gadgets.rebind.GadgetGenerator' threw threw an > > exception while rebinding > > 'com.inetools.igadgetexperiment2.client.IGadgetExperiment2' > > org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create > > or change an object in a way which is incorrect with regard to > > namespaces. > > at com.sun.org.apache.xerces.internal.dom.ElementNSImpl.setName > > (ElementNSImpl.java:105) > > at com.sun.org.apache.xerces.internal.dom.ElementNSImpl. > > (ElementNSImpl.java:80) > > at > > com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.createElementNS > > (CoreDocumentImpl.java:2084) > > at > > com.sun.org.apache.xerces.internal.dom.CoreDOMImplementationImpl.createDocument > > (CoreDOMImplementationImpl.java:268) > > > Here's the Google gadget class (IGadgetExperiment2.java) I try to > > compile: > > package com.inetools.igadgetexperiment2.client; > > > import com.google.gwt.event.dom.client.ClickEvent; > > import com.google.gwt.event.dom.client.ClickHandler; > > import com.google.gwt.gadgets.client.Gadget; > > import com.google.gwt.gadgets.client.UserPreferences; > > import com.google.gwt.gadgets.client.Gadget.ModulePrefs; > > import com.google.gwt.user.client.Window; > > import com.google.gwt.user.client.ui.Button; > > import com.google.gwt.user.client.ui.RootPanel; > > > @ModulePrefs( title = "iGoogle Gadget Experiement2", author = "Art", > > author_email = "atozof...@gmail.com") > > public class IGadgetExperiment2 extends Gadget { > > > �...@override > > protected void init(UserPreferences preferences) { > > Button simpleButton = new Button("SimpleGadget"); > > simpleButton.addClickHandler( > > new ClickHandler() { > > �...@override > > public void onClick(ClickEvent > > event) { > > Window.alert("Hello World!"); > > } > > } > > ); > > RootPanel.get().add(simpleButton); > > } > > } > > > And here's the IGadgetExperiment2.gwt.xml file: > > > > > EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro- > > source/core/src/gwt-module.dtd"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > class='com.inetools.igadgetexperiment2.client.IGadgetExperiment2'/> > > > > > gwt-gadgets-noredist.jar > > fromhttp://gwt-google-apis.googlecode.com/files/gwt-gadgets-1.0.3.tar.gz > > has been added as the library as well as GWT 1.7 SDK (and AppEngine > > 1.2.2 SDK). > > > Here's the web.xml: > > > > > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" > > "http://java.sun.com/dtd/web-app_2_3.dtd";> > > > > > > > > > > > > > IGadgetExperiment2.html > > > > > > > > Environment: > > XP SP3 > > Google Plugin for Eclipse 3.5 1.1.0.v200907291526 > > eclipse.buildId=I20090611-1540 > > java.version=1.6.0_13 > > java.vendor=Sun Microsystems Inc. > > BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US > > Framework arguments: -product org.eclipse.epp.package.jee.product > > Command-line arguments: -os win32 -ws win32 -arch x86 -product > > org.ec
NumberFormat.getCurrencyFormat() doesn't work with all currencies
I'm using GWT 1.7 and attempting to format some numbers to different types of currency. When calling NumberFormat.getCurrencyFormat() my code will throw an exception, depending on the string passed. The only strings that work are USD, EUR, GBP, JPY. Javadoc for NumberFormat says it uses the currency codes found in com.google.gwt.i18n.client.constants.CurrencyCodeMapConstants.properties, however it is actually using the following function from com.google.gwt.i18n.client.impl.CurrencyList: protected native void loadCurrencyMap() /*-{ th...@com.google.gwt.i18n.client.impl.currencylist::dataMap = { ":USD": [ "USD", "$", 2 ], ":EUR": [ "EUR", "€", 2 ], ":GBP": [ "GBP", "UK£", 2 ], ":JPY": [ "JPY", "¥", 0 ], }; }-*/; --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Cannot compile gadget: GadgetGenerator threw org.w3c.dom.DOMException: NAMESPACE_ERR
I'm not sure why this would fix the problem you're seeing, but have you tried rebuilding the gadgets distribution from SVN trunk? I think if you get past this problem, you're doing to find another one since you are using GWT 1.6: See issue 275: http://code.google.com/p/gwt-google-apis/issues/detail?id=275 On Fri, Aug 7, 2009 at 8:31 PM, Art wrote: > > Eric, thank you for your reply. > > The thing is that I encounter this issue by trying to work around the > Xerces class issue. > I had encountered the Xerces class issue with Google GWT Gadget > library file described at > http://groups.google.com/group/google-appengine-java/browse_frm/thread/145d950d2606bef7/d5c00a71468a08fb?hl=en&q=Gears,+Gadget+API+libraries+giving+error+with+GWT#d5c00a71468a08fb. > Thereby, as I wrote, I picked up the gwt-gadgets-noredist.jar from > http://gwt-google-apis.googlecode.com/files/gwt-gadgets-1.0.3.tar.gz, > which does not contain Xerces classes (And I confirmed that gwt- > gadgets-noredist.jar does not contain Xerces classes.) > So, I had good expectation of that it would compile without a problem. > But.. I got this issue. > > Regards > > > > On Aug 6, 7:51 pm, Eric Ayers wrote: >> This error I've seen caused by a conflict in Xerces distributed with >> gwt-gadget.jar. Try using the gwt-gadget-noredist.jar file. It >> doesn't bundle the Xerces library. >> >> >> >> On Thu, Aug 6, 2009 at 10:36 PM, Art wrote: >> >> > Hello, >> >> > I'm blocked from trying to have fun with Google gadget and GWT. ;-) >> > I got the exception like below in trying to compile a simple Google >> > gadget on Eclipse (Galileo). >> > I highly appreciate if someone can give me the crew of this cause. >> > Regards. >> >> > Compiling module com.inetools.igadgetexperiment2.IGadgetExperiment2 >> > Computing all possible rebind results for >> > 'com.inetools.igadgetexperiment2.client.IGadgetExperiment2' >> > Rebinding >> > com.inetools.igadgetexperiment2.client.IGadgetExperiment2 >> > Invoking > > class='com.google.gwt.gadgets.rebind.GadgetGenerator'/> >> > [ERROR] Generator >> > 'com.google.gwt.gadgets.rebind.GadgetGenerator' threw threw an >> > exception while rebinding >> > 'com.inetools.igadgetexperiment2.client.IGadgetExperiment2' >> > org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create >> > or change an object in a way which is incorrect with regard to >> > namespaces. >> > at com.sun.org.apache.xerces.internal.dom.ElementNSImpl.setName >> > (ElementNSImpl.java:105) >> > at com.sun.org.apache.xerces.internal.dom.ElementNSImpl. >> > (ElementNSImpl.java:80) >> > at >> > com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.createElementNS >> > (CoreDocumentImpl.java:2084) >> > at >> > com.sun.org.apache.xerces.internal.dom.CoreDOMImplementationImpl.createDocument >> > (CoreDOMImplementationImpl.java:268) >> >> > Here's the Google gadget class (IGadgetExperiment2.java) I try to >> > compile: >> > package com.inetools.igadgetexperiment2.client; >> >> > import com.google.gwt.event.dom.client.ClickEvent; >> > import com.google.gwt.event.dom.client.ClickHandler; >> > import com.google.gwt.gadgets.client.Gadget; >> > import com.google.gwt.gadgets.client.UserPreferences; >> > import com.google.gwt.gadgets.client.Gadget.ModulePrefs; >> > import com.google.gwt.user.client.Window; >> > import com.google.gwt.user.client.ui.Button; >> > import com.google.gwt.user.client.ui.RootPanel; >> >> > @ModulePrefs( title = "iGoogle Gadget Experiement2", author = "Art", >> > author_email = "atozof...@gmail.com") >> > public class IGadgetExperiment2 extends Gadget { >> >> > �...@override >> > protected void init(UserPreferences preferences) { >> > Button simpleButton = new Button("SimpleGadget"); >> > simpleButton.addClickHandler( >> > new ClickHandler() { >> > �...@override >> > public void onClick(ClickEvent >> > event) { >> > Window.alert("Hello World!"); >> > } >> > } >> > ); >> > RootPanel.get().add(simpleButton); >> > } >> > } >> >> > And here's the IGadgetExperiment2.gwt.xml file: >> > >> > > > EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro- >> > source/core/src/gwt-module.dtd"> >> > >> > >> > >> >> > >> > >> > >> > >> > >> > >> >> > >> > >> >> > >> > > > class='com.inetools.igadgetexperiment2.client.IGadgetExperiment2'/> >> > >> >> > gwt-gadgets-noredist.jar >> > fromhttp://gwt-google-apis.googlecode.com/files/gwt-gadgets-1.0.3.tar.gz >> > has been added as the library as well as GWT 1.7 SDK (and AppEngine >> > 1.2.2 SDK). >> >> > Here's the web.xml: >> > >> > > > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" >> > "http://java.sun.
Re: how to load a url in a GWT application
Thnks for help dear Manuel. On Aug 2, 9:04 pm, Manuel Carrasco Moñino wrote: > So, use an iframe to load the second application: > > Frame frame = new Frame("http://path_to_your_second_app";); > > Manolo Carrasco > > > > On Sun, Aug 2, 2009 at 6:55 AM, Saeed Zarinfam wrote: > > > Hi Manuel. > > I build a GWT application (called app A) and then i compile it and > > deploy it on the server this application has a URL in server. > > now in another GWT application i want to load deployed version of app > > A into a panel (or something). > > > how can i do that ? > > > thanks a million. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
EXT GWT ComboxBox
I am using a EXT GWT ComboBox. I want to show something like for every change of county i want to populate State . I think i need to add some listener events to capture the selected index . Can anyone show me a sample of how to do a country state dropdown in GWT . I also want to know how to setSelectedINdex of the County down to some default value in the xombox box I just got the county populated. This is my code ComboBox combo = new ComboBox< CountryList >(); combo.setEmptyText("Select a Country ..."); combo.setDisplayField("key"); combo.setWidth(150); combo.setStore(countryValues); combo.setTypeAhead(true); combo.setTriggerAction(TriggerAction.ALL); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
How can i load Gadget content (JavaScript ) in my GWT application
Hi I have been write a gadget with some JavaScript files. i want to load content of this gadget in my gwt application how can i do it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Offline GWT Applications
Hi This is a complete guess with little to back it up, but is there some XML generated somewhere as part of the RPC call that is validated against a schema on the 'net? Paul Sent from my Archimedes A3000 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---