Re: Buttons with Round Edges
It doesn't look like the gwt provided factory buttons have corner options (even though I thought they did). My advice would be to get your buttons working as you like outside of GWT and then build your own widget using some type of gridded panel like a FlexTable. It really isn't that hard to convert your html button to GWT once you have it worked out. On Sep 6, 11:33 pm, abhiram wrote: > Hi all, > > Which is the best method to implement a button with Round edges? I > was trying to implement a CSS code where I can set the corner images. > But i was just able to insert the image at only one corner. Can > someone send me a sample code where 4 different images are set for the > 4 corners? > > regards, > Abhiram --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Renaming war folder in GWT project
There is nothing magic about the 'war' folder name with respect to the ant build file. You'd need to update the names in that file accordingly. If you use the eclipse plug-in then I'm guessing it is specifically looking for the war folder so changing the name will likely break things. There might be an option to change this but I don't have much experience with the plug-in. On Sep 7, 6:34 am, smiletolead wrote: > Hi all, > One question regarding the project structure in GWT 1.6 or greater. > I want to rename 'war' folder. Can this folder be renamed to some > other name, say, WebResources? Will the hosted browser work properly? > I am using Eclipse with the GWT plugin > > Thanks, > Ganesh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Intermittent StatusCodeException 500
test one of your pages by moving to the webserver rather than app if the problem still exists then you need to look into code otherwise its looks like a config problem On Mon, Sep 7, 2009 at 5:02 PM, krokodil wrote: > > Hi everyone, we experience intermittent StatusCodeException 500 errors > on our production GWT application. > It would seem to only happen when accessing the application from > behind a firewall. > > When investigating any logs on the server we find nothing, no > exceptions thrown! > > And usually by simply re-running the query from the client, the next > result would be successfull. > Obviously this behaviour is of huge concern in our production > environment. > > We were thinking of building a retry-handler, something that when this > status code gets returned from the server RPC call that we > automatically retry the service callany views on this? > > Have any of you experienced this and how did you solve it? > > Any comments appreciated! > > Cheers - Daniel Koch > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: chrome like tabs: is it possible using GWT?
yes it is very much possible with GWT to create tabs in your applications this will be through widgets , create a section with a section object and create a widget and a listener for that tab object On Tue, Sep 8, 2009 at 7:38 AM, Trupti Sawant wrote: > > chrome like tabs: is it possible using GWT or one of its extension? > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT RPC Problem with JDP
This is no RPC issue but it is the thread invokation it seems all yours threads are busy and on top of that it is not able to find the object you are riding the data on , check your object response and check your pooling first On Mon, Sep 7, 2009 at 6:08 PM, webnazar wrote: > > Mudassar Nazar : Software Engineer > > This is not only a problem, but also a bug issue, i was trying from > app the possiblities of trial and error method for ruuning the program > but it is failed. > > Sep 7, 2009 3:32:55 PM > com.google.appengine.tools.development.ApiProxyLocalImpl log > SEVERE: [1252317775578000] javax.servlet.ServletContext log: Exception > while dispatching incoming RPC call > com.google.gwt.user.client.rpc.SerializationException: Type > 'org.datanucleus.store.appengine.query.StreamingQueryResult' was not > included in the set of types which can be serialized by this > SerializationPolicy or its Class object could not be loaded. For > security purposes, this type will not be serialized. >at > > com.google.gwt.user.server.rpc.impl.StandardSerializationPolicy.validateSerialize > (StandardSerializationPolicy.java:83) >at > > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize > (ServerSerializationStreamWriter.java:591) >at > > com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject > (AbstractSerializationStreamWriter.java:129) >at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter > $ValueWriter$8.write(ServerSerializationStreamWriter.java:146) >at > > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue > (ServerSerializationStreamWriter.java:530) >at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:573) >at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess > (RPC.java:441) >at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse > (RPC.java:529) >at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall > (RemoteServiceServlet.java:166) >at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost > (RemoteServiceServlet.java:86) >at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) >at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) >at > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: > 487) >at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter > (ServletHandler.java:1093) >at > com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter > (TransactionCleanupFilter.java:43) >at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter > (ServletHandler.java:1084) >at com.google.appengine.tools.development.StaticFileFilter.doFilter > (StaticFileFilter.java:121) >at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter > (ServletHandler.java:1084) >at org.mortbay.jetty.servlet.ServletHandler.handle > (ServletHandler.java:360) >at org.mortbay.jetty.security.SecurityHandler.handle > (SecurityHandler.java:216) >at org.mortbay.jetty.servlet.SessionHandler.handle > (SessionHandler.java:181) >at org.mortbay.jetty.handler.ContextHandler.handle > (ContextHandler.java:712) >at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: > 405) >at > com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle > (DevAppEngineWebAppContext.java:54) >at org.mortbay.jetty.handler.HandlerWrapper.handle > (HandlerWrapper.java:139) >at com.google.appengine.tools.development.JettyContainerService > $ApiProxyHandler.handle(JettyContainerService.java:313) >at org.mortbay.jetty.handler.HandlerWrapper.handle > (HandlerWrapper.java:139) >at org.mortbay.jetty.Server.handle(Server.java:313) >at > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: > 506) >at org.mortbay.jetty.HttpConnection$RequestHandler.content > (HttpConnection.java:844) >at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) >at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205) >at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) >at org.mortbay.io.nio.SelectChannelEndPoint.run > (SelectChannelEndPoint.java:396) >at org.mortbay.thread.BoundedThreadPool$PoolThread.run > (BoundedThreadPool.java:442) > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: File Downloads not working with firefox and Opera
Isn't anyone else having a similar problem to the one I have --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: application is getting hanged when button is clicked
Hi Kinjal, thanks for the valuable suggestion. >Onclick of button second time,just clear the grid or the parent elements and > load the grid again RootPanel.get().clear(); is that you have suggested? for clearing the grid? Because I have used in the following way. RootPanel.get().clear(); RootPanel.get("slot1").clear(); RootPanel.get("slot2").clear(); RootPanel.get("slot1").add(mywidget); Is this way only are u suggesting? thanks bhanu On Sep 6, 12:26 pm, Kinjal Khandhar wrote: > Hi, > Ideally you should not clear the RootPanel contents. > > I think the problem is its going into infinite loop -hence the problem. > > Onclick of button second time,just clear the grid or the parent elements and > load the grid again which can be done by creating the design of a grid in a > function and if possible use remove function if you want to destroy the > original instance completely. > > I had faced the same issue which got cleared. > > Thanks, > Kinjal > > > > On Sun, Sep 6, 2009 at 2:34 AM, bhanu wrote: > > > I have a button called UserList in my application which is used to > > display > > all the users name,role and designation in the grid. When I click the > > button > > first time it displays the grid with the right values. Second time > > when I click > > the same button It is getting hanged the application. thats means > > cursor is showing > > as busy. > > > I have used three div ids. slot1,slot2,slot3.when I click > > the userlist button all the widgets inside the slot1,slot2,slot3 is > > getting cleard. > > Here is I am getting the problem. If I have not used RootPanel.get > > ("slot1").clear() , > > userlistbutton will work fine without hanging the application. But the > > the widgets will not get cleared. > > > so how can I avoid this problem. > > > thanks > > bhanu- 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 -~--~~~~--~~--~--~---
"Embed" GWT widget (hosted on GAE) in external page
Noob question: I've created a simple widget at zenclarus.appspot.com that uses GWT. I'm attaching the widget to id="clarusEmbed" like so: RootPanel.get("clarusEmbed").add(mainPanel); I've read that all I need to do is include the *nocache.js file in my and then have a div with id="clarusEmbed" on the webpage to embed the GWT widget. This isn't working. The .js file is loaded fine but nothing shows up. Is this because the GWT is hosted on Google App Engine? Also note that everything is working fine on zenclarus.appspot.com. I appreciate any help or direction you can give. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
GWT RPC Problem with JDP
Mudassar Nazar : Software Engineer This is not only a problem, but also a bug issue, i was trying from app the possiblities of trial and error method for ruuning the program but it is failed. Sep 7, 2009 3:32:55 PM com.google.appengine.tools.development.ApiProxyLocalImpl log SEVERE: [1252317775578000] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: Type 'org.datanucleus.store.appengine.query.StreamingQueryResult' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized. at com.google.gwt.user.server.rpc.impl.StandardSerializationPolicy.validateSerialize (StandardSerializationPolicy.java:83) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize (ServerSerializationStreamWriter.java:591) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject (AbstractSerializationStreamWriter.java:129) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter $ValueWriter$8.write(ServerSerializationStreamWriter.java:146) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue (ServerSerializationStreamWriter.java:530) at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:573) at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess (RPC.java:441) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse (RPC.java:529) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall (RemoteServiceServlet.java:166) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost (RemoteServiceServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1093) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter (TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at com.google.appengine.tools.development.StaticFileFilter.doFilter (StaticFileFilter.java:121) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle (SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle (SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle (ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle (DevAppEngineWebAppContext.java:54) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:313) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 506) at org.mortbay.jetty.HttpConnection$RequestHandler.content (HttpConnection.java:844) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at org.mortbay.io.nio.SelectChannelEndPoint.run (SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run (BoundedThreadPool.java:442) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
GWT Maps API not loading
Hi all, I'm using: - GWT 1.7.0 - gwt-maps 1.0.4 - GAE 1.2.5 - Eclipse 3.5 with the Google plugin - Sun JDK 1.0.6_16 - linux (Fedora 11) A few weeks ago, I began a project using gwt-maps which worked fine. But somehow it got broken recently. I get the following error in hosted mode: [ERROR] Unable to load module entry point class test.client.Test (see associated exception for details) java.lang.RuntimeException: The Maps API has not been loaded. Is a
chrome like tabs: is it possible using GWT?
chrome like tabs: is it possible using GWT or one of its extension? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
seo and google web toolkit
hey everybody, as every friendly web inhabitant i want that google knows my website and people that are interested in my stuff can find it easily. however, as my first experiments suggest the google bot does not even try to analyze (execute) gwt code (a working test of my concept is at [1]). this can -- on the one hand -- be explained by the very nature of gwt - it is javascript - much like an application that should not be indexed by a search bot by nature. but -- on the other hand -- hey! it is so simple. execute the js, see if it generates a more or less stable DOM, parse the dom and you are done. and both is from google? seems that the GWT hits the same indexing hell flash did. ok. maybe i am wrong here. in my opinion it is really bad news that GWT stuff is not at all analyzed by the google search bot. to come up with a conclusion would involve to sacrifice a lot of GWT coolness. mainly because i have to generate a lot of HTML myself that can be analyzed by search robots. i also wrote about that at [2]. it is especially interesting how [3] did "solve" the "problem". do the experts have any recommendations? thanks! ra! [1] http://scisurfer.com/news [2] http://blog.scisurfer.com/2009/09/gwt-and-seo-concerns.html [3] http://examples.roughian.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Does GWT work in Snow Leopard?
Hi All, I followed the instructions from this page http://wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard but still I get You must use a Java 1.5 runtime to use GWT Hosted Mode on Mac OS X. I see some of you added hacks into the boot strap class. Does google view this seriously and try to release a patch ASAP? Thanks On Sep 3, 7:05 am, Alex Moffat wrote: > I have another work around that involves changing the > BootStrapPlatform class in gwt-dev-mac.jar to remove the check for > java 1.5. If you do this then you can use java 1.6 with the -d32 flag > and it works fine. More details athttp://development.lombardi.com/?p=1012 > > On Aug 31, 6:35 pm, Jim Douglas wrote: > > > > > Hi Sumit, > > > That "workaround" is really not acceptable. Because Apple considers > > the JVM to be part of the operating system, messing in those > > directories amounts to hacking the O/S. It's unsafe, unsupported, and > > can -- and probably will -- arbitrarily drop dead at any time with an > > O/S update. > > > I could easily be missing something important, but it seems like this > > should be a fairly easy thing for you to patch. My understanding is > > that the issue with GWT is that you need a 32-bit JVM, and in Mac OS X > > Leopard, the only way to get a 32-bit JVM is to use Java 5; the > > Leopard Java 6 is 64-bit-only. But in Snow Leopard, you can invoke > > Java 6 with "java -d32 ...", and you will get a 32-bit JVM. Wouldn't > > this work for GWT hosted mode? > > > Regards, > > Jim. > > > On Aug 31, 3:58 pm, Sumit Chandel wrote: > > > > Hi all, > > > Hosted mode will be getting an exciting makeover soon, in the form of > > > Out-Of-Process Hosted Mode (OOPHM). With OOPHM, hosted mode runs as a > > > plugin > > > to your favourite browser so that you can debug with the browser most > > > familiar to you using whichever other debugging tools it offers while at > > > the > > > same time debugging your GWT code in hosted mode as you do now. > > > > OOPHM is currently available in GWT trunk for those who want to give it a > > > try (instructions linked below). > > > > That said, OOPHM solves the problem of requiring 32-bit libraries that > > > exists in other Mac builds where switching out to Java 1.5 was necessary. > > > That means that OOPHM will also work perfectly well for Snow Leopard, or > > > any > > > other platform using any Java libraries, 32-bit or not. > > > > Hopefully the workaround Dean linked to above will get you up and running > > > until OOPHM comes out in the next major release. If that workaround > > > doesn't > > > work, please feel free to reply back and let us know. > > > > Using OOPHM from > > > trunk:http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM > > > > Hope that helps, > > > -Sumit Chandel > > > > On Mon, Aug 31, 2009 at 11:35 AM, mdwarne wrote: > > > > > Hi, > > > > After watching a bunch of Googles GWT videos, and seminar speeches, I > > > > noticed some of the presenters are using Macbooks. > > > > I have to believe they are well aware of this issue. > > > > Mike. > > > > > On Aug 31, 4:04 am, Michael Shantzis wrote: > > > > > The question I have is how high it is on google's list to release a > > > > > version of GWT that runs on snow leopard without any modifications. > > > > > I'm working in an environment where I'm testing jboss (which requires > > > > > java 1.6) and have had to jump through hoops to get my server running > > > > > 1.6 and my GWT client running 1.5. > > > > > > I'm sure they're already aware of this and it's certainly the case > > > > > that all the pieces are out there for them. > > > > > > I'm patiently waiting!!! > > > > > > On Aug 29, 9:21 pm, James wrote: > > > > > > > Hi... I just wanted to add that along with the suggestions on: > > > > > > >http://wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard > > > > > > > I had to rename the "CurrentJDK" symbolic link in > > > > > > > /System/Library/Frameworks/JavaVM.framework/Versions/ > > > > > > > from 1.6.0 to the (newly added) 1.5.0 because it appears that ant > > > > > > was > > > > > > looking at the "CurrentJDK" for its version not the env. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
NumberFormat.getPercentFormat()
I'm using NumberFormat.getPercentFormat() to create a number format for formatting numbers and for parsing strings back into numbers. This works fine for formatting (0.03 gets formatted as 3%), but when I parse the string I'm out by a factor of 100 (3% gets parsed as 3.0). This looks like a bug in the number format to me (a quick scan of the source shows that multiplier is being set to 100 for percentage formats, this is being used by the format method, but not by the parse method). I've searched this forum (and it's archive) and the issue tracker, but can't find any reference to this problem. Has anyone else had similar problems? If so is there a nice workaround (I'm currently using a decorator on the NumberFormat, but it's not particularly clean)? Thanks, Matt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
gwt compiler replace-with for classes that aren't client-side compliant
I'm wondering if there is a facility in the gwt compiler to perform a "replace-with" for classes that aren't gwt client side compliant. For example, I have 2 implementations of DateFormatterFactory. One implementation uses SimpleDateFormat, and the other uses DateTimeFormat. As such, when I construct an implementation, I have to know which side of the wire I'm on, because SimpleDateFormat won't compile in gwt and DateTimeFormat won't run in the JRE. Currently, I have to pass the factory in as a dependency through several layers of constructors, but it would be nice if I could simply write all of my code using SimpleDateFormat implementation, and then have the gwt compiler swap in the gwt client-side implementation at compile time. Honestly, it could be as simple as a find-replace precompiler step that replaces all occurrences of "myproject.server.SimpleDateFormatFactory" with "myproject.client.DateTimeFormatFactory". Another solution that could work, is if you could annotate/comment on a static block or method such that the gwt compiler would ignore it. the replace-with tag won't work, because it requires you to use GWT.create() which doesn't work on the server side. Also, checking to see if you're in hosted mode and if not calling "new SimpleDate..." or "Class.forName..." won't work because the gwt compiler will not compile a class with those statements. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Intermittent StatusCodeException 500
Hi everyone, we experience intermittent StatusCodeException 500 errors on our production GWT application. It would seem to only happen when accessing the application from behind a firewall. When investigating any logs on the server we find nothing, no exceptions thrown! And usually by simply re-running the query from the client, the next result would be successfull. Obviously this behaviour is of huge concern in our production environment. We were thinking of building a retry-handler, something that when this status code gets returned from the server RPC call that we automatically retry the service callany views on this? Have any of you experienced this and how did you solve it? Any comments appreciated! Cheers - Daniel Koch --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
fetching a url from another domain
Dear gwt group, I'd like to fetch the contents of a url located in another domain and print it on the screen. I've pasted code that tries to achieve this using RequestBuilder. The code throws a security exception since you can't grab urls from other domains using RequestBuilder. How do I go about doing what I want to do? cheers --Jacques class LabelInclude extends Label { public LabelInclude(final String url) { super(); final LabelInclude widget = this; try { new RequestBuilder(RequestBuilder.GET, url).sendRequest("", new RequestCallback() { public void onError(Request request, Throwable exception) { widget.setText("failed"); } public void onResponseReceived(Request request, Response response) { if (response.getStatusCode() == 200) { widget.setText(response.getText()); } else { widget.setText("failed"); } } }); } catch (RequestException e) { widget.setText("failed because of:" + e.toString()); } } } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
GWT for IE7
we are developping an OSGI +GWT application. You can see the demo in: http://amebasystems.com/bluetooth-scanning. In Mozilla Firefox it works just fine but there is no way to do it works with IE7. I know that the IE CSS and JS specification is different than Firefox's one, but we really want to optimize my application for IE. Any ideas or suggestions? BR --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: How can I get GWT 2.0
Yeah, I figured it out. I was mistaken. I didn't need GWT2 to get working with GXT 2 On Mon, Sep 7, 2009 at 7:20 PM, Thomas Broyer wrote: > > > > On 7 sep, 01:11, Karan Sardana wrote: > > I am using a commercial library - EXT GWT 2.0, and for that I need GWT > > 2.0; > > Er, where did you see that you *need* GWT 2.0 to be able to use Ext > GWT 2.0 ?! > http://www.extjs.com/deploy/gxt-2.0.1/release_notes.html only says > they "added support from GWT 2.0" (meaning that before that you > couldn't use GWT 2.0 with Ext GWT) > > > where can I get that from? > > You can download unofficial builds at http://code.google.com/p/sfeir > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Preventing Browser Events?
I created a word processing type editor with GWT and I need to prevent browser events, mostly the browser selection events and right click context menu. The program has FocusPanels within FocusPanels within FlexTables within VerticalPanels within HorizontalPanels within ScrollPanels within Horizontal and VerticalSplitPanels. There can be multiple different variations of nesting of widgets. I need a game plan on how to suppress the browser events that result in selections and context menus. I have tried adding onMouseDown, onMouseMove, onMouseUp, handlers and then event.preventDefault() for FocusPanels. I also added clickHandlers and event.preventDefault() to the FlexTables and have had some success with FireFox but still doesn't suppress the same way on IE. I tried extending Horizonal and VerticalPanels and overriding onBrowserEvent(Event event) method, adding event.preventDefault(), but that hasn't had much success. I would appreciate a plan of action on how to tackle this issue, I'll try it and report back with results, until we get it. Thanks in advance. We've been using this editor for over a year now with success, this is to take it to the next level. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: DeckPanel with visible layers?
Simple answer: No. It might be helpful (well it would for me anyway) if you were to describe the effect you were trying to get. To some extent I think I understand, but I don't understand the reason for the problem for absolute positioning. Please don't think I'm picking on you for any reason, but sometimes it is easier to come up with solutions if people describe the required effect rather than 'I want a xxx which does yyy'. It's a difficult thing to ask (and I'm probably as guilty as anyone) - if you don't know the answer (and of course you don't or why would you be asking) how do you know how to phrase the question? :-) But certainly this time the quick answer is 'out of luck' because the deck panel doesn't do that. A simple example of a situation where I can understand the effect you want and why there are restrictions (e.g. absolute positioning) would be handy. That said, some br will probably now say 'do zzz' and I'll look like a right pillock. Not for the first time. ;-) Ian http://examples.roughian.com 2009/9/8 David Given > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Is there a widget available that acts like a DeckPanel but with all > widgets visible simultaneously, one on top of the other? > > I want to be able to draw stuff underneath a semi-transparent label. All > my various approaches so far have failed in various odd ways, mostly > related to sizing issues. I *don't* want to use absolute positioning, > because I don't know how big my label's going to be. I would attempt to > copy DeckPanel's code, but as it's doing some fairly hairy things with > raw DOM I thought I should check first. > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: IE bookmark and GWT cache.html?
Hi, I'm having the same issue as well (both on IE and hosted mode - works flawlessly on FF). Acctually I'm using spring security to manage autentication and whenever I redirect a user after a succeded login I got the 302 status and then I have to hit the refresh to render the page. I tried to add some meta elements on my main html file to kill the cache but it didn't work either. Here is my html code: do you guys have any ideas on how to solve that? cheers! -- Lucas de Oliveira Arantes --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
DeckPanel with visible layers?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is there a widget available that acts like a DeckPanel but with all widgets visible simultaneously, one on top of the other? I want to be able to draw stuff underneath a semi-transparent label. All my various approaches so far have failed in various odd ways, mostly related to sizing issues. I *don't* want to use absolute positioning, because I don't know how big my label's going to be. I would attempt to copy DeckPanel's code, but as it's doing some fairly hairy things with raw DOM I thought I should check first. - -- ┌─── dg@cowlark.com ─ http://www.cowlark.com ─ │ │ "People who think they know everything really annoy those of us who │ know we don't." --- Bjarne Stroustrup -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFKpZ+kf9E0noFvlzgRArGZAJ4sAua/m9Wm8cq7RKPFSSTWCbW9hQCgh6RA SbUQAgP9GyhzpzkB8u9UEX4= =O5tj -END PGP SIGNATURE- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: gwt base64 encode implementation?
yep, but I tried the code at http://www.zaharov.info/notes/3_228_0.html but the shifts and stuff doesn't work on the client side. any other ideas? -- Lucas de Oliveira Arantes --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: gwt base64 encode implementation?
The first page returned from this search looks like a possibility. http://www.google.com/search?q=gwt+base64 On Sep 7, 12:43 pm, Lucas de Oliveira wrote: > Hello there guys, > does gwt have any base64 client-side (js) implementation? If not, do you > guys have any link/code to share? > > cheers! > > -- > Lucas de Oliveira Arantes --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
gwt base64 encode implementation?
Hello there guys, does gwt have any base64 client-side (js) implementation? If not, do you guys have any link/code to share? cheers! -- Lucas de Oliveira Arantes --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: MULTIPLE RELOAD IMAGE BUNDLE
Hi,I forgot to say that I've this problem only with Firefox 3.5.2. With other browser you can't see the reloading of the images, instead with Firefox you can cleary see the reloading of all images!! Maybe a bug? Thanks On 7 Set, 19:22, bond wrote: > Hi,I've a big problem with image bundle. I make a small table with > paging that display some text and some image. When I click "next > button" the image bundle is reload more and more time in the browser > (with firebug I see a > GEThttp://localhost:8084/Main/B944D2399463F2D5C1293B5263DF3E75.cache.html). > I can't see the problem!! > > Thanks for your help! > > Best regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: MySql Driver not found
Since you are trying to use MySQL as your database, you can't use Google's App Engine. It is its own data store. So, look at the properties of your project. There should be a Google section. The App Engine will be checked. Uncheck it. You can't use App Engine and your own database. HTH, Chad On Sep 7, 2:41 am, GumbyGWTBeginner wrote: > OK > > I got ot to work now using a solution I found on this site. > > Can anyone tellme what this means and how this will effect further > works? > > if you are using eclipse, > try to go under Project->properties->google->App Engine > and disable "Use Google App Engine" checkbox . > > With the above turn ON the CONNECTION wont work. > > The server is running athttp://localhost:8080/ > Sep 7, 2009 7:39:24 AM > com.google.appengine.tools.development.ApiProxyLocalImpl log > SEVERE: [1252309164265000] javax.servlet.ServletContext log: Exception > while dispatching incoming RPC call > com.google.gwt.user.server.rpc.UnexpectedException: Service method > 'public abstract java.lang.String > com.ddd.client.GreetingService.greetServer(java.lang.String)' threw an > unexpected exception: java.lang.NullPointerException > at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure > (RPC.java:360) > at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse > (RPC.java:546) > at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall > (RemoteServiceServlet.java:166) > at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost > (RemoteServiceServlet.java:86) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) > at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: > 487) > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter > (ServletHandler.java:1093) > at > com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter > (TransactionCleanupFilter.java:43) > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter > (ServletHandler.java:1084) > at com.google.appengine.tools.development.StaticFileFilter.doFilter > (StaticFileFilter.java:124) > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter > (ServletHandler.java:1084) > at org.mortbay.jetty.servlet.ServletHandler.handle > (ServletHandler.java:360) > at org.mortbay.jetty.security.SecurityHandler.handle > (SecurityHandler.java:216) > at org.mortbay.jetty.servlet.SessionHandler.handle > (SessionHandler.java:181) > at org.mortbay.jetty.handler.ContextHandler.handle > (ContextHandler.java:712) > at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: > 405) > at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle > (DevAppEngineWebAppContext.java:54) > at org.mortbay.jetty.handler.HandlerWrapper.handle > (HandlerWrapper.java:139) > at com.google.appengine.tools.development.JettyContainerService > $ApiProxyHandler.handle(JettyContainerService.java:313) > at org.mortbay.jetty.handler.HandlerWrapper.handle > (HandlerWrapper.java:139) > at org.mortbay.jetty.Server.handle(Server.java:313) > at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: > 506) > at org.mortbay.jetty.HttpConnection$RequestHandler.content > (HttpConnection.java:844) > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205) > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) > at org.mortbay.io.nio.SelectChannelEndPoint.run > (SelectChannelEndPoint.java:396) > at org.mortbay.thread.BoundedThreadPool$PoolThread.run > (BoundedThreadPool.java:442) > Caused by: java.lang.NullPointerException > at com.ddd.server.GreetingServiceImpl.greetServer > (GreetingServiceImpl.java:29) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke > (NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke > (DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse > (RPC.java:527) > ... 27 more > > On Sep 7, 9:48 am, GumbyGWTBeginner wrote: > > > > > Found the Quick Fix. > > > But still not sure on how to include the code on Server Side or how > > this Qucik Fix applies to my problem. > > > Stephan > > > On Sep 7, 9:18 am, GumbyGWTBeginner wrote: > > > > How would do this "Quick Fix". Not really sure how you would do this. > > > > Stephan > > > > On Sep 6, 11:15 pm, Christian Goudreau > > > wrote: > > > > > Just do a quick fix and the message will desapear. You need this on > > > > server > > > > side, so you need to do it. > >
Re: Making a widget as big as possible (but no bigger!)
Width is trivial - make sure that everything is set to width:auto; Height is (AFAIK) impossible without calculating it unless all the borders and padding and margins are zero, in which case set everything to 100% (including html, body{width:100%;} I didn't understand what Parvez Shah was saying, and AFAICT absolute positioning is no help if you have margins/borders/padding. It's a css thing rather than GWT. But if someone has a pure css solution, I will unreservedly join the ranks of the eternally grateful. Ian http://examples.roughian.com 2009/9/7 David Given > > Nathan Wells wrote: > > Using absolute positioning: > > > > This method requires that (1) the container must have dimensions set > > (i.e. "width: x% or px or whatever"). (2) the child box has > > position:absolute set. > > If the above are true, you simply set the left, right, top, bottom, > > width and height attributes of the child. Note that IE will give you > > some problems sometimes with some of this setup... > > That's what I did, eventually, but this is requiring me to do layout > actively in a resize callback. I'd rather not do this as it's slow and > clunky. > > It seems fundamentally to be really hard to do top-down layout using CSS > (where the size of each object is constrained by the object it's > contained within). This leads to endless problems with full-screen > layouts. I've already discovered the bug where ScrollPanels just don't > work properly if they're a child of certain other widgets (such as a > DeckPanel). > > Are there any known ways to solve this kind of issue? > > -- > ┌─── dg@cowlark.com ─ http://www.cowlark.com ─ > │ > │ "They laughed at Newton. They laughed at Einstein. Of course, they > │ also laughed at Bozo the Clown." --- Carl Sagan > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: TabPanel Overlap Bug
Is that the complete and exact code from your screen shot? The first thought that comes to mind is that you might be loading up those tab panels with content that's exactly 400px high -- which expands to 412px when you factor in the default 6px padding from this rule in standard.css: .gwt-TabPanelBottom { border-color: #92c1f0; border-style: solid; border-width: 3px 2px 2px; overflow: hidden; padding: 6px; } I just generated a GWT project in Eclipse and plugged in your code as the EntryPoint, and when I run it here, the tab panel content is what I'd expect to see -- just enough to account for those HTML controls you're loading. But if you substituted those for more complex HTML widgets in your live sample, that could account for the difference. We eliminated that padding here by defining this CSS rule and applying it to our TabPanel widgets using: tabPanel.getDeckPanel ().addStyleName("basis-TabPanelBottom"); .basis-TabPanelBottom.gwt-TabPanelBottom { padding: 0px; } An extremely useful debugging approach is to right-click on your generated web page and select "Inspect Element" to see precisely how the browser is rendering your content. This will point you to box layout details that you might not have anticipated, like extra borders or padding. The DOM inspector is built in to hosted mode, and is standard in Chrome and Safari (in Safari, you have to enable the Develop menu) or as a plugin (Firefox: http://getfirebug.com/) in most browsers. On Sep 6, 9:46 am, tekgrunt wrote: > Hello! > > I am developing a web application and have decided to get to know GWT. > Everything looks great, but I am barely out of the gate and have run > into a show stopper. > > I am using the DockPanel layout with a TabPanel in the CENTER position > and a HorizontalPanel in the SOUTH position. The problem is that the > lower portion of the TabPanel overlaps the top of the HorizontalPanel. > > I am hoping this is a known issue or lack of understanding on my part > (as is most likely). Any help with this issue would be greatly > appreciated. > > A screenshot can be seen here:http://www.christopherluft.com/screenCap.jpg > > The code can be seen here:http://www.christopherluft.com/code.rtf --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT EJB
My directory structure is something like this --- domain --- service --- some more server package --- Domain.gwt.xml and then i just inherit the domain class like this in my Domain.gwt.xml I have entry like this http://google-web-toolkit.googlecode.com/svn/tags/1.6.4/distro-source/core/src/gwt-module.dtd "> -- On Sun, Sep 6, 2009 at 2:10 PM, MamboJumbo wrote: > > Hello Parvez, > I tried to do that but I get "no source code is available exception" > for my entity class when I am compiling GWT. Could you show me some > example how to do that? > Thanks > > On Sep 5, 12:48 am, Parvez Shah wrote: > > Yes you can .. > > Your entity with JPA annotation will work you can keep your entity in > your > > EJB project just keep the package declaration same as your client Module > .. > > and use your entity as DTO > > > > > > > > On Fri, Sep 4, 2009 at 8:23 PM, MamboJumbo > wrote: > > > > > I searched this DTO question for a while but could not find a an > > > answer. Maybe you know guys? Is it possible to import a GWT DTO class > > > defined in the GWT client package in the EJB session bean, so that DTO > > > can be instantiated in the session bean? If we had a dynamic web > > > project with GWT and an EJB project with session beans. > > > Thanks > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Parsing ATOM feeds in GWT
Hi, is there any GWT library for ATOM XML feeds? Thanks in advance, Vincenzo. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Can it possible.. I need your ideas...
We are able to image bundle localization. So based on locale the corresponding image bundle will be loaded right?? My question is.. Say i am having 1000 users to my site. At the time of registration i am allowing the users to upload their interested images to be shown after logged in. So here i have to create 1000 image bundles according to each users images. My question:- can we make it possible using image bundle. So based on some user information i have to point to its corresponding image bundle. Great thanks in advance I will wait for your ideas... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: List Box Issue with GWT 1.7
Hey Erik, I must have missed the method. Sorry I will try that one out. Thanks! Should be what I am looking for. Thanks! Rob On Sep 7, 12:11 am, Erik wrote: > Maybe you should use : > > setItemSelected(int index, boolean selected) > > Sets whether an individual list item is selected. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: List Box Issue with GWT 1.7
Thanks again Erik, It is working! Rob On Sep 7, 12:11 am, Erik wrote: > Maybe you should use : > > setItemSelected(int index, boolean selected) > > Sets whether an individual list item is selected. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Hosted mode windows position
Hello! Is there any way to restore previous hosted mode windows position and size. Every time I start a hosted mode server I need to: 1. move hosted mode server window to the second monitor; 2. expand hosted mode browser, because it opens very small by default. It would be much better if they restore previous position and size. Thanks in advance! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Making a widget as big as possible (but no bigger!)
Nathan Wells wrote: > Using absolute positioning: > > This method requires that (1) the container must have dimensions set > (i.e. "width: x% or px or whatever"). (2) the child box has > position:absolute set. > If the above are true, you simply set the left, right, top, bottom, > width and height attributes of the child. Note that IE will give you > some problems sometimes with some of this setup... That's what I did, eventually, but this is requiring me to do layout actively in a resize callback. I'd rather not do this as it's slow and clunky. It seems fundamentally to be really hard to do top-down layout using CSS (where the size of each object is constrained by the object it's contained within). This leads to endless problems with full-screen layouts. I've already discovered the bug where ScrollPanels just don't work properly if they're a child of certain other widgets (such as a DeckPanel). Are there any known ways to solve this kind of issue? -- ┌─── dg@cowlark.com ─ http://www.cowlark.com ─ │ │ "They laughed at Newton. They laughed at Einstein. Of course, they │ also laughed at Bozo the Clown." --- Carl Sagan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
GWT Project MultiModule ClassPath Configuration
Good morning to all users of the forum; i have a small problem with a gwt project and i hope that you solve it. (sorry for the my bad english) The Project is constituted by one module that is called "Portal", that contain the entry point class, and by another support module that is called "Canvas", that not contain another entry point. The project is completely but i can't execute him because i don't configurate the classpath in the correctly mode. Infact during the execution i have this problem: [ERROR] Unable to load module entry point class org.unicam.resourceome.web.portal.client.Portal (see associated exception for details) com.google.gwt.core.client.JavaScriptException: (TypeError): Property or method doesn't support by the object number: -2146827850 description: Property or method doesn't support by the object at org.unicam.gwt.graphics.client.canvas.impl.GWTCanvasImplDefault.createElement (Native Method) at org.unicam.gwt.graphics.client.canvas.GWTCanvas. (GWTCanvas.java:138) at org.unicam.gwt.graphics.client.GWTGraphicsView.init (GWTGraphicsView.java:42) at org.unicam.gwt.graphics.client.GWTGraphicsView. (GWTGraphicsView.java:38) at org.unicam.resourceome.web.portal.client.Portal.onModuleLoad (Portal.java:198) I think that the problem is in the configuration of the classpath, isn't true? I already read the getting started guide and another two guide about the correct configuration of the classpath but i dont' solve nothing. So i put in the last part of the post the xml file of each module, i hope that this thing help you. The .xml file of module Portal that implements the entry point is that: The .xml file of module CanvasGraphics without entry point is that: Another strange problem is that the compilation of the project is correct, the run of the project in web mode is correct but the running and debugging in hosted mode give the error of the frist part of the post. Can someone help me or suggest the solution? If i must give more information about the application is not the problem. Thank tou another time for the answer, sorry for this bad english. Sorry for the bad english, thank you for the answer. Bye. Marco. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Renaming war folder in GWT project
Hi all, One question regarding the project structure in GWT 1.6 or greater. I want to rename 'war' folder. Can this folder be renamed to some other name, say, WebResources? Will the hosted browser work properly? I am using Eclipse with the GWT plugin Thanks, Ganesh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Server Side: Writting a File on Disk
Yeah its possible.. Just not in App Engine (like ther error stated) ;). If you don't want to use App Engine you can disable it on eclipse gwt plugin ( I suspect you use eclipse). Just right-click on the project -> Properteis -> Google -> App Engine -> deselect "Use Google App Engine". Bye, Norman 2009/9/6 Robert Lang : > Hello, > > About: "The GWT complier has got nothing to do with the server side code" > > I created a Class "TestFileWriter" using FileWriter into .server subpackage > and receive > folow Eclipse Error: > > - java.io.FileWriter is not supported by Google App Engine's Java > runtime environment > - java.io.FileWriter is not supported by Google App Engine's Java > runtime > > Is really possible to use file writer in the server side? > > Best Regards, > > Robert > > > 2009/8/28 Alexander Cherednichenko >> >> refer to the >> http://code.google.com/intl/ru/webtoolkit/tutorials/1.6/create.html >> >> The folders in the project have specific meaning. You will not get >> anything touched by gwt compiler unless it is in client subpackage. >> >> On Aug 23, 4:27 pm, Dalla wrote: >> > You have to put this code in the *.server sub-package of your >> > project. >> > The GWT complier has got nothing to do with the server side code. >> > >> > On 23 Aug, 04:39, Robert Lang wrote: >> > >> > > Hello, >> > >> > > I need to write a file on server's disk, but FileOutputStream, >> > > FileWriter, >> > > etc, but isn't supported with GWT Compiller... How I do this? >> > >> > > A File need to write in specific folder/partition, independent of app >> > > deployed on web server, for storage specific file formats. >> > >> > > Best Regards, >> > >> > > Robert Mauro Lang >> > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Making a widget as big as possible (but no bigger!)
Using absolute positioning: This method requires that (1) the container must have dimensions set (i.e. "width: x% or px or whatever"). (2) the child box has position:absolute set. If the above are true, you simply set the left, right, top, bottom, width and height attributes of the child. Note that IE will give you some problems sometimes with some of this setup... On Sep 5, 3:53 pm, Parvez Shah wrote: > set MainConatiner.setSpacing /setPadding > I guess that will help you now you can set Child Container's size as 100% > > > > On Sun, Sep 6, 2009 at 2:30 AM, David Given wrote: > > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > I have a recurring problem that keeps hitting me with various projects. > > There must be a way around it, but I have yet to find one... > > > I have a container of a fixed size. I want to put in this another > > widget, and have that widget take up all the available space --- *with > > its border, padding and margins inside the container*. > > > This seems to be much harder than it looks. The CSS width and height > > properties affect the size of the content, and the border, padding and > > margins are always drawn *outside* that box, so just setting the size to > > "100%", "100%" results in my widget being slightly larger than its > > container. I can't use absolute positioning for this because I don't > > know how big anything is in pixels, and CSS doesn't support using things > > like "100% - 1em" in a dimension. > > > This is an utterly basic thing to want, but I have yet to find a way > > round it --- what am I missing here? > > > - -- > > ┌─── dg@cowlark.com ─http://www.cowlark.com─ > > │ > > │ "People who think they know everything really annoy those of us who > > │ know we don't." --- Bjarne Stroustrup > > -BEGIN PGP SIGNATURE- > > Version: GnuPG v1.4.9 (GNU/Linux) > > Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/ > > > iD8DBQFKotFcf9E0noFvlzgRAmbiAJ4mN9mqjfNMpfSlW65z3gFHlxVP/gCglOEY > > sDqSWeGk6lEk4jZoVDQASvM= > > =Lzdt > > -END PGP SIGNATURE- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
File Downloads not working with firefox and Opera
Hi, I am having a peculiar problem related to file download. My file downloads work fine with IE and Chrome but fails on Firefox and Opera. This is my code byte[] data = downloadProvider.getData(); String contentType=downloadProvider.getContentType(); String fileName=downloadProvider.getFileName(); response.setContentType(contentType); response.setContentLength((int)data.length); response.addHeader("Content-Disposition","attachment; filename=\"" + fileName + "\""); response.setHeader("pragma", "public"); response.setHeader("Cache-Control","cache"); response.setHeader("Cache-Control","must-revalidate"); ServletOutputStream outs = response.getOutputStream(); outs.write(data); outs.flush(); outs.close(); Could anybody point out what I must do to make my file downloads work with Firefox and Opera. Thanks, Cherian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: CustomButton rollover effects fail when ON_MOUSE_OUT is never fired
I appreciate the input, Erik, but the CSS I posted is for standard GWT functionality. Rollover effects based on the GWT CustomButton class appear to be unreliable, apparently because the ON_MOUSE_OUT event isn't always fired. Those CSS rules are described here: http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/CustomButton.html http://google-web-toolkit.googlecode.com/svn/trunk/user/src/com/google/gwt/user/client/ui/CustomButton.java http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/UIObject.html On Sep 7, 12:16 am, Erik wrote: > You don't need mouse-over listeners to trigger hover-effects, you can > also use css pseudo-classes: > (seehttp://www.w3schools.com/CSS/css_pseudo_classes.asp) > > .basis-menubutton > { > border: 1px solid transparent; > cursor: pointer; > background-color: transparent; > text-align: center; > vertical-align: middle; > padding: 0px; > overflow: hidden; > > } > > .basis-menubutton-border > { > border: 1px solid #cbcbcb; > > } > > .basis-menubutton-down:HOVER > { > border: 1px solid #909090; > background-color: #cacaca; > > } > > .basis-menubutton-up:HOVER > { > border: 1px solid #cbcbcb; > background-color: #e8e8e8; > > } > > On Sep 4, 10:33 pm, Jim Douglas wrote: > > > > > I've got a set of button rules to change the background color on > > rollover (CSS below, but it's nothing exotic). It works if you just > > move the mouse in and out of the button; the CustomButton code to > > toggle setHovering(boolean) is triggered, and everything is good. > > > But if something happens to suppress the ON_MOUSE_OUT event, > > setHovering(false) is never invoked, so the button retains the > > rollover background color until you explicitly trigger ON_MOUSE_OUT by > > dragging the mouse in and out of the button. This situation can > > easily happen when clicking the button invokes a modal dialogue > > window, or when the button is at the edge of a window. > > > This seems like a GWT bug, although possibly caused by inherent > > browser limitations. I'd expect setHovering(false) to be invoked when > > the mouse is no longer hovering over the button, as opposed to just > > the subset of cases where the user drags the mouse out of the button, > > triggering the ON_MOUSE_OUT event. > > > Does anyone know of any workarounds? > > > .basis-menubutton > > { > > border: 1px solid transparent; > > cursor: pointer; > > background-color: transparent; > > text-align: center; > > vertical-align: middle; > > padding: 0px; > > overflow: hidden;} > > > .basis-menubutton-border > > { > > border: 1px solid #cbcbcb;} > > > .basis-menubutton-down-hovering > > { > > border: 1px solid #909090; > > background-color: #cacaca;} > > > .basis-menubutton-up-hovering > > { > > border: 1px solid #cbcbcb; > > background-color: #e8e8e8; > > > } > > > // From CustomButton: > > > case Event.ONMOUSEOUT: > > Element to = DOM.eventGetToElement(event); > > if (DOM.isOrHasChild(getElement(), DOM.eventGetTarget(event)) > > && (to == null || !DOM.isOrHasChild(getElement(), to))) { > > if (isCapturing) { > > onClickCancel(); > > } > > setHovering(false); > > } > > break; > > case Event.ONMOUSEOVER: > > if (DOM.isOrHasChild(getElement(), DOM.eventGetTarget(event))) > > { > > setHovering(true); > > if (isCapturing) { > > onClickStart(); > > } > > } > > break; --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Need help with GWT FX
Hi, I'm hoping someone can help... I've been using the (very useful) gwt- fx library (by Adam Tacy) and have run into a couple of problems and I'm not sure if it's how I'm structuring my code. I'm trying to layout a bunch of boxes (absolutely positioned) and then animate each of them independently e.g. FlowPanel container = new FlowPanel(); container.setStylePrimaryName("my-container"); Box boxA = new Box(); container.add(boxA); Box boxB = new Box(); container.add(boxB); ... The Box Class is a Composite that contains an NEffectPanel as it's "initWidget" and I add a bunch of other Widgets to the NEffectPanel (and I'm styling the NEffectPanel with a border, background etc). If I try and animate the position one of the Boxes it all goes a bit pear shaped - rather than the Box moving, its contents moves...? Is this the correct behaviour and if so is there a way of doing what I want? Hope this makes sense! Cheers, Rodders --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Your GWT based open source project(s)
On 4 sep, 01:40, Fred Sauer wrote: > From time to time I hear from people who have created GWT related open > source projects. > If that includes you, here's my 1 question, 10 second survey: > * Q. Were you encouraged to open source your project because of the > benefits* > * you gained from another open source project (GWT, or any other > project)?* Yes, definitely. We recently open sourced "Audit Surf" (under GPL), and Alfresco SURF app displaying information on how you use your Alfresco repository: http://forge.alfresco.org/projects/auditsurf/ (Alfresco is GPL'd) (that's not our first contribution to Alfresco though, we also released the "trashcan cleaner" http://forge.alfresco.com/projects/trashcancleaner/ a while ago and even the original "category navigator" that's now built-in) We also released almost a year ago the French language pack for Pentaho 1.7 under GPLv3 http://code.google.com/p/pentaho-french-translation/ (Pentaho 1.7 is MPL'd) I'm currently writing a "toolkit" for our GWT projects (you know, all this MVP/DI/EventBus/Place buzz ;-) ) that I hope we will open-source soon too (I'm pretty happy with my "Place" module ;-) ) I'm not even talking about our contributions to other open source projects (besides code: bug reports, debugging, documentation, etc.): Open Layers, Spring.Net, etc. (and GWT, of course ;-) ) So yes, definitely, we LOVE open source, and our answer is not only to use it and encourage its use, but also of course contribute to the community (we were the one behind the very first French Alfresco community: alfresco-fr.org, now discontinued as Alfresco has "integrated" it in its own wiki/forums) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
google-web-toolkit@googlegroups.com
On 4 sep, 22:00, matthew wrote: > I have Google Web Toolkit SDK 1.7.0 installed as well as the Google > Plugin for Eclipse 3.5 and Google App Engine Java SDK 1.2.2. > > My page works fine in Firefox but when I try to view it in IE 7 or 8, > I get the error: > > 'undefined' is null or not an object > > I compiled the code with Detailed output style and found that the > problem is in the maybeStartModule() function: > > In particular, iframe.contentWindow returns null/undefined. > > function maybeStartModule(){ > if (scriptsDone && loadDone) { > var iframe = $doc.getElementById($intern_1); > var frameWnd = iframe.contentWindow; > if (isHostedMode()) { > frameWnd.__gwt_getProperty = function(name){ > return computePropValue(name); > } > ; > } > notebook = null; > frameWnd.gwtOnLoad(onLoadErrorFunc, $intern_1, base); > $stats && $stats({moduleName:$intern_1, subSystem:$intern_2, > evtGroup:$intern_6, millis:(new Date()).getTime(), type:$intern_7 > } > } > > The actual HTML of my page looks like this: > > > > Notebook > > > > > > > Why is this happening and what can I do to fix it? Could it be this issue that you're facing? http://code.google.com/p/google-web-toolkit/issues/detail?id=4003 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: KeyPressHandler problem
On 5 sep, 19:55, joppi wrote: > How can I find out in TextBox in KeyPressHandler if user pressed > delete or dot (for example), because event.getCharCode() returns same > value. keyboard events in JavaScript are a mess, because each browser has its own handling and fires different events fro the same key strokes. With the advent of DOM Level 3 Events, we can hope they converge to a single interoperable model, but in the mean time, this is a mess: http://www.w3.org/TR/DOM-Level-3-Events/keyset.html (replace textInput with keypress it almost perfectly describes Internet Explorer's model) Have a look to issue 3753 http://code.google.com/p/google-web-toolkit/issues/detail?id=3753 and follow the links I gave there. In the "ideal model", the "delete" key shouldn't generate a keypress event, and should therefore only be detectable in keydown and keyup events; and there, a dot would have a different key code than delete (actually, there would be different codes depending on whether you used the dot key from the numpad or not, or use a Alt+046 combination on Windows –using the numpad–) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: CSS Theme File - Disabled
On 7 sep, 02:40, josivan wrote: > Hi, my application has currently many files for CSS of theme. > My doubt! Is possible disabled theme (css) file generation? > I need only my css file, where I'm setting css rules (gwt-*) > inclusive. Just remove any line from your gwt.xml file(s) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: How can I get GWT 2.0
On 7 sep, 01:11, Karan Sardana wrote: > I am using a commercial library - EXT GWT 2.0, and for that I need GWT > 2.0; Er, where did you see that you *need* GWT 2.0 to be able to use Ext GWT 2.0 ?! http://www.extjs.com/deploy/gxt-2.0.1/release_notes.html only says they "added support from GWT 2.0" (meaning that before that you couldn't use GWT 2.0 with Ext GWT) > where can I get that from? You can download unofficial builds at http://code.google.com/p/sfeir --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Country combobox and lookup country by IP
re.1 ) No, GWT doesn't have such a combo box. You will have to create one and populate it. re.2 ) There is nothing that GWT provides out of the box. You'd have to write a gwt service which returns the country name based on the ip address and use it to select the country. To actually implement the service, you'd have to integrate with of the many people providing such information. On Sep 7, 2:20 am, Jaap wrote: > Anybody knows the answers to the questions below? > > On Aug 30, 2:20 am, Jaap wrote: > > > Hi, > > > In my GWT/appengine application I need users to select their country. > > Two questions > > > 1) Does GWT provide by default a combobox that lists all countries, or > > is there some 3rd party library for this > > 2) I'd like to fill in the country already when the page loads based > > on the IP address. Is there a known way on how to do this? > > > Thanks > > > Jaap --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Well that's a shame. shouldn't be that hard to get started with GWT
The next release (2.0) will support 64 bit directly. Or, you can use GWT from trunk and do it now with OOPHM. http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM John s wrote: > This is my first 20 minutes (and maybe the last) ride on GWT and I'm > very frustrated by these kind of errors. > Come on , 64bit PC(especially linux) is out for 7 years already. > shouldn't it be supported by all kind of toolkits and frameworks ?! > This kind of annoyances reminds me Adboe flash / Java browser plugin. > That's not the open source spirit. > I don't want to install 32bit JDK and mess around with my server > packages , > please make it work natively on 64bit machines. > > libswt-pi-gtk-3235.so: wrong ELF class: ELFCLASS32 (Possible cause: > architecture word width mismatch) > at java.lang.ClassLoader$NativeLibrary.load(Native Method) > at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1778) > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1674) > at java.lang.Runtime.load0(Runtime.java:770) > at java.lang.System.load(System.java:1003) > at org.eclipse.swt.internal.Library.loadLibrary(Library.java: > 132) > at org.eclipse.swt.internal.gtk.OS.(OS.java:22) > at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java: > 63) > at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java: > 54) > at org.eclipse.swt.widgets.Display.(Display.java:126) > at com.google.gwt.dev.SwtHostedModeBase. > (SwtHostedModeBase.java:82) > Could not find the main class: com.google.gwt.dev.HostedMode. Program > will exit. > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
TabPanel Overlap Bug
Hello! I am developing a web application and have decided to get to know GWT. Everything looks great, but I am barely out of the gate and have run into a show stopper. I am using the DockPanel layout with a TabPanel in the CENTER position and a HorizontalPanel in the SOUTH position. The problem is that the lower portion of the TabPanel overlaps the top of the HorizontalPanel. I am hoping this is a known issue or lack of understanding on my part (as is most likely). Any help with this issue would be greatly appreciated. A screenshot can be seen here: http://www.christopherluft.com/screenCap.jpg The code can be seen here: http://www.christopherluft.com/code.rtf --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: CustomButton rollover effects fail when ON_MOUSE_OUT is never fired
You don't need mouse-over listeners to trigger hover-effects, you can also use css pseudo-classes: (see http://www.w3schools.com/CSS/css_pseudo_classes.asp ) .basis-menubutton { border: 1px solid transparent; cursor: pointer; background-color: transparent; text-align: center; vertical-align: middle; padding: 0px; overflow: hidden; } .basis-menubutton-border { border: 1px solid #cbcbcb; } .basis-menubutton-down:HOVER { border: 1px solid #909090; background-color: #cacaca; } .basis-menubutton-up:HOVER { border: 1px solid #cbcbcb; background-color: #e8e8e8; } On Sep 4, 10:33 pm, Jim Douglas wrote: > I've got a set of button rules to change the background color on > rollover (CSS below, but it's nothing exotic). It works if you just > move the mouse in and out of the button; the CustomButton code to > toggle setHovering(boolean) is triggered, and everything is good. > > But if something happens to suppress the ON_MOUSE_OUT event, > setHovering(false) is never invoked, so the button retains the > rollover background color until you explicitly trigger ON_MOUSE_OUT by > dragging the mouse in and out of the button. This situation can > easily happen when clicking the button invokes a modal dialogue > window, or when the button is at the edge of a window. > > This seems like a GWT bug, although possibly caused by inherent > browser limitations. I'd expect setHovering(false) to be invoked when > the mouse is no longer hovering over the button, as opposed to just > the subset of cases where the user drags the mouse out of the button, > triggering the ON_MOUSE_OUT event. > > Does anyone know of any workarounds? > > .basis-menubutton > { > border: 1px solid transparent; > cursor: pointer; > background-color: transparent; > text-align: center; > vertical-align: middle; > padding: 0px; > overflow: hidden;} > > .basis-menubutton-border > { > border: 1px solid #cbcbcb;} > > .basis-menubutton-down-hovering > { > border: 1px solid #909090; > background-color: #cacaca;} > > .basis-menubutton-up-hovering > { > border: 1px solid #cbcbcb; > background-color: #e8e8e8; > > } > > // From CustomButton: > > case Event.ONMOUSEOUT: > Element to = DOM.eventGetToElement(event); > if (DOM.isOrHasChild(getElement(), DOM.eventGetTarget(event)) > && (to == null || !DOM.isOrHasChild(getElement(), to))) { > if (isCapturing) { > onClickCancel(); > } > setHovering(false); > } > break; > case Event.ONMOUSEOVER: > if (DOM.isOrHasChild(getElement(), DOM.eventGetTarget(event))) > { > setHovering(true); > if (isCapturing) { > onClickStart(); > } > } > break; --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Well that's a shame. shouldn't be that hard to get started with GWT
This is my first 20 minutes (and maybe the last) ride on GWT and I'm very frustrated by these kind of errors. Come on , 64bit PC(especially linux) is out for 7 years already. shouldn't it be supported by all kind of toolkits and frameworks ?! This kind of annoyances reminds me Adboe flash / Java browser plugin. That's not the open source spirit. I don't want to install 32bit JDK and mess around with my server packages , please make it work natively on 64bit machines. libswt-pi-gtk-3235.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch) at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1778) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1674) at java.lang.Runtime.load0(Runtime.java:770) at java.lang.System.load(System.java:1003) at org.eclipse.swt.internal.Library.loadLibrary(Library.java: 132) at org.eclipse.swt.internal.gtk.OS.(OS.java:22) at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java: 63) at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java: 54) at org.eclipse.swt.widgets.Display.(Display.java:126) at com.google.gwt.dev.SwtHostedModeBase. (SwtHostedModeBase.java:82) Could not find the main class: com.google.gwt.dev.HostedMode. Program will exit. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
RPC not work with return type HashMap
Hi I am new to GWT programing. I use it with the smart gwt api. I have created a RPC, which returns HashMap All things on the server are done with no errors, it returns this hashmap. However on the client always is executed onFaiure and this message is shown: e.getMessage() > e.getStackTrase()[0]: This application is out of date, please click the refresh button on your browser. >undefined When i change simply to return String and return "test" it returns on success it. This is happening only in WEB mode. I have no unserializable objects in the hashmap. I am running this on Jboss and i have deleted the tmp dir with the cache before deploy. I have clear the browser cache too. Not worked. How can i return such HashMap from the server??? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Suddenly getting exceptions during compile in TypeOracle annotation processing
Hello martijn! I have the exact same problem. Were you able to solve it? stacktrace: GWT Compiling client-side code. Compiling module yln.javaprogquiz.Main Refreshing module from source Refreshing TypeOracle Processing types in compilation unit: jar:file:/C:/Programme/ Java/gilead-1.2.3.823/dist/adapter4gwt-1.2.3.823.jar!/net/sf/gilead/ emul/java5/ejb3/javax/persistence/ManyToMany.java Found type 'ManyToMany' [ERROR] java.lang.ClassNotFoundException: javax.persistence.CascadeType at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java: 301) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java: 320) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at com.google.gwt.dev.javac.TypeOracleMediator.getClassLiteral (TypeOracleMediator.java:763) at com.google.gwt.dev.javac.TypeOracleMediator.getAnnotationElementValueArray (TypeOracleMediator.java:726) at com.google.gwt.dev.javac.TypeOracleMediator.getAnnotationElementValue (TypeOracleMediator.java:676) at com.google.gwt.dev.javac.TypeOracleMediator.resolveMethod (TypeOracleMediator.java:986) at com.google.gwt.dev.javac.TypeOracleMediator.resolveMethods (TypeOracleMediator.java:1054) at com.google.gwt.dev.javac.TypeOracleMediator.resolveTypeDeclaration (TypeOracleMediator.java:1444) at com.google.gwt.dev.javac.TypeOracleMediator.addNewUnits (TypeOracleMediator.java:389) at com.google.gwt.dev.javac.TypeOracleMediator.refresh (TypeOracleMediator.java:417) at com.google.gwt.dev.javac.CompilationState.refresh (CompilationState.java:179) at com.google.gwt.dev.javac.CompilationState. (CompilationState.java:93) at com.google.gwt.dev.cfg.ModuleDef.getCompilationState (ModuleDef.java:264) at com.google.gwt.dev.Precompile.precompile(Precompile.java: 283) at com.google.gwt.dev.Compiler.run(Compiler.java:170) at com.google.gwt.dev.Compiler$1.run(Compiler.java:124) at com.google.gwt.dev.CompileTaskRunner.doRun (CompileTaskRunner.java:88) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger (CompileTaskRunner.java:82) at com.google.gwt.dev.Compiler.main(Compiler.java:131) [ERROR] Unexpected java.lang.NullPointerException at com.google.gwt.dev.javac.TypeOracleMediator.getAnnotationElementValue (TypeOracleMediator.java:704) at com.google.gwt.dev.javac.TypeOracleMediator.resolveMethod (TypeOracleMediator.java:986) at com.google.gwt.dev.javac.TypeOracleMediator.resolveMethods (TypeOracleMediator.java:1054) at com.google.gwt.dev.javac.TypeOracleMediator.resolveTypeDeclaration (TypeOracleMediator.java:1444) at com.google.gwt.dev.javac.TypeOracleMediator.addNewUnits (TypeOracleMediator.java:389) at com.google.gwt.dev.javac.TypeOracleMediator.refresh (TypeOracleMediator.java:417) at com.google.gwt.dev.javac.CompilationState.refresh (CompilationState.java:179) at com.google.gwt.dev.javac.CompilationState. (CompilationState.java:93) at com.google.gwt.dev.cfg.ModuleDef.getCompilationState (ModuleDef.java:264) at com.google.gwt.dev.Precompile.precompile(Precompile.java: 283) at com.google.gwt.dev.Compiler.run(Compiler.java:170) at com.google.gwt.dev.Compiler$1.run(Compiler.java:124) at com.google.gwt.dev.CompileTaskRunner.doRun (CompileTaskRunner.java:88) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger (CompileTaskRunner.java:82) at com.google.gwt.dev.Compiler.main(Compiler.java:131) On Aug 17, 7:01 pm, "martijn.spr...@gmail.com" wrote: > I'm suddenly getting strange exceptions when compiling my application > that uses EJB3 objects with annotations and Gilead. The exceptions > seems to happen for different annotation objects each time, however > it's always for the same reason: NPE in the TypeOracleMediator. > > I've tried this with the old version of Gilead (Hibernate4gwt 1.1.1) > and with the new version. I've also tried this with GWT 1.6.4, and > 1.7.0. In every case it's giving me the same NPE. > > Nothing significant has changed in my code, I've just made some > general improvements over the last few days which are working find in > hosted mode. However compile seems to be screwed up. > > Does anyone have any idea what is going on here? > > The following is my compile script: > #!/bin/sh > APPDIR=`dirname $0`; > java -Xmx768M -XstartOnFirstThread -cp "\ > $APPDIR/src:\ > $APPDIR/war/WEB-INF/lib/adapter-core-1.2.3.823.jar:\ > $APPDIR/war/WEB-
Re: How can I get GWT 2.0
There is no official GWT 2.0 right now. But you can build what's in the trunk though. To do that, you need to subversion and ant. Make a work directory mkdir google-web-toolkit cd google-web-toolkit Checkout the GWT tools: svn checkout http://google-web-toolkit.googlecode.com/svn/tools Then, checkout the trunk svn checkout http://google-web-toolkit.googlecode.com/svn/trunk Change your directory to the trunk and type: ant Then, in build/dist, there will by an archive of GWT and it's like installing and setting up any GWT release. On Sep 6, 7:11 pm, Karan Sardana wrote: > I am using a commercial library - EXT GWT 2.0, and for that I need GWT > 2.0; where can I get that from? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Eclipse plug-in Post-Build steps
I am starting to use the Eclipse plug-in for GWT more, and I want to make the build process as painless as possible. After I have built a deployment, my goal is to automatically zip the war directory and then scp it to my webserver. I could easily accomplish this with some post- build steps, but for the life of me could not find anything useful in Eclipse or with Google. How does Eclipse implement post-building for GWT, and how do I add the custom steps? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: List Box Issue with GWT 1.7
Maybe you should use : setItemSelected(int index, boolean selected) Sets whether an individual list item is selected. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Importing a new .jar file
Hi... I am using gwt and eclipse to build my application.In that I need to use jxl.jar files to access the data that is present in a microsoft excel sheet. My question is : Is it enough if we just add the .jar by right click->build path->configure build path->libraries->add external jars. or do we need to manipulate any other thing. The problem what I am facing is : I have tried to add the jar file as mentioned above and written the code,it is executing but when i open the developed application in the google web tool kit browser it is throwing an error "import jxl cannot be resolved".. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: MySql Driver not found
OK I got ot to work now using a solution I found on this site. Can anyone tellme what this means and how this will effect further works? if you are using eclipse, try to go under Project->properties->google->App Engine and disable "Use Google App Engine" checkbox . With the above turn ON the CONNECTION wont work. The server is running at http://localhost:8080/ Sep 7, 2009 7:39:24 AM com.google.appengine.tools.development.ApiProxyLocalImpl log SEVERE: [1252309164265000] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.String com.ddd.client.GreetingService.greetServer(java.lang.String)' threw an unexpected exception: java.lang.NullPointerException at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure (RPC.java:360) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse (RPC.java:546) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall (RemoteServiceServlet.java:166) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost (RemoteServiceServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1093) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter (TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at com.google.appengine.tools.development.StaticFileFilter.doFilter (StaticFileFilter.java:124) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle (SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle (SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle (ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle (DevAppEngineWebAppContext.java:54) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:313) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 506) at org.mortbay.jetty.HttpConnection$RequestHandler.content (HttpConnection.java:844) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at org.mortbay.io.nio.SelectChannelEndPoint.run (SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run (BoundedThreadPool.java:442) Caused by: java.lang.NullPointerException at com.ddd.server.GreetingServiceImpl.greetServer (GreetingServiceImpl.java:29) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse (RPC.java:527) ... 27 more On Sep 7, 9:48 am, GumbyGWTBeginner wrote: > Found the Quick Fix. > > But still not sure on how to include the code on Server Side or how > this Qucik Fix applies to my problem. > > Stephan > > On Sep 7, 9:18 am, GumbyGWTBeginner wrote: > > > > > How would do this "Quick Fix". Not really sure how you would do this. > > > Stephan > > > On Sep 6, 11:15 pm, Christian Goudreau > > wrote: > > > > Just do a quick fix and the message will desapear. You need this on server > > > side, so you need to do it. > > > > Christian > > > > On Sun, Sep 6, 2009 at 7:53 AM, GumbyGWTBeginner > > > wrote: > > > > > I have downloaded Driver. > > > > I have in Ellcipse -> Build Path -> Add External Archives and added > > > > the ZIP file with the JAR files. And it seamed to add ok. > > > > > I now get the following error in the IDE (seen below) which sort of > > > > suggest that the JAR files wont be available in my server side code. > > > > > Is this correct? and how do I make it so my Code on the server can > > > > connect to theMySQLDB? > > > > >