Re: MVP and tabs :)
Hmmm... would be so nice to see some more code examples :) Anyone? :P Thanks, Stine :) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Error while running unit tests - Servlets in web.xml are not identified
Anyone has any idea on this ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: FireFox 3.6 Can't Debug Anymore :(
same here, used to work with 3.5.7 - but doesn't work anymore with 3.6. When is the plugin expected to be updated? On 21 Jan., 23:38, Jim Douglas jdoug...@basis.com wrote: When you clicked Get the New Version, it should have taken you to a dialogue that says Incompatible Add-ons Found. I'm seeing a dialogue that says: Some of your add-ons won't work with Firefox 3.6, and will be disabled. As soon as they are made compatible, Firefox will update and re-enable these add-ons: Google Web Toolkit Developer Plugin for Firefox 1.0.7263 You should be able to uninstall Firefox 3.6 and revert to Firefox 3.5.7: http://www.mozilla.com/en-US/firefox/all-older.html On Jan 21, 11:56 am, flyingb...@gmail.com flyingb...@gmail.com wrote: I just upgraded my firefox and now I cant debug anymore. Only firefox seem to handle the slow ajax rpc speed in converting all the data i get from the server. chrome and ie seems to not work well. I tried to override the compatibility of the extension and it didnt seem to work. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: HTML5 DND and File Upload...
I've got a little further (or a different error message) - running the compiled code in Firefox 3.6 (as it supports the HTML5 File API) I get the following Javascript Error... _FileReader_handlerManager is undefined - I know nothing about the mechanics of how GWT takes my Java Classes and turns them into Javascript, but I do know that I'm creating the HandlerManager (in the FileReader) as I can debug when I'm attaching the event handlers and the handlerManager is being created and attaching the handler... So can anyone help - as to why the instance of HandlerManager in FileReader is undefined (which I think equates to null in GWT/Java speak)? Cheers, Dave On Jan 21, 4:49 pm, DaveC david.andrew.chap...@googlemail.com wrote: OK, I've have a working implementation in IE, FF and Chrome (using Gears where necessary - GWT 2.0) that allows me to capture when a file is dragged from the desktop and dropped into the browser window. The next part of the puzzle is to grab the file data/content and upload it... grabbing the data is trivial when using the Gears implementation (as Gears creates a Blob as a property of the File - I've implemented my own GWT Gears API as the one on Google Code wasn't compatible with GWT 2). I've created a GWT implementation of the HTML5 File spec (FileList, FileError, File... etc) and have a FileReader that does the reading of the file in browsers that currently support the spec (Firefox 3.6) I've created a bunch of Handlers and Events for the FileReader (loadstart, loadend, progress etc) and I've added a HandlerManager to my FileReader class... and this is where things go wrong... The events come out of the Native (javascript) FileReader which calls (for instance) LoadStartEvent.fire() which gets all the way to the HandlerManager in the FileReader class and then a low level (JS) error is thrown... something like cannot find static it also appears to be not detectecting that (for instance) the event passed in is a LoadStartEvent - it just thinks it's a generic GwtEvent... My question is should I be using HandlerManager? Or is this only supposed to be for Widgets... I cannot believe that something like this is so hard/complicated to do in GWT/Java... when I have a fully working JS version (in a about 20 lines of code) - I'm trying to port to GWT for use inside an Enterprise B2B app... Please, are there any GWT engineers/experts listening that can (at least) point me in the right direction - I realise that there are probably NDAs relating to how to do this in GWT (because of the WAVE Client App) - but just a nod in the right direction would help... My intention is to open source all this once I've got something that works. Cheers, Dave -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email 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 GWT Gadgets Deployed on WSO2 Gadget Server - How to debug
Hi, I'm testing Gadgets and want to use GWT to avoid million of html lines of code. For deployment I want to use WSO2 Gadget Server and NOT the Google IG. However my problem is how can I make debug with this setup? 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: HandlerManager
Just so I know we're talking about the same thing :o) An Blur event will fire when I either tab out of the Widget or when I click somewhere else in the application - is this how you are trying to cause the blur event to fire? (I had the above code working for me in Firefox 3.0/Dev mode GWT 2 - what browser(s) are you viewing this in?) On Jan 21, 6:24 pm, PaulBee pauloabe...@gmail.com wrote: Thank you DaveC, But the BlurHandler doesn't seem to work on the FocusPanel. I've tryed every way of taking the focus away from the panel, and it is just not calling the BLurHandler... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Prevent class conversion when compiling modules
Compilers usually need full type information before they can tell, who calls who. So this will probably add an additional compile step (or maybe change the compiler architecture?) Still, I think your suggested soultion uses a good approach, and you should create an entry in the issue tracker for this. Thinking about it, however, I personally wouldn't include this functionality directly in the compiler: Even if it succeeds and doesn't slow the compiler too much down, it means that the compiler will accept classes that are partially invalid (class B could call anything on class A, the compiler won't be able to check this, if it decides to ignore A). This would create rather strange semantics for my class compiles successfully - it depends on the question, if some methods will be used or not. However, I see two possible alternative solutions: (A) Provide a pre-compiler that removes specially annotated fields. It will be necessary to annotate the methods that access the fields (directly or indirectly), too. Then allow GWTRPC serialization to interact between the two versions of the class. or (B) In addition to source path=.../ in the module xml, there could be an element source-dependency path=.../, which would mean: Don't attempt to compile the java files in that path, but only read their signature (basically treat the classes similar to interfaces). This way, the type information can be provided to the compiler, and it can work as usual. It would require however, that the java file is available to you - you can't use this, if you only have the .class files. [In your case, getaceres, you'd add the package 'pack' to the source- dependency path.] I'm a lot more for (A), because it keeps semantics clean. Keep in mind that in reality, you're trying to use different versions of the class on the server and client. All you want is, that you don't have to write and maintain the two similar versions (which is a legitimate reason). On Jan 22, 8:48 am, getaceres getace...@gmail.com wrote: Let's say that you have Class A with a transient method A.field marked as transient in java or with the GwtTransient annotation: - Mark field A.field and every method in A that uses field as unavailable. - If you find in the client code a class that uses A.field or any of the methods of A marked as unavailable, fail the compilation and inform the user about Line X,Y: Use of transient method A.method. - Now the user either, removes the calling method from its code or removes the transient keyword from the field. In my case, that wold be enough since I will not ever call any of this getter or setters in the GWT code. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: port, eclipse, ff
I copied a project in eclipse with ctrl c, ctrl v to a new name, run it, got the address http://localhost:/DragDropDemo.html? gwt.codesvr=127.0.1.1:9997#BinExample and all css attributes were missing. Then I changed the port number to 8887 and it was working. I changed back to port and styles were missing. On Jan 22, 8:39 am, Ewald Pankratz ewald.pankr...@gmail.com wrote: With something else I mean the wrong page I had before. On Jan 22, 6:30 am, Ewald Pankratz ewald.pankr...@gmail.com wrote: I work with eclipse 3.5, ubuntu 9.10 64 bit, firefox 3.57. I use the lastest release of GWT and GA and had a strange experience with the result of my GWT program. When I run the program with the default address http://localhost:/ DragDropDemo.html?gwt.codesvr=127.0.1.1:9997 I always got a screen which has nothing to do with the program work. Many time I checked the configuration an tried it again. I always got the same strange result, which looked like the result of another program. I even checked with find and grep after the string whichs appeared on the screen. There were no such strings in this project. I also restarted my computer again. Finally I changed the port to 8887 because the response of the browser was far too fast. And then I got the right screen. When I changed back to port , I again got somehing else. There were no other GWT programs runnung. Any idea? A bug? Something to issue? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
java.security.AccessControlException: access denied
Hi all, I am trying to deploy my gwt app to tomcat6 under ubuntu 9.10 and get the (i suppose known to many of you) java.security.AccessControlException: access denied error (Full exception can be found at the end). I have searched through this group and the net in general and found that the Java default security permissions are preventing the serializer from accessing my classes private members (they do have getters and setters) and that i should add to tomcat policy with a file at /etc/tomcat6/policy.d/60gwt.policy the folloing: grant codeBase file:/var/lib/tomcat6/webapps/- { permission java.security.AllPermission; } Although i have done that (and i understand the implications) i still get the same error, no matter how many times i restart the server. The next step would problably be to disable tomcats security manager completely but this app will eventually go into production and i d like to know what's going on here. Also, i'd rather not make any member variables public... Any ideas? cheers SEVERE: Exception while dispatching incoming RPC call java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) at java.security.AccessControlContext.checkPermission (AccessControlContext.java:323) at java.security.AccessController.checkPermission (AccessController.java:546) at java.lang.SecurityManager.checkPermission(SecurityManager.java: 532) at java.lang.reflect.AccessibleObject.setAccessible (AccessibleObject.java:107) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeClass (ServerSerializationStreamWriter.java:694) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl (ServerSerializationStreamWriter.java:730) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeClass (ServerSerializationStreamWriter.java:712) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl (ServerSerializationStreamWriter.java:730) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize (ServerSerializationStreamWriter.java:612) 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:152) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue (ServerSerializationStreamWriter.java:534) at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:609) at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure (RPC.java:383) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse (RPC.java:581) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall (RemoteServiceServlet.java:188) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost (RemoteServiceServlet.java:224) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost (AbstractRemoteServiceServlet.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 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 org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java: 269) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) at org.apache.catalina.security.SecurityUtil.execute (SecurityUtil.java:301) at org.apache.catalina.security.SecurityUtil.doAsPrivilege (SecurityUtil.java:162) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:283) at org.apache.catalina.core.ApplicationFilterChain.access$000 (ApplicationFilterChain.java:56) at org.apache.catalina.core.ApplicationFilterChain$1.run (ApplicationFilterChain.java:189) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:185) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke
GWT 2.0 UI BINDER MVP
Hi, I read several articles about the mvp model in gwt. This guide is very usefull: http://code.google.com/intl/it-IT/webtoolkit/doc/latest/tutorial/mvp-architecture.html. But is not clear to me how to manage the Presenters with UiBinder. For example if I've a tipical application with header,sidebar,content, maybe I'll make at least 3 template (ui.xml). So the App.ui.xml could be something as: g:DockLayoutPanel unit='PX' g:north size='121' my:Header/my:Header /g:north g:center size=200 g:ScrollPanel my:Content/my:Content /g:ScrollPanel /g:center /g:DockLayoutPanel where my:Content is another ui.xml template with the specific content. The entry point is: public class Main implements EntryPoint { @Override public void onModuleLoad() { ServiceAsync rpcService = GWT.create(Service.class); HandlerManager eventBus = new HandlerManager(null); AppController appViewer = new AppController(rpcService, eventBus); appViewer.go(RootPanel.get()); } } But then if I add the Presenter of App.ui.xml only that presenter will be binded to the view!! And the presenter/s of my:Content when(how) can be binded? Can you give me some suggestion or a basic structure of a generic application with this pattern and uibinder? Thanks 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-tool...@googlegroups.com. To unsubscribe from this group, send email to 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 2.0 UI BINDER MVP
Looking so much forward to read the answers to this issue :) I am totally stuck in a similar situation... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: java.security.AccessControlException: access denied
Never mind, i solved the problem. I was actually using file:$ {catalina.base}webapps/- instead of file:/var/lib/tomcat6/webapps that i wrote previously.Tomcat config in /etc/default/tomcat says that if you don't set catalina.base then /var/lib/tomcat6/ is used by default but... On Jan 22, 12:24 pm, nvrs nvior...@gmail.com wrote: Hi all, I am trying to deploy my gwt app to tomcat6 under ubuntu 9.10 and get the (i suppose known to many of you) java.security.AccessControlException: access denied error (Full exception can be found at the end). I have searched through this group and the net in general and found that the Java default security permissions are preventing the serializer from accessing my classes private members (they do have getters and setters) and that i should add to tomcat policy with a file at /etc/tomcat6/policy.d/60gwt.policy the folloing: grant codeBase file:/var/lib/tomcat6/webapps/- { permission java.security.AllPermission; } Although i have done that (and i understand the implications) i still get the same error, no matter how many times i restart the server. The next step would problably be to disable tomcats security manager completely but this app will eventually go into production and i d like to know what's going on here. Also, i'd rather not make any member variables public... Any ideas? cheers SEVERE: Exception while dispatching incoming RPC call java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) at java.security.AccessControlContext.checkPermission (AccessControlContext.java:323) at java.security.AccessController.checkPermission (AccessController.java:546) at java.lang.SecurityManager.checkPermission(SecurityManager.java: 532) at java.lang.reflect.AccessibleObject.setAccessible (AccessibleObject.java:107) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali zeClass (ServerSerializationStreamWriter.java:694) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali zeImpl (ServerSerializationStreamWriter.java:730) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali zeClass (ServerSerializationStreamWriter.java:712) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali zeImpl (ServerSerializationStreamWriter.java:730) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali ze (ServerSerializationStreamWriter.java:612) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write Object (AbstractSerializationStreamWriter.java:129) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter $ValueWriter$8.write(ServerSerializationStreamWriter.java:152) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali zeValue (ServerSerializationStreamWriter.java:534) at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:609) at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure (RPC.java:383) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse (RPC.java:581) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall (RemoteServiceServlet.java:188) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost (RemoteServiceServlet.java:224) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost (AbstractRemoteServiceServlet.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 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 org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java: 269) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) at org.apache.catalina.security.SecurityUtil.execute (SecurityUtil.java:301) at org.apache.catalina.security.SecurityUtil.doAsPrivilege (SecurityUtil.java:162) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:283) at org.apache.catalina.core.ApplicationFilterChain.access$000 (ApplicationFilterChain.java:56) at org.apache.catalina.core.ApplicationFilterChain$1.run (ApplicationFilterChain.java:189) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:185)
Re: MVP and tabs :)
Hmm.. maybe I should be a bit more specific? :} When I study Google's Contacts example I see for example the following flow 1. User clicks add contact button 2. AddContactEvent is added to eventBus 3. AppController reacts upon this event and adds add to the History 4. AppController reacts upon the History change and calls go on a EditContactPresenter 5. EditContactPresenter empties container and adds an adds his own view object ... and that happens every time the user clicks the add contact button! Hmm... in the case of a tab layout panel... the child widgets are only added once... not every time the user clicks a tab... Hmmm... I simply do not see how my hierarchic presenters are put together!!! :/ Any input will be greatly appreciated :) Thanks a lot from Stine -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MVP and tabs :)
5. EditContactPresenter empties container and adds his own view object* -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: incubator ScrollTable
this might sound like a stupid workaround ... but can't you add an if statement or something to check if the table will have only one column ?! and for that use setColumnWidth ... i know that this is not a real answer but this is the only thing that comes into my mind without trying the real source/objects to see another trick hope it helps good luck On Jan 22, 2:57 am, Alexei Telles alexeitel...@gmail.com wrote: Hi, I'm just starting using the gwt-incubator. I need to make a table, so I am using a FixedWidthFlexTable to the header and a FixedWidthGrid to the dataTable (content of the table). I have a procedure that mounts the dataTable The problem that I am having is: when my dataTable have more than one column, the dataTable is ok I am setting the width to 100%, so my table fits my div at all. But when my table have only one column, I don't know why the column width stays to short Of course, if I use the method setColumnWidth of the FixedWidthGrid works fine, but I use the same procedure to generate all tables of my application, so I can't do that!!! I don't know if I gave a good explanation about my problem. I am trying to use the Firebug to discover what i am doing wrong, but the HTML code generated is a little confused. Is ther anything in the FixedWidthGrid about the first column of the table, or is there a way to I set all widths of my table like automatic? I appreciate any help 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-tool...@googlegroups.com. To unsubscribe from this group, send email 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 query
Any comments on when gwt query will be integrated with GWT? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email 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 hosting
To lay GWT necessarily need a hosting with support for Tomcat and other complex servers? And you can do without such complications? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: incubator ScrollTable
m I don't know if is the better solution, this maybe: public void afterLoad () { if ( tablaScroll.getDataTable().getColumnCount() == 1) { // setColumnWitdh } else { // otra cosa. } } regards.! On Jan 22, 9:46 am, Ashar Lohmar asharloh...@gmail.com wrote: this might sound like a stupid workaround ... but can't you add an if statement or something to check if the table will have only one column ?! and for that use setColumnWidth ... i know that this is not a real answer but this is the only thing that comes into my mind without trying the real source/objects to see another trick hope it helps good luck On Jan 22, 2:57 am, Alexei Telles alexeitel...@gmail.com wrote: Hi, I'm just starting using the gwt-incubator. I need to make a table, so I am using a FixedWidthFlexTable to the header and a FixedWidthGrid to the dataTable (content of the table). I have a procedure that mounts the dataTable The problem that I am having is: when my dataTable have more than one column, the dataTable is ok I am setting the width to 100%, so my table fits my div at all. But when my table have only one column, I don't know why the column width stays to short Of course, if I use the method setColumnWidth of the FixedWidthGrid works fine, but I use the same procedure to generate all tables of my application, so I can't do that!!! I don't know if I gave a good explanation about my problem. I am trying to use the Firebug to discover what i am doing wrong, but the HTML code generated is a little confused. Is ther anything in the FixedWidthGrid about the first column of the table, or is there a way to I set all widths of my table like automatic? I appreciate any help 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to set pagination or add scroll bar to the TabBar of an TabPanel
... maybe you should try adding the content in a Panel and that panel add it to another panel (HorizontalPanel maybe for both) and hack the style of the last one adding overflow:hidden TabPanel tp = new TabPanel(); tp.setWidth(500px); // or whatever Widget content = ... // the realcontent HorizontalPanel hp1 = new HorizontalPanel(); hp1.setWidth(100%); hp1.add(content); HorizontalPanel hp2 = new HorizontalPanel(); hp2.setWidth(100%); hp2.getElement().getStyle().setProperty(overflow,hidden); tp.add(tab1,hp2); the trick will be to find out when the inner panel has bigger width than the outer panel(or the deck of the tabpanel) an then show the buttons and on the buttons onClick() you'll do something like hp2.getElement ().setScrollLeft(incremented/decremented value) ... hope it will be any help good luck On Jan 20, 8:15 pm, blopes bruno.lourenco.lo...@gmail.com wrote: Hi! I would like to add some kind of slide items to the TabPanel TabBar . I am adding dynamically labels to the tab and when the length of all added labels is greater than the tab width the symbol less() and greater() should appear in each side to be able to scroll left and right. Or instead of that an scroll bar. I would prefer the and . Do you have any idea how to do it ? Thank you, Bruno -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email 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 and Firefox 3.6
Hi! Is there a way to make the GWT development mode plugin work with Firefox 3.6? I just installed the latter, and it says the current version of the plugin isn't supported. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Adding a script to BODY in runtime.
Hi, I need to add a script in runtime (in the constructor of a Widget)... I ve tryied several ways and no one works on the 3 browsers (FF, IE, CH) I have read this post: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/9bb6d7cd75a8f3f7/c27ab6616257d778?lnk=gstq=+2146827688#c27ab6616257d778 and I have exactly the same issue... using this option: Element script = DOM.createElement(script); script.setInnerHTML(alert('prueba');); RootPanel.getBodyElement().appendChild(script); works fine on CHROME and FF... but is not working on IE(8), I get the same error described on the post (but in english, not in german) com.google.gwt.core.client.JavaScriptException: (Error): Unknown runtime error number: -2146827688 description: Unknown runtime error at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript (BrowserChannelServer.java:195) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke (ModuleSpaceOOPHM.java:120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative (ModuleSpace.java:507) I ve tryed several permutation of what is recomended (very subspecifyed) in the third post... Element script = DOM.createElement(script); script.setInnerText(alert('prueba');); RootPanel.getBodyElement().appendChild(script); --- Element script = DOM.createElement(script); script.setAttribute(type, text/javascript); script.setAttribute(language, javascript); script.setInnerText(alert('prueba');); RootPanel.getBodyElement().appendChild(script); -- Element script = DOM.createElement(script); script.setPropertyString(type, text/javascript); script.setPropertyString(language, javascript); script.setInnerText(alert('prueba');); RootPanel.getBodyElement().appendChild(script); and I have the same result every time. I' m open to fresh new ideas to get my goal, I need to add a script in the body in the constructor of a widget... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MVP and tabs :)
Stop spamming this group. Read the docs and take some time trying to solve the problem yourself before shooting off an email to the group. And can you stop with the :) and in every single post of yours! On Fri, Jan 22, 2010 at 7:25 AM, Stine Søndergaard stinespl...@gmail.comwrote: 5. EditContactPresenter empties container and adds his own view object* -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MVP and tabs :)
So sorry! Did not mean to spam! But if that is how it is seen then I will of course stop posting. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Chrome 4.x Must Empty Cache after first visit to a GWT site
Chrome 4.0.249.64 GWT 2 SmartGWT 2 I have my war deployed on a Linux Server served by Tomcat via Apache the first time I bring up the site in my Chrome browser it works great, and very fast. If I close the browser and try to bring it up again I only get a blank page with this at the top --, the source of which is my GWT HTML page, however it looks as though Chrome has done something to it since the source has about 1.5 of the page it's downloading (duplicates after a full source of the page it starts over). The only way around this is if I go into the browser and click Options, Personal Stuff, click Clear Browsing Data (under Browsing data:) and Select Empty the Cache from period Everything, then close and reopen the browser. Has anyone else seen this issue? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MVP and tabs :)
One post - one problem. Nothing more. 2010/1/22 Stine stinespl...@gmail.com So sorry! Did not mean to spam! But if that is how it is seen then I will of course stop posting. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Regards, Alexander -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Urgent How can I deploy android application to Google App Engine ???, I am using GWT
i am using GWT as development tool. I have made a small android application that I want to test in Google cloud environment. is it possible to configure Android project so that Is it possible to use Google app engine ? if so how ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email 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 calendar add ons
Is it possible to use the GWT to make a google calendar add on? I want to write an add on that would tell me know many hours of a particular event I have done for the last couple of month and generate a bill according to the hours. So if I spent 10 hours last week working on a certain project, the program should look through the calendar, and look at last week's schedule, calculate that there is 10 hours I spent, and generate a bill accordingly. Can I do that with GWT? 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Problem with GWT.create()
I'm having a problem with GWT.create() which I suspect has more to do with my understanding thanGWT.create() I'm using two different libraries that generate handlers for classes. Library A: InterfaceForLibraryAPerson liba = GWT.create(Person.class); // Person implements MarkerA Library B: InterfaceForLibraryBPerson libb = GWT.create(Person.class); // Person also implements MarkerB I'm actually using these two lines in code, but the first one is giving me a ClassCastException (it's actually returning an InterfaceForLibraryB). I'm not actually surprised. My very limited understanding of GWT tells me that their respective generators both generate code and unfortunately, B is winning out on A. Is this behaviour normal ? Would there be a way to get around this problem ? I have source for both libraries, so I might be able to fix this). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: about the limitation of MVC
Take a look at http://java.sun.com/j2se/1.4.2/docs/api/java/beans/PropertyChangeSupport.html On Jan 20, 7:42 am, yu.cu...@126.com yu.cu...@126.com wrote: Hi, Recently I am researching the MVC in GWT and meet a problem. According to my understanding, in essentially, the benefits of MVC are 1) decouple the viewer and model 2) make the widgets coordinating each other. And the second point is very important to my application. So my question is how to make several of widgets work well in a panel when there is no abstracted model under these widgets. For example, one of a simple case is how to implement this functionality of making one button becoming grayed if detecting a specific button is clicked by twice. In fact, it's a typical FSM problem, what we should do is building the FSM rules and executing the FSM to update the view/widgets. so, there is no MVC model instead it is the viewer and FSM based controller model. Does any one meet the same problem or have the same solution? Thanks Yu -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: uibinder specs?
In gwt 2.0 installation folder you have example of Mail application. Maybe this example will help understand idea of UIBinder. But If you find new examples, let me know :) On 22 янв, 10:01, chrisgo...@gmail.com chrisgo...@gmail.com wrote: I'm really excited about this new feature in GWT (uibinding). I've already put together a small app that makes use of it and really see its advantages. So far, except for the tutorial listed here:http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html I've had to dig for examples in posts and such to learn my way around. For example, I had something like this: ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui' ... ui:style ... /ui:style g:HTMLPanel styleName='{style.panel}' div class={style.hitDiv} Your refined query will return span ui:field='numHits' class='{style.largefont}' / hit(s) /div g:Button ui:field='apply'Apply Refinement/g:Button g:Button ui:field='cancel'Cancel/g:Button /g:HTMLPanel /ui:UiBinder And found out that I can't do something like this in my code... (makes perfect sense why...) @UiHandler(apply) void handleClick(ClickEvent e) { Window.alert(Clicked Apply); } @UiHandler(cancel) void handleClick(ClickEvent e) { Window.alert(Clicked Cancel); } I ended up finding an example elsewhere showing it had to be done like this: �...@uihandler(apply) void onApplyHandleClick(ClickEvent e) { Window.alert(Clicked Apply); } @UiHandler(cancel) void onCancelHandleClick(ClickEvent e) { Window.alert(Clicked Cancel); } Where is this documented? :) If someone has some useful links to this stuff, I'd really appreciate it. Thanks, Chris -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email 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-phys2d: 2D physics engine for GWT
I quasi-ported the Phys2d Java physics library to run with GWT and gwt- g2d (for HTML5 canvas rendering). You can see the result (and download the library source) here: http://edgeofvision.com/2010/01/22/initial-release-of-gwt-phys2d-javascriptgwt-physics-engine/ http://gwt-phys2d.appspot.com If anybody's interested in actually using this and/or contributing, I'd be happy to clean things up and create a Google Code project for it. It was pretty much just a self-education project though, so I probably won't be doing too much more with it myself. I imagine it might be handy for a GWT game programming project out there, though. -- Neil -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
ClassCastException in DevMode on GWT 2.0 w/ Overlay Types
I'm trying to do this: public interface Alert { public ArrayListAlert getOtherAlerts(); } Client Code: public class JSAlert extends JavaScriptObject implements Alert { public final native ArrayListAlert getOtherAlerts() /*-{ return this.alerts; }-*/; } another class: public void onModuleLoad() { JsonpRequestBuilder jsonp = new JsonpRequestBuilder(); ... public void onSuccess(JsArrayJSAlert list) { for (int i=0; i list.length; i++) { JSAlert alert = list.get(i); ArrayListAlert more = alert.getOtherAlerts(); } } Now.. in the browser.. this works great. But if I run this in DevMode, I get a ClassCastException that alert.getOtherAlerts(); is a JsArrayAlert and can't be cast to arraylist. Any ideas why this works in the browser.. no Js errors etc.. but in hosted mode/dev mode, it freaks out? My goal, is to have a client side Javascript Overlay Type that can implement that same interface as a server side object.. so marshalling to/from JSON is made easier.. and so the server side object can have a nice basic java.util.ArrayList to work with. Thanks, Roger -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: OOPHM IE plugin doesn't work
I am having the same problem: I ran the plugin installer and ran regsvr32.exe for the oophm.dll from the command line, but IE still asks for a new plugin when I try to open my devmode project in the browser. (32-bit Vista Business, IE 7) The registry keys are as follows: Key Name: HKEY_CLASSES_ROOT\CLSID\{1D6156B6-002B-49E7-B5CA- C138FB843B4E} Data:plugin Class Value 1 Name:AppID Type:REG_SZ Data:{F9365E53-5A14-47F3-BF1D-10CAAB815309} Key Name: HKEY_CLASSES_ROOT\CLSID\{1D6156B6-002B-49E7-B5CA- C138FB843B4E}\Control Key Name: HKEY_CLASSES_ROOT\CLSID\{1D6156B6-002B-49E7-B5CA- C138FB843B4E}\InprocServer32 Data:C:\Users\matt\AppData\Local\Google\Google Web Toolkit\Developer Plugin\IE\oophm.dll Value 1 Name:ThreadingModel Data:Apartment Key Name: HKEY_CLASSES_ROOT\CLSID\{1D6156B6-002B-49E7-B5CA- C138FB843B4E}\MiscStatus Data:0 Key Name: HKEY_CLASSES_ROOT\CLSID\{1D6156B6-002B-49E7-B5CA- C138FB843B4E}\MiscStatus\1 Data:131473 Key Name: HKEY_CLASSES_ROOT\CLSID\{1D6156B6-002B-49E7-B5CA- C138FB843B4E}\ProgID Data:oophm.plugin.1 Key Name: HKEY_CLASSES_ROOT\CLSID\{1D6156B6-002B-49E7-B5CA- C138FB843B4E}\Programmable Key Name: HKEY_CLASSES_ROOT\CLSID\{1D6156B6-002B-49E7-B5CA- C138FB843B4E}\ToolboxBitmap32 Data:C:\Users\matt\AppData\Local\Google\Google Web Toolkit\Developer Plugin\IE\oophm.dll, 102 Key Name: HKEY_CLASSES_ROOT\CLSID\{1D6156B6-002B-49E7-B5CA- C138FB843B4E}\TypeLib Data:{9259F105-BE55-4BF6-B7CE-D0AA878C1BA6} Key Name: HKEY_CLASSES_ROOT\CLSID\{1D6156B6-002B-49E7-B5CA- C138FB843B4E}\Version Data:1.0 Key Name: HKEY_CLASSES_ROOT\CLSID\{1D6156B6-002B-49E7-B5CA- C138FB843B4E}\VersionIndependentProgID Data:oophm.plugin However, they disappear when I reboot! and I have to regsvr32.exe again. Please help. I want to use GWT with PHP on the server and ajax- style stuff that can't run in devmode with the same-server restrictions of modern browsers, so I need this to work on IE. 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Saving page and running it locally breaks the functionality
Hello Everyone! I have successfully created a simple application using GWT. It works as expected via my local host via address: http://localhost:/Sample.html I need something more :) I wish when I save the web page to my local disk via Save page as from browser, I would like it to be running if I open it with it with a browser (with internet access) via file:/// C:/Documents%20and%20Settings/User.Name/Desktop/Sample.html Unfortunately, it does not work. What can you suggest? There is this generated JS file I noticed, how can emulate this one working? 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-tool...@googlegroups.com. To unsubscribe from this group, send email 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 Plugin Change Folder
I have a web project in IBM RAD 7.5 that have folder WebContent instead war. Someone have a solution for plugin of google or I have to change the name of folder? 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No Jetty Tab in Eclipse
I am running Eclipse 3.5 Galileo and just upgraded to GWT 2.0 I am able to run my application in Firefox with the add-on but I cannot figure out how to show the Jetty tab next to the development mode tab. This was clearly not an issue in GWT 1.71 but is really annoying for debugging any server issues. Please advise how to enable this feature again. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Two TabBar controls with different styles?
How it would be possible to have two tab bar controls on a page with different styles? Names of dependent styles seem to be hardcoded in the TabBar control implementation. So, setting upon setting stylename to a certain style does not affect dependent styles and thus things get broken. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: javascript error (invalid Argument)
Works fine for me on IE 8 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Thousands of Spam emails from Google Groups
I am now getting several emails a minute to my gmail from various Google Groups (including this one). I have never joined any Google Groups (till now to write this) and when I click to unsubscribe I get confirmation that I am not a member yet continue to receive hundreds of mails each time I log in to my Outlook. I think it likely that someone has joined several groups, including GWToolkit, and are bouncing their mail over to my address maliciously- if so how can I put a stop to it? Dave Westy -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Overlay types, ArrayList, JsArray... DevMode vs stand alone browser
I made a java interface with this: ArrayListMyObject getMyObjects(); I then made a serverside class implement this. I also made something like this: public class JSMyObjectHolder extends JavaScriptObject implements MyInterface { public ArrayListMyObject getMyObjects() /*-{ return this.myObjects; }-*/; So.. if I deploy/run this.. call a serlvet that returns json.. and use JSONParser to get myself a JSMyObjectHolder... If i'm in Firefox.. stand alone.. no hosted mode/dev mode.. if I call getMyObjects().. I can get back an array list.. iterate over it etc... But.. if I try in GWT 2.0 to do this in DevMode... I get a class cast exception, as it *wants* to return it as a JsArrayMyObject (which *technically* makes sense.. I mean, a collection, in javascript, on the client side is implemented via JsArray). But like.. why does DevMode die.. but running a regular browser proceed perfectly? My goal, is to have one interface that I can implement both ont he client and server side.. so I can user overlay types on the client .. and POJO's on the server.. But of course, it is important to have access to DevMode :) Thanks, Roger -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: port, eclipse, ff
Hello Dear, I had the same platform and situation. try my solution: compile the project *and make sure the progress of compilation finished* before you run again. and by the way , for port configuration: Run as- Run Configuration -make sure to check the *Automatically select an unused port*. and stop current working instance before running new one : using development mode panel. All the best. 2010/1/22 Ewald Pankratz ewald.pankr...@gmail.com I work with eclipse 3.5, ubuntu 9.10 64 bit, firefox 3.57. I use the lastest release of GWT and GA and had a strange experience with the result of my GWT program. When I run the program with the default address http://localhost:/ DragDropDemo.html?gwt.codesvr=127.0.1.1:9997 I always got a screen which has nothing to do with the program work. Many time I checked the configuration an tried it again. I always got the same strange result, which looked like the result of another program. I even checked with find and grep after the string whichs appeared on the screen. There were no such strings in this project. I also restarted my computer again. Finally I changed the port to 8887 because the response of the browser was far too fast. And then I got the right screen. When I changed back to port , I again got somehing else. There were no other GWT programs runnung. Any idea? A bug? Something to issue? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- رَبَّنَا لاَ تُزِغْ قُلُوبَنَا بَعْدَ إِذْ هَدَيْتَنَا وَهَبْ لَنَا مِن لَّدُنكَ رَحْمَةً إِنَّكَ أَنتَ الْوَهَّابُ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Good book to learn GWT
Hi everybody, I have just begun learning GWT and was wondering if anybody knows a decent book to get started - not too basic possibly. I have found a few that seem rather good, but they all date back to 2008, maybe a bit outdated? Thanks, Dan -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: SplitLayoutPanel
Hi, since you seem to have solved your problem, would you mind following up what exactly one has to do to get a working SplitLayoutPanel for the example code? I have the same problem you posted in your original message, read all of the followups but still have no clue if I need to create a css-File with a certain name and certain content, or if I need to learn UiBuilder and somehow build it in there or ... Since I (as probably quite a few others lured to GWT by its implicit premise to build web apps without HTML/CSS knowledge) don't have much of a web development background, a foolproof step-by-step guide would be much appreciated. Marcus On Jan 12, 1:33 pm, Stine stinespl...@gmail.com wrote: Hello :) I am having problems making my panels display the way they should - they look almost empty!! :( For instance when I have this code... public final void onModuleLoad() { SplitLayoutPanelp = newSplitLayoutPanel(); p.addWest(new HTML(navigation), 128); p.addNorth(new HTML(list), 384); p.add(new HTML(details)); RootLayoutPanel.get().add(p); } ... I see the following in my browser... navigation list details ... which is not very fancy! ;D What am I missing?! :/ Thanks a lot, Stine :) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: port, eclipse, ff
may try Project- clean and compile again : *Notice the message at console and print it out* 2010/1/22 Ewald Pankratz ewald.pankr...@gmail.com With something else I mean the wrong page I had before. On Jan 22, 6:30 am, Ewald Pankratz ewald.pankr...@gmail.com wrote: I work with eclipse 3.5, ubuntu 9.10 64 bit, firefox 3.57. I use the lastest release of GWT and GA and had a strange experience with the result of my GWT program. When I run the program with the default address http://localhost:/ DragDropDemo.html?gwt.codesvr=127.0.1.1:9997 I always got a screen which has nothing to do with the program work. Many time I checked the configuration an tried it again. I always got the same strange result, which looked like the result of another program. I even checked with find and grep after the string whichs appeared on the screen. There were no such strings in this project. I also restarted my computer again. Finally I changed the port to 8887 because the response of the browser was far too fast. And then I got the right screen. When I changed back to port , I again got somehing else. There were no other GWT programs runnung. Any idea? A bug? Something to issue? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- رَبَّنَا لاَ تُزِغْ قُلُوبَنَا بَعْدَ إِذْ هَدَيْتَنَا وَهَبْ لَنَا مِن لَّدُنكَ رَحْمَةً إِنَّكَ أَنتَ الْوَهَّابُ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Some general questions
Hi I'm not really having an issue of some kind. I just have some general question on how to approach GWT. 1) I recently read and experimented with the new declarative ui. Despite being easier to maintain and faster to develop, does it bring any performance drawback compared to the old programmatic approach? 2) Could you someone give me a hint when should a new Entry Point class be created or in that matter - a new HTML page? It probably depends mostly on my business logic, but still.. 3) I'm using RPC services, and in cases when I have data table paging, I need to make 2 calls - one to get the count of the results, and the other one to get a page of results. Is there another way to synchronize those calls other than nesting the second call into the first ones onSuccess() method? My code looks like this: onSuccess() { onSuccess() { doRendering... Is that the correct way of dealing with paging? Thank you. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Two TabBar controls with different styles?
Create dummy wrapper and use myFirstTab.setStyleName(wrapper-for-tab-one) mySecondTab.setStyleName(wrapper-for-tab-two) and override the styles for the default tab by just adding .wrapper-for-tab-one (two) in front of each selector. On Fri, Jan 22, 2010 at 1:20 PM, Tolick anatoliy.arteme...@gmail.comwrote: How it would be possible to have two tab bar controls on a page with different styles? Names of dependent styles seem to be hardcoded in the TabBar control implementation. So, setting upon setting stylename to a certain style does not affect dependent styles and thus things get broken. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to 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-phys2d: 2D physics engine for GWT
[+gwt-contrib] That's pretty impressive. Have you tried it on any larger scene graphs? I'd love to see how it scales. It looks quite smooth on Chrome already. On Fri, Jan 22, 2010 at 3:05 AM, Neil Halelamien ne...@caltech.edu wrote: I quasi-ported the Phys2d Java physics library to run with GWT and gwt- g2d (for HTML5 canvas rendering). You can see the result (and download the library source) here: http://edgeofvision.com/2010/01/22/initial-release-of-gwt-phys2d-javascriptgwt-physics-engine/ http://gwt-phys2d.appspot.com If anybody's interested in actually using this and/or contributing, I'd be happy to clean things up and create a Google Code project for it. It was pretty much just a self-education project though, so I probably won't be doing too much more with it myself. I imagine it might be handy for a GWT game programming project out there, though. -- Neil -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to 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 query
I asked that about a week ago. There are no current plans for it. On Jan 22, 6:47 am, Johan Rydberg johan.rydb...@edgeware.tv wrote: Any comments on when gwt query will be integrated with GWT? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: port, eclipse, ff
Clean an compile didn't help. When I choose Automatically select an unused port it's working. On Jan 22, 10:01 am, Hind AbdolKhaleq habdolkha...@gmail.com wrote: may try Project- clean and compile again : *Notice the message at console and print it out* 2010/1/22 Ewald Pankratz ewald.pankr...@gmail.com With something else I mean the wrong page I had before. On Jan 22, 6:30 am, Ewald Pankratz ewald.pankr...@gmail.com wrote: I work with eclipse 3.5, ubuntu 9.10 64 bit, firefox 3.57. I use the lastest release of GWT and GA and had a strange experience with the result of my GWT program. When I run the program with the default address http://localhost:/ DragDropDemo.html?gwt.codesvr=127.0.1.1:9997 I always got a screen which has nothing to do with the program work. Many time I checked the configuration an tried it again. I always got the same strange result, which looked like the result of another program. I even checked with find and grep after the string whichs appeared on the screen. There were no such strings in this project. I also restarted my computer again. Finally I changed the port to 8887 because the response of the browser was far too fast. And then I got the right screen. When I changed back to port , I again got somehing else. There were no other GWT programs runnung. Any idea? A bug? Something to issue? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- رَبَّنَا لاَ تُزِغْ قُلُوبَنَا بَعْدَ إِذْ هَدَيْتَنَا وَهَبْ لَنَا مِن لَّدُنكَ رَحْمَةً إِنَّكَ أَنتَ الْوَهَّابُ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to 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 hosting
GWT by itself doesn't need anything more then just plain old http server. GWT application that doesn't do rpc call to the server can be hosted on about anything. If you want to make rpc calls to services things get a bit more complicated as you need to host the service somewhere, but it doesn't have to be tomcat or Java based server either. On Jan 22, 5:50 am, Florentine3D artem.boro...@gmail.com wrote: To lay GWT necessarily need a hosting with support for Tomcat and other complex servers? And you can do without such complications? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to 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 2.0 - Eclipse Plugin - Maven: 404 running in DevMode
Hi Jim, I believe the solution here is to just add a -startupUrl parameter to your Java launch configuration. In the absence of that parameter, DevMode tries to guess which HTML host page you want to open, but I don't think it searches subdirectories. You can instead tell it exactly which page to open with an argument like: *-startupUrl /subdir/page.html* Regarding the Web Application launch configuration: there are currently some incompatibilities between the Google Plugin for Eclipse and typical Maven usage, so you're probably better off for now continuing to use a regular Java launch. However, we're planning on addressing this issue in the next release of the plugin, so stay tuned. Keith On Mon, Jan 18, 2010 at 9:35 AM, Jim Adkins ade...@gmail.com wrote: I'm receiving a 404 status code when attempting to use the GWT 2.0 Eclipse plug-in. The project was originally created with GWT 1.7 and used an Eclipse Run Configuration based on a Java Application run type. I modified the run configuration to use DevMode and GWT 2.0 library. When I copy the DevMode dialog supplied URL into a browser, I receive a 404. I suspect that this is occurring, because our project does not host the project_name.hmtl file directly under the war directory, but in a sub directory under war. We are using Maven2 and are setting a gwt.madule.alias as well. I have noticed that all of the documentation for the GWT 2.0 Eclipse plugin indicates that the the Web Application run type is the standard way to designate a GWT launch profile... Any ideas? 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to 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 hosting
While it is true that you could just use the javascript generated by GWT and hook it to any back end (assuming that you are using REST or POX and not GWTRPC), the real value add in using GWT is with J2EE development. Otherwise, you could just use one of the other great RIA JS libraries such as jQuery or YUI. There are now a growing list of ISPs whose web hosting packages include Tomcat. I use Network Solutions and their large Linux package includes what they call JSP which means you upload a war file into a Tomcat server. Obviously, any ISP that offers a VPS package will do the job too. On Jan 22, 9:25 am, Djabi george.djaba...@gmail.com wrote: GWT by itself doesn't need anything more then just plain old http server. GWT application that doesn't do rpc call to the server can be hosted on about anything. If you want to make rpc calls to services things get a bit more complicated as you need to host the service somewhere, but it doesn't have to be tomcat or Java based server either. On Jan 22, 5:50 am, Florentine3D artem.boro...@gmail.com wrote: To lay GWT necessarily need a hosting with support for Tomcat and other complex servers? And you can do without such complications? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Building a Calendar Widget like Google Calendar with GWT advisable?
Useful hint, one can certainly use the calendar of this lib as a reference implementation... Thanks! On 21 Jan., 19:02, Paul Robinson ukcue...@gmail.com wrote: Seehttp://code.google.com/p/ftr-gwt-library/ Paul mstu...@googlemail.com wrote: Hi All, I am quite new to GWT and currently evaluating this technology. For a project I need to build an application containing a calendar such as Google Calendar where the user can create and move events around. The SmartGWT lib contains a Calendar Widget but I want to build my own due to several reasons. However, when using the SmartGwt Calendar widget, it seems very slow. Of course, it doesn't necessarily mean that building such kind of widgets with GWT will be slow. However, the alternative to using GWT would be implenenting it in pure JavaScript and using some of the libs such as Prototype, Dojo, etc. I am pretty familiar with. Has anyone build a Calendar in GWT or something similar and is willing to share some experience? Thanks very much! Scholle -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: javascript error (invalid Argument)
Thanks Paul, you are quite right, it does work fin in IE8, I just tried it on another PC, and it works! So its just IE7 then... hm and G! 2010/1/22 Paul Stockley pstockl...@gmail.com Works fine for me on IE 8 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to 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 hosting
Take a look at Google Application Engine. It is free. Of course, if you get high traffic, then it will cost you. On 01/22/2010 04:38 PM, gengstrand wrote: While it is true that you could just use the javascript generated by GWT and hook it to any back end (assuming that you are using REST or POX and not GWTRPC), the real value add in using GWT is with J2EE development. Otherwise, you could just use one of the other great RIA JS libraries such as jQuery or YUI. There are now a growing list of ISPs whose web hosting packages include Tomcat. I use Network Solutions and their large Linux package includes what they call JSP which means you upload a war file into a Tomcat server. Obviously, any ISP that offers a VPS package will do the job too. On Jan 22, 9:25 am, Djabigeorge.djaba...@gmail.com wrote: GWT by itself doesn't need anything more then just plain old http server. GWT application that doesn't do rpc call to the server can be hosted on about anything. If you want to make rpc calls to services things get a bit more complicated as you need to host the service somewhere, but it doesn't have to be tomcat or Java based server either. On Jan 22, 5:50 am, Florentine3Dartem.boro...@gmail.com wrote: To lay GWT necessarily need a hosting with support for Tomcat and other complex servers? And you can do without such complications? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Event disposals
I am a little confused about event disposal in GWT. Should I always keep a reference to all HandlerRegistration objects whenever I attach a handler to something (e.g. image, links etc.) and then dispose them using .removeHandle upon widget detach ? Will not doing so end up in memory leak ? Or do the events get disposed of upon Widget detach automatically ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to 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 + Eclipse doesn't work. Attempted to beginRule: R/, does not match outer scope rule
Can you post the full stack trace? Also, have you always had this problem, or did you upgrade the plugin (or other plugins) in your Eclipse installation lately? Are you using any Eclipse plugins for source control? On Thu, Jan 21, 2010 at 8:39 AM, MaEcTPo olegik...@gmail.com wrote: Hi, I have a trouble with Eclipse and GWT. My GWT projects don't work. All of them. They compile, but don't run in hosted mode. When I start Eclipse I receive popup with error. In eclipse error log I have this: java.lang.IllegalArgumentException: Attempted to beginRule: R/, does not match outer scope rule: P/MySmartGWT at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63) . And it is for all gwt projects. When I run project I receive a link, for example http://localhost:/MySmartGWT2.html?gwt.codesvr=127.0.1.1:9997, but when I open it in FireFox - nothing happens. There are not logs, errors or something like that. I use Ubuntu 9.10, Eclipse 3.5, GWT 2.0. In some project I am playing with SmartGWT. Source control - mercurial. Best regars, Oleg. P.S. I know that my English is not very well, but I am learning it now. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to 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 Plugin Change Folder
As it stands now, there is no way to configure the name of the folder that the Google Plugin for Eclipse uses; the folder must be named war. However, we're currently working on a change make the war folder name configurable. On Fri, Jan 22, 2010 at 5:48 AM, Luca Servalli luca.serva...@gmail.comwrote: I have a web project in IBM RAD 7.5 that have folder WebContent instead war. Someone have a solution for plugin of google or I have to change the name of folder? 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: No Jetty Tab in Eclipse
Hi, Are you using the Development Mode View in Eclipse, or are you using GWT's Development Mode window? If you're talking about the view, it does not have an entry for the server; server messages are printed out to Eclipse's console view. Rajeev On Fri, Jan 22, 2010 at 3:53 AM, Fletch fletcherfow...@gmail.com wrote: I am running Eclipse 3.5 Galileo and just upgraded to GWT 2.0 I am able to run my application in Firefox with the add-on but I cannot figure out how to show the Jetty tab next to the development mode tab. This was clearly not an issue in GWT 1.71 but is really annoying for debugging any server issues. Please advise how to enable this feature again. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: I18NSync and plural forms
On 21 Jan., 23:36, Thomas Broyer t.bro...@gmail.com wrote: On 20 jan, 21:23, thm gmtest...@googlemail.com wrote: Hey gurus, using GWT 2.0 I fiddled around with i18n and plural forms. From the examples I thought I could write addressBookTab_removeAddressConfirmationDialogTitle=Remove {0,number} Addresses? addressBookTab_removeAddressConfirmationDialogTitle[one]=Remove Address? in my properties file and then run the I18NSync tool and have my java interface generated. However, what I get is: /** * Translated Remove {0,number,integer} Addresses?. * * @return translated Remove {0,number,integer} Addresses? */ @DefaultMessage(Remove {0,number,integer} Addresses?) @Key(addressBookTab_removeAddressConfirmationDialogTitle) String addressBookTab_removeAddressConfirmationDialogTitle(String arg0); /** * Translated Remove Address?. * * @return translated Remove Address? */ @DefaultMessage(Remove Address?) @Key(addressBookTab_removeAddressConfirmationDialogTitle[one]) String addressBookTab_removeAddressConfirmationDialogTitle_one_(); Even worse, when I manually write a method like @DefaultMessage(Remove {0,number} Addresses?) @PluralText({one, Remove Address?}) String addressBookTab_removeAddressConfirmationDialogTitle (@PluralCount int addressCount); everything works as expected. But when I run I18NSync again, it _overwrites_ the method with the two methods shown above. That's not exactly sync, it's more like fuck it up, rather. What am I doing wrong? I believe I18NSync is going to become deprecated. Why don't you write your interface first with the appropriate @Generate annotation and then grab the generated *.properties file (in the -extra dir) to help you translate your app? When you need a new label in your app, just create a new method in your Messages interface, with the appropriate @DefaultValue annotation; if you need help in updating your translated *.properties file, then compile your app with the -extra somefolder argument and grab the generated properties file to see what you should add to your other files. Yeah, I had the feeling that I18NSync would be bit-rotting. I started with the workflow I described because the docs I read on the GWT pages made me believe that this is the suggested way. And actually I like it. Writing a simple properties file and having all that boilerplate code that I don't want to care about generated instead of having to write it all by myself sounds nicer to me. I don't see any advantages having to do it the other way. Unfortunately, it seems like I am forced to (forced of course meaning being not too inclined to writing my own I18NSync tool). But I am curious: are there any advantages doing it the way you outlined? Thanks and regards, Thomas -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: port, eclipse, ff
You should not need to perform a compilation in order to get development mode to work. I'm not sure why port 8887 would have been active, unless you specified that in your launch configuration. What was appearing when you selected port vs port 8887? Can you reproduce the problem? 2010/1/22 Ewald Pankratz ewald.pankr...@gmail.com Clean an compile didn't help. When I choose Automatically select an unused port it's working. On Jan 22, 10:01 am, Hind AbdolKhaleq habdolkha...@gmail.com wrote: may try Project- clean and compile again : *Notice the message at console and print it out* 2010/1/22 Ewald Pankratz ewald.pankr...@gmail.com With something else I mean the wrong page I had before. On Jan 22, 6:30 am, Ewald Pankratz ewald.pankr...@gmail.com wrote: I work with eclipse 3.5, ubuntu 9.10 64 bit, firefox 3.57. I use the lastest release of GWT and GA and had a strange experience with the result of my GWT program. When I run the program with the default address http://localhost:/ DragDropDemo.html?gwt.codesvr=127.0.1.1:9997 I always got a screen which has nothing to do with the program work. Many time I checked the configuration an tried it again. I always got the same strange result, which looked like the result of another program. I even checked with find and grep after the string whichs appeared on the screen. There were no such strings in this project. I also restarted my computer again. Finally I changed the port to 8887 because the response of the browser was far too fast. And then I got the right screen. When I changed back to port , I again got somehing else. There were no other GWT programs runnung. Any idea? A bug? Something to issue? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- رَبَّنَا لاَ تُزِغْ قُلُوبَنَا بَعْدَ إِذْ هَدَيْتَنَا وَهَبْ لَنَا مِن لَّدُنكَ رَحْمَةً إِنَّكَ أَنتَ الْوَهَّابُ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Curiosity about GWT 2.0 - related to ClickHandler
Hi everyone. Why Hyperlink.addClickHandler() is deprecated? I can't see a reason. How am I supposed to handle the onClick event of a Hyperlink? Thanks, Cristian. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Curiosity about GWT 2.0 - related to ClickHandler
As the javadoc for Hyperlink.addClickHandler() says, you should use an Anchor instead of Hyperlink if you want to add a handler. Hyperlinks are intended as history event inducing widgets only. Paul Cristian Nicanor Babula wrote: Hi everyone. Why Hyperlink.addClickHandler() is deprecated? I can't see a reason. How am I supposed to handle the onClick event of a Hyperlink? Thanks, Cristian. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
My icons are missing
I'm trying to add icons to my application. Everything worked fine when I ran in the google browser but now that I've published the system to my dev server (its Sun Application server 9.1) the icons are all missing. I'm also noticing that any servlets I try to access via HTTP (FormPanels) rather than RPC also come up as 404s. My RPC servlets work fine. The icons I'm trying to access are the grid icons from EXT-GWT which always worked fine up until now. I packaged up my war and dropped it into the autodeploy in Glassfish just as I always would but now the links aren't working. Am I doing something wrong for GWT? My war structure is /images /appName (with all the GWT JS files) appName.html gxt-grey.css gxt-all.css I'm trying to access .x-grid3-dirty-cell { background-image:url(/images/default/grid/dirty.gif); } which isn't working. When I try to input the URL http://localhost:8080/appName/images/default/grid/dirty.gif The icon appears. Can anyone tell me what I'm doing wrong? 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Bookmarklet to open page for OOPHM debug
My working practice is to develop in eclipse on one machine but to debug in the browser on another. This means that when I have started the app in debug mode, I then have to copy and paste the URL. Since for many various GWT projects the URL is the same apart from the initial name of the html page (which is the project name) I have created a bookmarklet for my firefox browser which prompts for the name then opens a page with the properly constructed URL. I don't know if others work this way or would find this useful but here is the bookmarklet code: javascript:var%20pb=prompt('Enter%20GWT%20Name','?');if(pb!=null) {document.location='http://192.168.1.10:/'+pb+'.html? gwt.hosted=192.168.1.10:9997';} obviously the ip addresses will have to be set for your own use. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Curiosity about GWT 2.0 - related to ClickHandler
Ok. Thanks. On 01/22/2010 05:38 PM, Paul Robinson wrote: As the javadoc for Hyperlink.addClickHandler() says, you should use an Anchor instead of Hyperlink if you want to add a handler. Hyperlinks are intended as history event inducing widgets only. Paul Cristian Nicanor Babula wrote: Hi everyone. Why Hyperlink.addClickHandler() is deprecated? I can't see a reason. How am I supposed to handle the onClick event of a Hyperlink? Thanks, Cristian. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Good book to learn GWT
hi On Fri, Jan 22, 2010 at 4:12 PM, Dan dan.a...@googlemail.com wrote: Hi everybody, I have just begun learning GWT and was wondering if anybody knows a decent book to get started - not too basic possibly. I have found a few that seem rather good, but they all date back to 2008, maybe a bit outdated? I found the official doc a good start for both beginner and advanced developers. http://code.google.com/webtoolkit/doc/latest/tutorial/ - sree -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: My icons are missing
Note the first forward slash in your image url - this points to the root of your server and not /appname/... Cheers, Dave On Jan 22, 4:41 pm, darkling darkling...@aol.com wrote: I'm trying to add icons to my application. Everything worked fine when I ran in the google browser but now that I've published the system to my dev server (its Sun Application server 9.1) the icons are all missing. I'm also noticing that any servlets I try to access via HTTP (FormPanels) rather than RPC also come up as 404s. My RPC servlets work fine. The icons I'm trying to access are the grid icons from EXT-GWT which always worked fine up until now. I packaged up my war and dropped it into the autodeploy in Glassfish just as I always would but now the links aren't working. Am I doing something wrong for GWT? My war structure is /images /appName (with all the GWT JS files) appName.html gxt-grey.css gxt-all.css I'm trying to access .x-grid3-dirty-cell { background-image:url(/images/default/grid/dirty.gif); } which isn't working. When I try to input the URL http://localhost:8080/appName/images/default/grid/dirty.gif The icon appears. Can anyone tell me what I'm doing wrong? 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: incubator ScrollTable
Ok..I know there must be many workarounds... But I wold like to know the reason this is happen. I am taking a look at Firebug, but is not easy to undertand... 2010/1/22 Felipe felipe.andres.p...@gmail.com m I don't know if is the better solution, this maybe: public void afterLoad () { if ( tablaScroll.getDataTable().getColumnCount() == 1) { // setColumnWitdh } else { // otra cosa. } } regards.! On Jan 22, 9:46 am, Ashar Lohmar asharloh...@gmail.com wrote: this might sound like a stupid workaround ... but can't you add an if statement or something to check if the table will have only one column ?! and for that use setColumnWidth ... i know that this is not a real answer but this is the only thing that comes into my mind without trying the real source/objects to see another trick hope it helps good luck On Jan 22, 2:57 am, Alexei Telles alexeitel...@gmail.com wrote: Hi, I'm just starting using the gwt-incubator. I need to make a table, so I am using a FixedWidthFlexTable to the header and a FixedWidthGrid to the dataTable (content of the table). I have a procedure that mounts the dataTable The problem that I am having is: when my dataTable have more than one column, the dataTable is ok I am setting the width to 100%, so my table fits my div at all. But when my table have only one column, I don't know why the column width stays to short Of course, if I use the method setColumnWidth of the FixedWidthGrid works fine, but I use the same procedure to generate all tables of my application, so I can't do that!!! I don't know if I gave a good explanation about my problem. I am trying to use the Firebug to discover what i am doing wrong, but the HTML code generated is a little confused. Is ther anything in the FixedWidthGrid about the first column of the table, or is there a way to I set all widths of my table like automatic? I appreciate any help 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Anything better than the current gwt-dispatch...
So far, I found there are a few ways to redirect your serviceimpl, namley 1) logic in web.xml 2) gwt-dispatch 3) various framework plugins (for struts, jsf) But each of these solns above require you to edit a config file (or modify a java file with guice) everytime you add a new serviceimpl. Would it be possible to have an auto-config, so that if you follow the standard naming convention of XXXService.java XXXServiceAsync.java XXXServiceImpl.java that you won't have to add any more configurations. i.e. the service endpoint is something like /gwt/GwtNameDispatcher and GwtNameDispatcher is written so that it invokes the respective ServiceImpl w/o reading any configs files. GwtNameDispatcher knows which ServiceImpl to invoke based upon what Service object was passed in the GWT-RPC post param. The caveat is that you must follow the XXXService.java XXXServiceAsync.java XXXServiceImpl.java pattern, but if I write such a GwtNameDispatcher beast, would this be useful to the GWT community? Is there a better soln? Cheers, Henry -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to use UIBinder
GWT UiBinder “helloworld” with HTML http://wp.me/PnkVx-L -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Mini Tutorial : GWT UiBinder “helloworld” with H TML
Here's a very simple howto tutorial of a UiBinder template that contains no widgets, only HTML http://iqbalyusuf.wordpress.com/gwt-uibinder-helloworld-with-html/ Thanks. Iqbal Yusuf -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
UiBinder Templates - Adding a series of HTML elements
It appears that UiBinder Templates correspond to a single HTML element. That single HTML element is added to the DOM. This does not quite fit my needs. I would like a template to correspond to a series of elements. Does anyone know if this is possible? Let's say that I want to add a few dates to a table. Month, day, and year are separate columns in the table. It may seem that HTMLPanel would fit, but it adds a DIV element. I created a DateBox class with this layout. * DateBox.ui.xml *** ui:UiBinder g:HTMLPanel td g:TextBox ui:field=month /g:TextBox/td td g:TextBox ui:field=day/g:TextBox/td td g:TextBox ui:field=year/g:TextBox/td /g:HTMLPanel /ui:UiBinder I use dates in several places in this layout. * MyLayout.ui.xml ** ui:UiBinder g:HTMLPanel table tr td Leading Stuff /td my:DateBox ui:field=birthDate/my:DateBox td Trailing Stuff /td /tr /table /g:HTMLPanel /ui:UiBinder HTMLPanel inserts div tags in the output. * results ** table tr td Leading Stufff /td div tdinput.../td tdinput.../td tdinput.../td /div td Trailing Stuff /td /tr /table Thanks for your help, Tim K -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to 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-phys2d: 2D physics engine for GWT
Thanks! I'm thinking of adding some functionality this weekend for allowing a user to click-add however many objects they want, which will make it easy to see how it scales. On Jan 22, 6:57 am, Joel Webber j...@google.com wrote: [+gwt-contrib] That's pretty impressive. Have you tried it on any larger scene graphs? I'd love to see how it scales. It looks quite smooth on Chrome already. On Fri, Jan 22, 2010 at 3:05 AM, Neil Halelamien ne...@caltech.edu wrote: I quasi-ported the Phys2d Java physics library to run with GWT and gwt- g2d (for HTML5 canvas rendering). You can see the result (and download the library source) here: http://edgeofvision.com/2010/01/22/initial-release-of-gwt-phys2d-java... http://gwt-phys2d.appspot.com If anybody's interested in actually using this and/or contributing, I'd be happy to clean things up and create a Google Code project for it. It was pretty much just a self-education project though, so I probably won't be doing too much more with it myself. I imagine it might be handy for a GWT game programming project out there, though. -- Neil -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to 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 query
GWT Query isn't entirely compatible with IE8 anyway (there are several open issues about this on the project's site). For my project, the only part of JQuery I absolutely needed (read: there are not alternative options in GWT itself) was the CSS selector engine. Since GWT-Query provides JQuery functionality, and JQuery's CSS selection engine is entirely taken from Sizzle (a Dojo project!), you can simply include the Sizzle engine into your project (use script injection in the module descriptor). You can then write native methods to interact with Sizzle and accomplish (nearly) anything you could have done with GWT-Query. Maybe if I have some time this weekend (and I don't find one already done) I'll create a GWT library that wraps and implements Sizzle bindings for Java... http://sizzlejs.com/ On Jan 22, 10:07 am, Deanna Bonds deanna.bo...@gmail.com wrote: I asked that about a week ago. There are no current plans for it. On Jan 22, 6:47 am, Johan Rydberg johan.rydb...@edgeware.tv wrote: Any comments on when gwt query will be integrated with GWT? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: build script wiht gwt2.0
Ignat, Just FYI.. this script was very useful for our team. Specifically with Test/Doc Integration in our GWT Build. Thank you very much for sharing. Todd On Jan 7, 12:00 am, Ignat Alexeyenko ignatalexeye...@gmail.com wrote: Hello, If you want to compile the project that is using GWT2.0 with ANT please look at the following script: ##build.xml ?xml version=1.0 encoding=UTF-8? project name=mod...@gwt2.0 default=gwt2.0.compile target name=gwt2.0.compile description=Compiles gwt resources tstamp/ echo message=- / echo message=Started at: ${TSTAMP} / echo message=- / antcall target=real-compile/ /target target name=real-compile !-- REVIEW WHETHER YOU NEED TO CHANGE BUILD DIRECTORY (. or ..) -- property name=build.directory value=./ !-- SET CORRECT PATH TO GWT DIRECTORY HERE -- property name=gwt.directory value=/usr/local/java/gwt-2.0.0/ java classname=com.google.gwt.dev.Compiler fork=yes maxmemory=768m dir=${basedir} failonerror=true jvmarg value=-Xms512m/ !-- Gwt compilation styles : OBFUSCATED, PRETTY, DETAILED -- arg line=-style PRETTY/ !-- Gwt compilation log levels : ERROR, WARN, INFO, TRACE, DEBUG, SPAM, ALL -- arg line=-logLevel WARN/ !-- UPDATE OUT DIRECTORY -- arg line=-war /home/user/OUT/ !-- SET YOUR MODULE NAME HERE -- arg value=your.module.Name/ classpath pathelement path=${gwt.directory}/gwt-dev.jar/ pathelement path=${gwt.directory}/gwt-user.jar/ !-- SET THE SRC DIR HERE -- pathelement path=../gwtmodule/src/ /classpath /java /target /project -- Kind regards, Ignat Alexeyenko On Tue, Dec 29, 2009 at 6:11 PM, Rodrigue Lagoue rlag...@googlemail.comwrote: Hi, did somebody already wrote fully ant script for building (to javascript) an gwt 2.0 project? The built project should use an custom gwt library packed in a jar file... 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: My icons are missing
Not to ask a dumb question but why does it work when I run it through the GWT plugin and not when I move it to glassfish? I really want the same code to run in both places. My application is called ADT which is also the name of my google script folder. I have servlets mapped to the extension /adt/ MyServlet. It is reachable in eclipse when I run it through google's run as web app. It does not work when I make it a web app and run it through glass fish. The servlet exists at http://localhost:8080/ADTR/adt/fileUpload. I can reach it via inpuing this URL in tha address bar. However the system when it attempts to reach out via FormPanel to action /adt/MyServlet goes to someplace else, apprently localhost: 8080/adt/fileUpload. I was able to hack this by setting the FormPanel action to /ADTR/adt/ MyServlet but now it doesn't work in eclipse. I can't have 2 different versions of the software running or my bugs will go through the roof. Can anyone suggest a way to fix this so the same links work on both boxes? That's why I tried to make them relative to begin with. Thanks in advance On Jan 22, 12:36 pm, DaveC david.andrew.chap...@googlemail.com wrote: Note the first forward slash in your image url - this points to the root of your server and not /appname/... Cheers, Dave On Jan 22, 4:41 pm, darkling darkling...@aol.com wrote: I'm trying to add icons to my application. Everything worked fine when I ran in the google browser but now that I've published the system to my dev server (its Sun Application server 9.1) the icons are all missing. I'm also noticing that any servlets I try to access via HTTP (FormPanels) rather than RPC also come up as 404s. My RPC servlets work fine. The icons I'm trying to access are the grid icons from EXT-GWT which always worked fine up until now. I packaged up my war and dropped it into the autodeploy in Glassfish just as I always would but now the links aren't working. Am I doing something wrong for GWT? My war structure is /images /appName (with all the GWT JS files) appName.html gxt-grey.css gxt-all.css I'm trying to access .x-grid3-dirty-cell { background-image:url(/images/default/grid/dirty.gif); } which isn't working. When I try to input the URL http://localhost:8080/appName/images/default/grid/dirty.gif The icon appears. Can anyone tell me what I'm doing wrong? Thanks- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: My icons are missing
Not to ask a dumb question but why does it work when I run it through the GWT plugin and not when I move it to glassfish? I really want the same code to run in both places. My application is called ADT which is also the name of my google script folder. I have servlets mapped to the extension /adt/ MyServlet. It is reachable in eclipse when I run it through google's run as web app. It does not work when I make it a web app and run it through glass fish. The servlet exists at http://localhost:8080/ADTR/adt/fileUpload. I can reach it via inpuing this URL in tha address bar. However the system when it attempts to reach out via FormPanel to action /adt/MyServlet goes to someplace else, apprently localhost: 8080/adt/fileUpload. I was able to hack this by setting the FormPanel action to /ADTR/adt/ MyServlet but now it doesn't work in eclipse. I can't have 2 different versions of the software running or my bugs will go through the roof. Can anyone suggest a way to fix this so the same links work on both boxes? That's why I tried to make them relative to begin with. Thanks in advance On Jan 22, 12:36 pm, DaveC david.andrew.chap...@googlemail.com wrote: Note the first forward slash in your image url - this points to the root of your server and not /appname/... Cheers, Dave On Jan 22, 4:41 pm, darkling darkling...@aol.com wrote: I'm trying to add icons to my application. Everything worked fine when I ran in the google browser but now that I've published the system to my dev server (its Sun Application server 9.1) the icons are all missing. I'm also noticing that any servlets I try to access via HTTP (FormPanels) rather than RPC also come up as 404s. My RPC servlets work fine. The icons I'm trying to access are the grid icons from EXT-GWT which always worked fine up until now. I packaged up my war and dropped it into the autodeploy in Glassfish just as I always would but now the links aren't working. Am I doing something wrong for GWT? My war structure is /images /appName (with all the GWT JS files) appName.html gxt-grey.css gxt-all.css I'm trying to access .x-grid3-dirty-cell { background-image:url(/images/default/grid/dirty.gif); } which isn't working. When I try to input the URL http://localhost:8080/appName/images/default/grid/dirty.gif The icon appears. Can anyone tell me what I'm doing wrong? Thanks- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: build script wiht gwt2.0
Todd, You are welcome! -- Kind regards, Ignat Alexeyenko. On Sat, Jan 23, 2010 at 12:51 AM, paloalto team bpodevt...@gmail.comwrote: Ignat, Just FYI.. this script was very useful for our team. Specifically with Test/Doc Integration in our GWT Build. Thank you very much for sharing. Todd On Jan 7, 12:00 am, Ignat Alexeyenko ignatalexeye...@gmail.com wrote: Hello, If you want to compile the project that is using GWT2.0 with ANT please look at the following script: ##build.xml ?xml version=1.0 encoding=UTF-8? project name=mod...@gwt2.0 default=gwt2.0.compile target name=gwt2.0.compile description=Compiles gwt resources tstamp/ echo message=- / echo message=Started at: ${TSTAMP} / echo message=- / antcall target=real-compile/ /target target name=real-compile !-- REVIEW WHETHER YOU NEED TO CHANGE BUILD DIRECTORY (. or ..) -- property name=build.directory value=./ !-- SET CORRECT PATH TO GWT DIRECTORY HERE -- property name=gwt.directory value=/usr/local/java/gwt-2.0.0/ java classname=com.google.gwt.dev.Compiler fork=yes maxmemory=768m dir=${basedir} failonerror=true jvmarg value=-Xms512m/ !-- Gwt compilation styles : OBFUSCATED, PRETTY, DETAILED -- arg line=-style PRETTY/ !-- Gwt compilation log levels : ERROR, WARN, INFO, TRACE, DEBUG, SPAM, ALL -- arg line=-logLevel WARN/ !-- UPDATE OUT DIRECTORY -- arg line=-war /home/user/OUT/ !-- SET YOUR MODULE NAME HERE -- arg value=your.module.Name/ classpath pathelement path=${gwt.directory}/gwt-dev.jar/ pathelement path=${gwt.directory}/gwt-user.jar/ !-- SET THE SRC DIR HERE -- pathelement path=../gwtmodule/src/ /classpath /java /target /project -- Kind regards, Ignat Alexeyenko On Tue, Dec 29, 2009 at 6:11 PM, Rodrigue Lagoue rlag...@googlemail.com wrote: Hi, did somebody already wrote fully ant script for building (to javascript) an gwt 2.0 project? The built project should use an custom gwt library packed in a jar file... 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
[gwt-contrib] Re: Fixes for issues 4174, 4217, and 4414.
Thanks for your comments, Andre. http://gwt-code-reviews.appspot.com/132817/diff/2001/20 File user/src/com/google/gwt/user/client/ui/StackLayoutPanel.java (right): http://gwt-code-reviews.appspot.com/132817/diff/2001/20#newcode208 Line 208: layoutData.remove(i); On 2010/01/22 11:30:32, andre.ruediger wrote: Just curious: Shouldn't this be layoutData.remove(i--)? or better call layoutData.iterator() and iterator.remove()? Why not use a LinkedHashMapWidget, LayoutData for easy lookup of LayoutData instead of ArrayListLayoutData? The order of the keySet would be the order of the It's not necessary to decrement i, because it's going to return immediately. An iterator would work fine as well, of course. I thought about using a map, but honestly it's just not worth the trouble. The vast majority of the time, we'll have a small number of children in each stack (~10), and very few of them will be removed. This does create O(n^2) behavior in clear(), but I just can't see N getting large under any reasonable usage (if it did, you'd run out of screen real estate rapidly). http://gwt-code-reviews.appspot.com/132817/diff/2001/20#newcode213 Line 213: showWidget(layoutData.get(0).widget); On 2010/01/22 11:30:32, andre.ruediger wrote: Could we store the order in which the Panels where shown and show the previously displayed Panel? This would make even more sense in TabLayoutPanel, though. We could try to do something more complex like that, but I suspect that any app that removes the currently-visible stack will have its own specific behaviors it wants to enforce, so it's probably better to leave it up to the app. http://gwt-code-reviews.appspot.com/132817 -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r7442 committed - Merge tr...@7441 to add support to CssResource for unknown at-rules.
Revision: 7442 Author: b...@google.com Date: Fri Jan 22 06:04:56 2010 Log: Merge tr...@7441 to add support to CssResource for unknown at-rules. http://code.google.com/p/google-web-toolkit/source/detail?r=7442 Added: /releases/2.0/user/src/com/google/gwt/resources/css/ast/CssUnknownAtRule.java /releases/2.0/user/test/com/google/gwt/resources/css/UnknownAtRuleTest.java /releases/2.0/user/test/com/google/gwt/resources/css/unknownAtRule.css Modified: /releases/2.0/branch-info.txt /releases/2.0/user/src/com/google/gwt/resources/css/CssGenerationVisitor.java /releases/2.0/user/src/com/google/gwt/resources/css/GenerateCssAst.java /releases/2.0/user/src/com/google/gwt/resources/css/ast/CssNodeCloner.java /releases/2.0/user/src/com/google/gwt/resources/css/ast/CssVisitor.java /releases/2.0/user/test/com/google/gwt/resources/ResourcesSuite.java /releases/2.0/user/test/com/google/gwt/resources/client/test.css === --- /dev/null +++ /releases/2.0/user/src/com/google/gwt/resources/css/ast/CssUnknownAtRule.java Fri Jan 22 06:04:56 2010 @@ -0,0 +1,42 @@ +/* + * Copyright 2010 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.google.gwt.resources.css.ast; + +/** + * Represents a CSS at-rule that CssResource is unable to process. + */ +public class CssUnknownAtRule extends CssNode { + + private final String rule; + + public CssUnknownAtRule(String rule) { +this.rule = rule; + } + + /** + * Returns the entire unprocessed at-rule declaration. + */ + public String getRule() { +return rule; + } + + public void traverse(CssVisitor visitor, Context context) { +if (visitor.visit(this, context)) { + // Do nothing +} +visitor.endVisit(this, context); + } +} === --- /dev/null +++ /releases/2.0/user/test/com/google/gwt/resources/css/UnknownAtRuleTest.java Fri Jan 22 06:04:56 2010 @@ -0,0 +1,55 @@ +/* + * Copyright 2010 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.google.gwt.resources.css; + +import com.google.gwt.core.ext.TreeLogger; +import com.google.gwt.core.ext.UnableToCompleteException; +import com.google.gwt.dev.util.DefaultTextOutput; +import com.google.gwt.dev.util.TextOutput; +import com.google.gwt.resources.css.ast.CssNode; +import com.google.gwt.resources.css.ast.CssStylesheet; +import com.google.gwt.resources.css.ast.CssUnknownAtRule; + +import junit.framework.TestCase; + +import java.util.List; + +/** + * Tests how CssResource handles stylesheets with unknown at-rules. + */ +public class UnknownAtRuleTest extends TestCase { + private static final String COMPLEX = @complex {\n with: arbitrary;\n stuff: inside;\n}; + private static final String EXTENDED = @-extended-ident {\n \n}; + private static final String SIMPLE = @simple;; + + public void test() throws UnableToCompleteException { +CssStylesheet sheet = GenerateCssAst.exec(TreeLogger.NULL, +getClass().getClassLoader().getResource( +com/google/gwt/resources/css/unknownAtRule.css)); + +ListCssNode nodes = sheet.getNodes(); +assertEquals(3, nodes.size()); +assertEquals(SIMPLE, ((CssUnknownAtRule) nodes.get(0)).getRule()); +assertEquals(COMPLEX, ((CssUnknownAtRule) nodes.get(1)).getRule()); +assertEquals(EXTENDED, ((CssUnknownAtRule) nodes.get(2)).getRule()); + +TextOutput out = new DefaultTextOutput(true); +CssGenerationVisitor v = new CssGenerationVisitor(out); +v.accept(sheet); + +assertEquals(SIMPLE + COMPLEX + EXTENDED, out.toString()); + } +} === --- /dev/null +++ /releases/2.0/user/test/com/google/gwt/resources/css/unknownAtRule.css Fri Jan 22 06:04:56 2010 @@ -0,0 +1,8 @@ +...@simple; +...@complex { + with: arbitrary; + stuff: inside; +} +...@-extended-ident { + /* This should be dropped */ +}
[gwt-contrib] Re: GWT Incubator Status Update and Schedule
Both nightly build and developer snapshots would be even better, best of both worlds. Developer snapshots provide the best way for hardcore developers to sync their communication on the development progress. Nightly builds are easy to setup and provide users an easy way to see if a particular bug is resolved without having to wait several days/ weeks for a developer snapshot to appear. On 21 jan, 18:58, Chris chrish...@gmail.com wrote: developer snapshot releases would be really nice. We build infrequently from trunk and we currently guess what might be a good version to grab our internal snapshot from. Having a developer snapshot would help us when we are looking to grab the latest version for our internal use. Chris On Jan 21, 12:07 pm, Bruce Johnson br...@google.com wrote: Nightly or perhaps less frequent stable snapshot builds is something we'd like to do for sure. Not sure about exactly when, but it's good to know there would be an audience to justify looking into it a bit. On Thursday, January 21, 2010, Arthur Kalmenson arthur.k...@gmail.com wrote: Hmm, a nightly build sounds like a cool idea, I wouldn't mind seeing that as well. -- Arthur Kalmenson On Thu, Jan 21, 2010 at 3:28 AM, David david.no...@gmail.com wrote: Hi, It would be nice that the GWT team would release some development builds once in a while. That would be very usefull at the point where new things are added to the trunk. This way you can get a lot more input from the community, since it makes it much easier to use a more experimental version of GWT. Compiling from the sources means that we need direct access to the internet, but not all companies allow that. As long as we have some indication of what is mostly stable and what not, we can choose at what point we whish to start using a development build. David On Wed, Jan 20, 2010 at 6:19 PM, monkeyboy dilbert.elbo...@gmail.com wrote: Thank you John for your explanation. Now I understand the reason why you are shutting down the incubator. What I am suggesting is that developers should have a place where they can see what new features (libraries,...) are being developed and not to stumble upon this new features by chance (like I stumbled upon the doc for DataBackedWidgetsDesign for example). You mentioned that you send emails when you start a new project. What do I need to do to receive such an email? I think you guys at Google develop great libraries that are perhaps underused because they are hard to find. Let's take Gin for example (http://code.google.com/p/google-gin/). I think that more people would use it if you had a link to Gin from the GWT Tools and Libraries page. Regards. On Jan 20, 5:29 pm, John LaBanca jlaba...@google.com wrote: Libraries and widgets that we want to incubate will be moved into separate projects. Instead of downloading one incubator jar, you'll be able to (have to) download each project individually. Like Ray said, we're going to commit most new features directly to trunk, but we may still want to incubate some features if they are highly experimental. We often setup a design doc and send out an email when we start a new project, such as the data backed widgets, so the community can be involved. I'm sure we'll keep doing that. The advantage of separate projects is that each project can move along at its own pace. The incubator currently has some very stable features, some highly experimental ones, and some deprecated code, and it isn't obvious which is which (well, except the deprecated stuff). With individual projects, it should be more obvious what the state of the project is. Thanks, John LaBanca jlaba...@google.com On Wed, Jan 20, 2010 at 10:57 AM, monkeyboy dilbert.elbo...@gmail.comwrote: Then, how about a list of new features in the trunk since the last release. That way developers would know if they should become involved in the nontrivial (but not too hard) task of compiling GWT from source. I take the last comment back if such a list exists. I could not find it. Regards. On Jan 20, 4:26 pm, Ray Ryan rj...@google.com wrote: On Wed, Jan 20, 2010 at 6:52 AM, monkeyboy dilbert.elbo...@gmail.com wrote: Hello John. I'm glad to see that PagingScrollTable will make it to the GWT trunk. Even now it is a useful widget but I can't wait to see the final version. I would like to ask a few questions. I am sorry to hear that the incubator will be shut down. I w -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: gwt-phys2d: 2D physics engine for GWT
[+gwt-contrib] That's pretty impressive. Have you tried it on any larger scene graphs? I'd love to see how it scales. It looks quite smooth on Chrome already. On Fri, Jan 22, 2010 at 3:05 AM, Neil Halelamien ne...@caltech.edu wrote: I quasi-ported the Phys2d Java physics library to run with GWT and gwt- g2d (for HTML5 canvas rendering). You can see the result (and download the library source) here: http://edgeofvision.com/2010/01/22/initial-release-of-gwt-phys2d-javascriptgwt-physics-engine/ http://gwt-phys2d.appspot.com If anybody's interested in actually using this and/or contributing, I'd be happy to clean things up and create a Google Code project for it. It was pretty much just a self-education project though, so I probably won't be doing too much more with it myself. I imagine it might be handy for a GWT game programming project out there, though. -- Neil -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: now.. afetr GWT 2.0?
+1 server push (cometd) +1 dependency injection (gin?) On 16 dez 2009, 10:42, tfreitas tfrei...@gmail.com wrote: What about roadmap? -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fixes for issues 4174, 4217, and 4414.
LGTM http://gwt-code-reviews.appspot.com/132817/diff/2001/23 File user/test/com/google/gwt/user/client/ui/SplitLayoutPanelTest.java (right): http://gwt-code-reviews.appspot.com/132817/diff/2001/23#newcode92 Line 92: assertEquals(l1, children.get(2)); DockLayoutPanel.getWidget(1) is going to return the HSplitter. That seems wrong, its should return the second widget that was added. This is a separate issue from this patch, but I think its still an issue. http://gwt-code-reviews.appspot.com/132817 -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: SuggestBox loses focus when hovering over suggestions
ping - can you get to this today? It should go into GWT 2.0.1 Thanks, John LaBanca jlaba...@google.com On Wed, Jan 20, 2010 at 2:32 PM, jlaba...@google.com wrote: Reviewers: jgw, Description: The SuggestBox loses focus when the mouse hovers over the list of suggestions because MenuBar steals keyboard focus on hover. This is particularly annoying if a user leaves the cursor just beneath the text box. As soon as the suggestions are shown, the text box loses focus. In fact, there are other cases where this can be annoying, such as just having a MenuBar and TextBox in the same app: http://code.google.com/p/google-web-toolkit/issues/detail?id=3884 Fix: This patch adds an option to MenuBar to disable focus on hover, which fixes the problem at the expense of losing keyboard focus. SuggestBox now uses the new option. Testing: === Manually verified that this works for MenuBar and SuggestBox. Please review this at http://gwt-code-reviews.appspot.com/132816 Affected files: user/src/com/google/gwt/user/client/ui/MenuBar.java user/src/com/google/gwt/user/client/ui/SuggestBox.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: SuggestBox loses focus when hovering over suggestions
Sure thing. Looking now. On Fri, Jan 22, 2010 at 11:17 AM, John LaBanca jlaba...@google.com wrote: ping - can you get to this today? It should go into GWT 2.0.1 Thanks, John LaBanca jlaba...@google.com On Wed, Jan 20, 2010 at 2:32 PM, jlaba...@google.com wrote: Reviewers: jgw, Description: The SuggestBox loses focus when the mouse hovers over the list of suggestions because MenuBar steals keyboard focus on hover. This is particularly annoying if a user leaves the cursor just beneath the text box. As soon as the suggestions are shown, the text box loses focus. In fact, there are other cases where this can be annoying, such as just having a MenuBar and TextBox in the same app: http://code.google.com/p/google-web-toolkit/issues/detail?id=3884 Fix: This patch adds an option to MenuBar to disable focus on hover, which fixes the problem at the expense of losing keyboard focus. SuggestBox now uses the new option. Testing: === Manually verified that this works for MenuBar and SuggestBox. Please review this at http://gwt-code-reviews.appspot.com/132816 Affected files: user/src/com/google/gwt/user/client/ui/MenuBar.java user/src/com/google/gwt/user/client/ui/SuggestBox.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add -bindAddress option, clean up SCL interface
http://gwt-code-reviews.appspot.com/130806/diff/1/6 File dev/core/src/com/google/gwt/dev/DevMode.java (right): http://gwt-code-reviews.appspot.com/130806/diff/1/6#newcode420 Line 420: ui.setCallback(RestartServerEvent.getType(), null); On 2010/01/21 22:21:00, jat wrote: On 2010/01/21 20:53:18, rdayal wrote: Why is this necessary? Won't this cause the termination of the DevMode process? Why would it terminate anything? The effect of this is to tell the UI you are no longer interested in RestartServer events, so presumably the UI won't show the button. If we fail to start the servlet container, there is nothing to restart. My point is that if the SCL fails to start up (and the user did not specify -noserver), isn't this a critical failure? Shouldn't DevMode terminate with an error? http://gwt-code-reviews.appspot.com/130806 -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: SuggestBox loses focus when hovering over suggestions
On 2010/01/20 19:32:04, jlabanca wrote: LGTM. http://gwt-code-reviews.appspot.com/132816 -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r7443 committed - Adds an option to MenuBar that prevents it from stealing keyboard focu...
Revision: 7443 Author: jlaba...@google.com Date: Fri Jan 22 05:42:38 2010 Log: Adds an option to MenuBar that prevents it from stealing keyboard focus on hover. SuggestBox now uses this option. http://gwt-code-reviews.appspot.com/132816/show http://code.google.com/p/google-web-toolkit/source/detail?r=7443 Modified: /trunk/user/src/com/google/gwt/user/client/ui/MenuBar.java /trunk/user/src/com/google/gwt/user/client/ui/SuggestBox.java === --- /trunk/user/src/com/google/gwt/user/client/ui/MenuBar.java Tue Dec 1 15:21:10 2009 +++ /trunk/user/src/com/google/gwt/user/client/ui/MenuBar.java Fri Jan 22 05:42:38 2010 @@ -191,6 +191,7 @@ private MenuItem selectedItem; private MenuBar shownChildMenu; private boolean vertical, autoOpen; + private boolean focusOnHover = true; /** * Creates an empty horizontal menu bar. @@ -479,6 +480,16 @@ public boolean isAnimationEnabled() { return isAnimationEnabled; } + + /** + * Check whether or not this widget will steal keyboard focus when the mouse + * hovers over it. + * + * @return true if enabled, false if disabled + */ + public boolean isFocusOnHoverEnabled() { +return focusOnHover; + } /** * Moves the menu selection down to the next item. If there is no selection, @@ -496,7 +507,7 @@ !selectedItem.getSubMenu().getItems().isEmpty() (shownChildMenu == null || shownChildMenu.getSelectedItem() == null)) { if (shownChildMenu == null) { - doItemAction(selectedItem, false); + doItemAction(selectedItem, false, true); } selectedItem.getSubMenu().focus(); } else if (parentMenu != null) { @@ -535,7 +546,7 @@ FocusPanel.impl.focus(getElement()); // Fire an item's command when the user clicks on it. if (item != null) { - doItemAction(item, true); + doItemAction(item, true, true); } break; } @@ -597,7 +608,7 @@ break; case KeyCodes.KEY_ENTER: if (!selectFirstItemIfNoneSelected()) { - doItemAction(selectedItem, true); + doItemAction(selectedItem, true, true); eatEvent(event); } break; @@ -623,7 +634,7 @@ // When the menu popup closes, remember that no item is // currently showing a popup menu. -onHide(); +onHide(autoClosed); CloseEvent.fire(MenuBar.this, sender); shownChildMenu = null; popup = null; @@ -718,6 +729,18 @@ public void setAutoOpen(boolean autoOpen) { this.autoOpen = autoOpen; } + + /** + * Enable or disable auto focus when the mouse hovers over the MenuBar. This + * allows the MenuBar to respond to keyboard events without the user having to + * click on it, but it will steal focus from other elements on the page. + * Enabled by default. + * + * @param enabled true to enable, false to disable + */ + public void setFocusOnHoverEnabled(boolean enabled) { +focusOnHover = enabled; + } /** * Returns a list containing the codeMenuItem/code objects in the menu @@ -787,7 +810,7 @@ * codetrue/code if the item's command should be fired, codefalse/code * otherwise. */ - void doItemAction(final MenuItem item, boolean fireCommand) { + void doItemAction(final MenuItem item, boolean fireCommand, boolean focus) { // Ensure that the item is selected. selectItem(item); @@ -803,7 +826,7 @@ // hide any open submenus of this item if (shownChildMenu != null) { - shownChildMenu.onHide(); + shownChildMenu.onHide(focus); popup.hide(); shownChildMenu = null; selectItem(null); @@ -814,19 +837,19 @@ openPopup(item); } else if (item.getSubMenu() != shownChildMenu) { // close the other submenu and open this one - shownChildMenu.onHide(); + shownChildMenu.onHide(focus); popup.hide(); openPopup(item); } else if (fireCommand !autoOpen) { // close this submenu - shownChildMenu.onHide(); + shownChildMenu.onHide(focus); popup.hide(); shownChildMenu = null; selectItem(item); } } else if (autoOpen shownChildMenu != null) { // close submenu -shownChildMenu.onHide(); +shownChildMenu.onHide(focus); popup.hide(); shownChildMenu = null; } @@ -844,7 +867,7 @@ // Style the item selected when the mouse enters. selectItem(item); -if (focus) { +if (focus focusOnHover) { focus(); } @@ -853,7 +876,7 @@ // when the mouse enters. if (item != null) { if ((shownChildMenu != null) || (parentMenu != null) || autoOpen) { -doItemAction(item, false); +doItemAction(item, false, focusOnHover); } } } @@ -933,6
[gwt-contrib] Fix for issue 4259.
Reviewers: jlabanca, Please review this at http://gwt-code-reviews.appspot.com/132818 Affected files: M google3/third_party/java/gwt/source/svn/user/src/com/google/gwt/user/client/ui/TabLayoutPanel.java M google3/third_party/java/gwt/source/svn/user/test/com/google/gwt/user/client/ui/TabLayoutPanelTest.java Index: google3/third_party/java/gwt/source/svn/user/src/com/google/gwt/user/client/ui/TabLayoutPanel.java diff --git a/google3/third_party/java/gwt/source/svn/user/src/com/google/gwt/user/client/ui/TabLayoutPanel.java b/google3/third_party/java/gwt/source/svn/user/src/com/google/gwt/user/client/ui/TabLayoutPanel.java index affa84b2458d87ea8b182c38bcaf71bfae4612ef..8a4448f6435ce6e720c125102d6715c578437c5b 100644 --- a/google3/third_party/java/gwt/source/svn/user/src/com/google/gwt/user/client/ui/TabLayoutPanel.java +++ b/google3/third_party/java/gwt/source/svn/user/src/com/google/gwt/user/client/ui/TabLayoutPanel.java @@ -18,8 +18,8 @@ package com.google.gwt.user.client.ui; import com.google.gwt.dom.client.Document; import com.google.gwt.dom.client.Element; import com.google.gwt.dom.client.Style; +import com.google.gwt.dom.client.Style.Display; import com.google.gwt.dom.client.Style.Unit; -import com.google.gwt.dom.client.Style.Visibility; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.event.logical.shared.BeforeSelectionEvent; @@ -381,13 +381,17 @@ public class TabLayoutPanel extends ResizeComposite implements HasWidgets, // Update the tabs being selected and unselected. if (selectedIndex != -1) { - Element container = panel.getWidgetContainerElement(children.get(selectedIndex)); - container.getStyle().setVisibility(Visibility.HIDDEN); + Widget child = children.get(selectedIndex); + Element container = panel.getWidgetContainerElement(child); + container.getStyle().setDisplay(Display.NONE); + child.setVisible(false); tabs.get(selectedIndex).setSelected(false); } -Element container = panel.getWidgetContainerElement(children.get(index)); -container.getStyle().clearVisibility(); +Widget child = children.get(index); +Element container = panel.getWidgetContainerElement(child); +container.getStyle().clearDisplay(); +child.setVisible(true); tabs.get(index).setSelected(true); selectedIndex = index; @@ -472,7 +476,8 @@ public class TabLayoutPanel extends ResizeComposite implements HasWidgets, private void layoutChild(Widget child) { panel.setWidgetLeftRight(child, 0, Unit.PX, 0, Unit.PX); panel.setWidgetTopBottom(child, barHeight, barUnit, 0, Unit.PX); -panel.getWidgetContainerElement(child).getStyle().setVisibility( -Visibility.HIDDEN); +panel.getWidgetContainerElement(child).getStyle().setDisplay( +Display.NONE); +child.setVisible(false); } } Index: google3/third_party/java/gwt/source/svn/user/test/com/google/gwt/user/client/ui/TabLayoutPanelTest.java diff --git a/google3/third_party/java/gwt/source/svn/user/test/com/google/gwt/user/client/ui/TabLayoutPanelTest.java b/google3/third_party/java/gwt/source/svn/user/test/com/google/gwt/user/client/ui/TabLayoutPanelTest.java index 9c387d6bef124dcfe16801984857b3b6f53fb478..ee6ee6cf64a035fffe92d3062e2c509df1153624 100644 --- a/google3/third_party/java/gwt/source/svn/user/test/com/google/gwt/user/client/ui/TabLayoutPanelTest.java +++ b/google3/third_party/java/gwt/source/svn/user/test/com/google/gwt/user/client/ui/TabLayoutPanelTest.java @@ -176,6 +176,36 @@ public class TabLayoutPanelTest extends GWTTestCase { } /** + * Test that {...@link TabLayoutPanel} calls widget.setVisible(true/false) on + * each widget, when it is shown/hidden. + */ + public void testSetWidgetVisible() { +TabLayoutPanel p = new TabLayoutPanel(1, Unit.EM); +Label[] labels = new Label[3]; +for (int i = 0; i labels.length; i++) { + labels[i] = new Label(content + i); + p.add(labels[i]); +} + +// Initially, the first widget should be visible. +assertTrue(labels[0].isVisible()); +assertFalse(labels[1].isVisible()); +assertFalse(labels[2].isVisible()); + +// Show widget at index 1, make sure it becomes visible +p.selectTab(1); +assertFalse(labels[0].isVisible()); +assertTrue(labels[1].isVisible()); +assertFalse(labels[2].isVisible()); + +// Show widget at index 0, make sure widget 1 is still visible +p.selectTab(0); +assertTrue(labels[0].isVisible()); +assertFalse(labels[1].isVisible()); +assertFalse(labels[2].isVisible()); + } + + /** * Tests that tabs actually line up properly (see issue 4447). */ @DoNotRunWith(Platform.HtmlUnit) -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r7444 committed - http://gwt-code-reviews.appspot.com/132817
Revision: 7444 Author: j...@google.com Date: Fri Jan 22 05:44:27 2010 Log: http://gwt-code-reviews.appspot.com/132817 http://code.google.com/p/google-web-toolkit/source/detail?r=7444 Added: /trunk/user/test/com/google/gwt/user/client/ui/SplitLayoutPanelTest.java /trunk/user/test/com/google/gwt/user/client/ui/StackLayoutPanelTest.java Modified: /trunk/user/build.xml /trunk/user/src/com/google/gwt/user/client/ui/SplitLayoutPanel.java /trunk/user/src/com/google/gwt/user/client/ui/StackLayoutPanel.java /trunk/user/test/com/google/gwt/layout/client/LayoutTest.java /trunk/user/test/com/google/gwt/user/UISuite.java /trunk/user/test/com/google/gwt/user/client/ui/TabLayoutPanelTest.java === --- /dev/null +++ /trunk/user/test/com/google/gwt/user/client/ui/SplitLayoutPanelTest.java Fri Jan 22 05:44:27 2010 @@ -0,0 +1,100 @@ +/* + * Copyright 2010 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.google.gwt.user.client.ui; + +/** + * Tests for {...@link SplitLayoutPanel}. + */ +public class SplitLayoutPanelTest extends WidgetTestBase { + + static class Adder implements HasWidgetsTester.WidgetAdder { +public void addChild(HasWidgets container, Widget child) { + ((SplitLayoutPanel) container).addNorth(child, 10); +} + } + + public void testAttachDetachOrder() { +HasWidgetsTester.testAll(new SplitLayoutPanel(), new Adder(), true); + } + + public void testReplaceCenterWidget() { +SplitLayoutPanel p = new SplitLayoutPanel(); +Label l0 = new Label(foo); +Label l1 = new Label(bar); +Label l2 = new Label(baz); + +// center: l1 +p.addWest(l0, 64); +p.add(l1); +assertEquals(l1, p.getCenter()); + +// center: l2 +p.remove(l1); +p.add(l2); +assertEquals(l2, p.getCenter()); + } + + public void testSplitterOrder() { +SplitLayoutPanel p = new SplitLayoutPanel(); +WidgetCollection children = p.getChildren(); + +Label l0 = new Label(foo); +Label l1 = new Label(bar); +Label l2 = new Label(baz); +Label l3 = new Label(tintin); +Label l4 = new Label(toto); + +p.addWest(l0, 64); +assertEquals(l0, children.get(0)); +assertEquals(SplitLayoutPanel.HSplitter.class, children.get(1).getClass()); + +p.addNorth(l1, 64); +assertEquals(l1, children.get(2)); +assertEquals(SplitLayoutPanel.VSplitter.class, children.get(3).getClass()); + +p.addEast(l2, 64); +assertEquals(l2, children.get(4)); +assertEquals(SplitLayoutPanel.HSplitter.class, children.get(5).getClass()); + +p.addSouth(l3, 64); +assertEquals(l3, children.get(6)); +assertEquals(SplitLayoutPanel.VSplitter.class, children.get(7).getClass()); + +p.add(l4); +assertEquals(l4, children.get(8)); + } + + public void testRemoveInsert() { +SplitLayoutPanel p = new SplitLayoutPanel(); +WidgetCollection children = p.getChildren(); + +Label l0 = new Label(foo); +Label l1 = new Label(bar); +Label l2 = new Label(baz); + +p.addWest(l0, 64); +p.add(l1); +assertEquals(l0, children.get(0)); +assertEquals(SplitLayoutPanel.HSplitter.class, children.get(1).getClass()); +assertEquals(l1, children.get(2)); + +p.remove(l0); +p.insertWest(l2, 64, l1); +assertEquals(l2, children.get(0)); +assertEquals(SplitLayoutPanel.HSplitter.class, children.get(1).getClass()); +assertEquals(l1, children.get(2)); + } +} === --- /dev/null +++ /trunk/user/test/com/google/gwt/user/client/ui/StackLayoutPanelTest.java Fri Jan 22 05:44:27 2010 @@ -0,0 +1,73 @@ +/* + * Copyright 2010 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.google.gwt.user.client.ui; + +import com.google.gwt.dom.client.Style.Unit; + +/** + * Tests for {...@link StackLayoutPanel}. + */ +public class StackLayoutPanelTest extends WidgetTestBase { + +
Re: [gwt-contrib] Re: now.. afetr GWT 2.0?
+1 websockets +1 javafx declarative syntax Le 22 janv. 2010 à 14:50, Célio ccid...@gmail.com a écrit : +1 server push (cometd) +1 dependency injection (gin?) On 16 dez 2009, 10:42, tfreitas tfrei...@gmail.com wrote: What about roadmap? -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fixes for issues 4174, 4217, and 4414.
On 2010/01/22 16:08:39, jlabanca wrote: LGTM http://gwt-code-reviews.appspot.com/132817/diff/2001/23 File user/test/com/google/gwt/user/client/ui/SplitLayoutPanelTest.java (right): http://gwt-code-reviews.appspot.com/132817/diff/2001/23#newcode92 Line 92: assertEquals(l1, children.get(2)); DockLayoutPanel.getWidget(1) is going to return the HSplitter. That seems wrong, its should return the second widget that was added. This is a separate issue from this patch, but I think its still an issue. That's a reasonable, if arguable, point. I agree that it's a separate issue, though. Committed at r7444. http://gwt-code-reviews.appspot.com/132817 -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add -bindAddress option, clean up SCL interface
http://gwt-code-reviews.appspot.com/130806/diff/1/6 File dev/core/src/com/google/gwt/dev/DevMode.java (right): http://gwt-code-reviews.appspot.com/130806/diff/1/6#newcode420 Line 420: ui.setCallback(RestartServerEvent.getType(), null); On 2010/01/22 16:27:55, rdayal wrote: On 2010/01/21 22:21:00, jat wrote: On 2010/01/21 20:53:18, rdayal wrote: Why is this necessary? Won't this cause the termination of the DevMode process? Why would it terminate anything? The effect of this is to tell the UI you are no longer interested in RestartServer events, so presumably the UI won't show the button. If we fail to start the servlet container, there is nothing to restart. My point is that if the SCL fails to start up (and the user did not specify -noserver), isn't this a critical failure? Shouldn't DevMode terminate with an error? It doesn't currently, and if it did they wouldn't be able to read the message the SCL logged about why it couldn't start. We could send it to stderr instead, but that seems messier than using TreeLogger as we have been doing. http://gwt-code-reviews.appspot.com/130806 -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix for issue 4259.
LGTM http://gwt-code-reviews.appspot.com/132818/diff/1/3 File google3/third_party/java/gwt/source/svn/user/test/com/google/gwt/user/client/ui/TabLayoutPanelTest.java (right): http://gwt-code-reviews.appspot.com/132818/diff/1/3#newcode201 Line 201: // Show widget at index 0, make sure widget 1 is still visible Do you mean to make sure that widget 1 is no longer visible? http://gwt-code-reviews.appspot.com/132818 -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Patch for RichTextEditor
Hello, I was missing the ability to format a block with h1 - h6 tags. I researched the topic and build a patch which allows to insert block tags. It makes use of the FormatBlock command. I would like to ask, if you are interested in the patch and discuss the coding decision I took. 1) I couldn't find any guidance on testing. I have tested with Safari 4, Firefox 3.5, IE 6, IE 8 and IE 8 in IE 7 mode. 2) Currently only the tags h1 to h6, pre, address and p work stable across browsers. To limit the choice of tags, I have created an enum to limit the possible values. public static enum BlockTag { H1, H2, H3, H4, H5, H6, PRE, ADDRESS, P; final String OPEN = ; final String CLOSE = ; public String toTag() { return OPEN+name()+CLOSE; } } The advantage is that you cannot provide the wrong tags. The disadvantage is that you cannot provide tags which are for example supported in newer browser versions. The rest of the tag is just a new method in RichTextAreaImplStd. public void formatBlock(RichTextArea.BlockTag blockTag) { execCommand(FormatBlock, blockTag.toTag()); } Shall I leave it that way or turn it into a String parameter? 3) Should I create a bug tracking entry for this? If somebody is interested, here are some links, I found interesting while exploring the topic. http://discerning.com/topics/software/ttw.html http://help.dottoro.com/ljcvtcaw.php http://www.quirksmode.org/dom/execCommand.html Best Regards Sebastian Hennebrueder -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r7445 committed - http://gwt-code-reviews.appspot.com/132818
Revision: 7445 Author: gwt.mirror...@gmail.com Date: Fri Jan 22 12:13:58 2010 Log: http://gwt-code-reviews.appspot.com/132818 http://code.google.com/p/google-web-toolkit/source/detail?r=7445 Modified: /trunk/user/src/com/google/gwt/user/client/ui/TabLayoutPanel.java /trunk/user/test/com/google/gwt/user/client/ui/TabLayoutPanelTest.java === --- /trunk/user/src/com/google/gwt/user/client/ui/TabLayoutPanel.java Thu Jan 14 11:09:34 2010 +++ /trunk/user/src/com/google/gwt/user/client/ui/TabLayoutPanel.java Fri Jan 22 09:00:16 2010 @@ -18,8 +18,8 @@ import com.google.gwt.dom.client.Document; import com.google.gwt.dom.client.Element; import com.google.gwt.dom.client.Style; +import com.google.gwt.dom.client.Style.Display; import com.google.gwt.dom.client.Style.Unit; -import com.google.gwt.dom.client.Style.Visibility; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.event.logical.shared.BeforeSelectionEvent; @@ -381,13 +381,17 @@ // Update the tabs being selected and unselected. if (selectedIndex != -1) { - Element container = panel.getWidgetContainerElement(children.get(selectedIndex)); - container.getStyle().setVisibility(Visibility.HIDDEN); + Widget child = children.get(selectedIndex); + Element container = panel.getWidgetContainerElement(child); + container.getStyle().setDisplay(Display.NONE); + child.setVisible(false); tabs.get(selectedIndex).setSelected(false); } -Element container = panel.getWidgetContainerElement(children.get(index)); -container.getStyle().clearVisibility(); +Widget child = children.get(index); +Element container = panel.getWidgetContainerElement(child); +container.getStyle().clearDisplay(); +child.setVisible(true); tabs.get(index).setSelected(true); selectedIndex = index; @@ -472,7 +476,8 @@ private void layoutChild(Widget child) { panel.setWidgetLeftRight(child, 0, Unit.PX, 0, Unit.PX); panel.setWidgetTopBottom(child, barHeight, barUnit, 0, Unit.PX); -panel.getWidgetContainerElement(child).getStyle().setVisibility( -Visibility.HIDDEN); +panel.getWidgetContainerElement(child).getStyle().setDisplay( +Display.NONE); +child.setVisible(false); } } === --- /trunk/user/test/com/google/gwt/user/client/ui/TabLayoutPanelTest.java Fri Jan 22 05:44:27 2010 +++ /trunk/user/test/com/google/gwt/user/client/ui/TabLayoutPanelTest.java Fri Jan 22 09:00:16 2010 @@ -174,6 +174,37 @@ delayTestFinish(1000); p.selectTab(1); } + + /** + * Test that {...@link TabLayoutPanel} calls widget.setVisible(true/false) on + * each widget, when it is shown/hidden. + */ + public void testSetWidgetVisible() { +TabLayoutPanel p = new TabLayoutPanel(1, Unit.EM); +Label[] labels = new Label[3]; +for (int i = 0; i labels.length; i++) { + labels[i] = new Label(content + i); + p.add(labels[i]); +} + +// Initially, the first widget should be visible. +assertTrue(labels[0].isVisible()); +assertFalse(labels[1].isVisible()); +assertFalse(labels[2].isVisible()); + +// Show widget at index 1, make sure it becomes visible, and the one at +// index 0 is hidden. +p.selectTab(1); +assertFalse(labels[0].isVisible()); +assertTrue(labels[1].isVisible()); +assertFalse(labels[2].isVisible()); + +// Show widget at index 0, make sure it changed back to the initial state. +p.selectTab(0); +assertTrue(labels[0].isVisible()); +assertFalse(labels[1].isVisible()); +assertFalse(labels[2].isVisible()); + } /** * Tests that tabs actually line up properly (see issue 4447). -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix for issue 4259.
Committed at r7445. http://gwt-code-reviews.appspot.com/132818/diff/1/3 File google3/third_party/java/gwt/source/svn/user/test/com/google/gwt/user/client/ui/TabLayoutPanelTest.java (right): http://gwt-code-reviews.appspot.com/132818/diff/1/3#newcode201 Line 201: // Show widget at index 0, make sure widget 1 is still visible On 2010/01/22 19:09:43, jlabanca wrote: Do you mean to make sure that widget 1 is no longer visible? Whoops. Clarified comments. http://gwt-code-reviews.appspot.com/132818 -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r7446 committed - The main point of this patch is to address issue...
Revision: 7446 Author: j...@google.com Date: Fri Jan 22 09:27:40 2010 Log: The main point of this patch is to address issue http://code.google.com/p/google-web-toolkit/issues/detail?id=4322 -- in the process the ServletContainerLauncher interface is cleaned up and adding the ability to pass arbitrary arguments into the SCL (which will be needed for SSL, and perhaps more). Review at http://gwt-code-reviews.appspot.com/130806 Issue: 4322 Patch by: jat Review by: rdayal, tobyr, scottb http://code.google.com/p/google-web-toolkit/source/detail?r=7446 Modified: /trunk/dev/core/src/com/google/gwt/core/ext/ServletContainerLauncher.java /trunk/dev/core/src/com/google/gwt/dev/DevMode.java /trunk/dev/core/src/com/google/gwt/dev/DevModeBase.java /trunk/dev/core/src/com/google/gwt/dev/shell/BrowserListener.java /trunk/dev/core/src/com/google/gwt/dev/shell/jetty/JettyLauncher.java === --- /trunk/dev/core/src/com/google/gwt/core/ext/ServletContainerLauncher.java Mon Nov 23 16:21:36 2009 +++ /trunk/dev/core/src/com/google/gwt/core/ext/ServletContainerLauncher.java Fri Jan 22 09:27:40 2010 @@ -17,17 +17,37 @@ import java.io.File; import java.net.BindException; +import java.net.InetAddress; /** * Defines the service provider interface for launching servlet containers that * can be used by the GWT development mode. + * p + * Subclasses should be careful about calling any methods defined on this class + * or else they risk failing when used with a version of GWT that did not have + * those methods. */ public abstract class ServletContainerLauncher { + /* + * NOTE: Any new methods must have default implementations, and any users of + * this class must be prepared to handle LinkageErrors when calling new + * methods. + */ + + /** + * @return byte array containing an icon (fitting into 24x24) to + * use for the server, or null if only the name should be used + */ + public byte[] getIconBytes() { +return null; + } /** * @return a path to a 24-pixel high image file (relative to the classpath) to * be used for this servlet container, or null if none. + * @deprecated see {...@link #getIconBytes} instead. */ + @Deprecated public String getIconPath() { return null; } @@ -40,6 +60,36 @@ return Web Server; } + /** + * Process any supplied arguments. + * p + * Will be called before {...@link #start(TreeLogger, int, File)}, if at all. + * + * @param logger logger to use for warnings/errors + * @param arguments single string containing the arguments for this SCL, the + * format to be defined by the SCL + * @return true if the arguments were processed successfully + */ + public boolean processArguments(TreeLogger logger, String arguments) { +return false; + } + + /** + * Set the bind address for the web server socket. + * p + * Will be called before {...@link #start(TreeLogger, int, File)}, if at all. + * If not called, the SCL should listen on all addresses. + * + * @param bindAddress host name or IP address, suitable for use with + * {...@link InetAddress#getByName(String)} + */ + public void setBindAddress(String bindAddress) { +/* + * By default, we do nothing, which means that old SCL implementations + * will bind to all addresses. + */ + } + /** * Start an embedded HTTP servlet container. * === --- /trunk/dev/core/src/com/google/gwt/dev/DevMode.java Mon Nov 30 11:56:35 2009 +++ /trunk/dev/core/src/com/google/gwt/dev/DevMode.java Fri Jan 22 09:27:40 2010 @@ -81,19 +81,30 @@ @Override public String[] getTagArgs() { - return new String[] {servletContainerLauncher}; + return new String[] {servletContainerLauncher[:args]}; } @Override -public boolean setString(String sclClassName) { +public boolean setString(String arg) { // Supercedes -noserver. options.setNoServer(false); + String sclClassName; + String sclArgs; + int idx = arg.indexOf(':'); + if (idx = 0) { +sclArgs = arg.substring(idx + 1); +sclClassName = arg.substring(0, idx); + } else { +sclArgs = null; +sclClassName = arg; + } Throwable t; try { Class? clazz = Class.forName(sclClassName, true, Thread.currentThread().getContextClassLoader()); Class? extends ServletContainerLauncher sclClass = clazz.asSubclass(ServletContainerLauncher.class); options.setServletContainerLauncher(sclClass.newInstance()); +options.setServletContainerLauncherArgs(sclArgs); return true; } catch (ClassCastException e) { t = e; @@ -167,7 +178,11 @@ interface HostedModeOptions extends HostedModeBaseOptions, CompilerOptions { ServletContainerLauncher getServletContainerLauncher(); +String