Re: Editor doesn't display chained Entity (solved )
No thanks the bug was that didn't construct my ValueListBox with a KeyProvider by having a look at the code ; as suggested by Thomas Broyer to try to create a ValueSuggestBox I saw that the default KeyProvoder is SimpleKeyProvider and that cannot provide a key for an EntityProxy it creates instead a new key anytime the ValueSuggestBox.setValue is invoked by the Editor EntityProxyKeyProvider was the solution thanks for reading Patrick - Original Message - From: Christien Lomax To: google-web-toolkit@googlegroups.com Sent: Tuesday, April 12, 2011 7:13 PM Subject: Re: Editor doesn't display chained Entity did you call request.with(paths)? Where paths is a list of strings containing the names of sub objects to parse??? calling driver.getPaths() will return all the possible child paths i think?? eg: RequestIMyProxy fetchRequest = requestFactory.find(proxy.stableId()); fetchRequest.with(driver.getPaths()); fetchRequest.to(new ReceiverIMyProxy() { ... }); -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- -- Aucun virus trouvé dans ce message. Analyse effectuée par AVG - www.avg.fr Version: 10.0.1209 / Base de données virale: 1500/3568 - Date: 12/04/2011 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Edit multiple properties of an object
You can use @Editor.Path() since GWT 2.2 See http://code.google.com/p/google-web-toolkit/issues/detail?id=5877 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Getting Request Factory to work on the GWT-Eclipse environment
On Wednesday, April 13, 2011 2:57:35 AM UTC+2, Owen Ilagan wrote: Hello! I'm trying to make Request Factory work on GWT plug-in (2.2.1) for Eclipse 3.6 and I've run into a dilemma. While I got most of the coding required done, not an easy task given that I had to go through a lot of references and head scratching, my real troubles began when I put persistence code which is supposed to be server-side only on my service/locator classes. I use the same persistence code framework that I normally use for RPC style services. Obviously, GWT would refuse to compile when code like that is present in the client or shared package. However, if I move the offending class to the server package, the GWT editor reports an impending build error because the class referenced by the @Service annotation in other classes is no longer included in the client/shared package. This is actually a bug in the Google Plug for Eclipse. Your code will work. See http://code.google.com/p/google-web-toolkit/issues/detail?id=5587 How can I resolve this? If it really bothers you, you can replace your @ProxyFor and/or @Service annotations with @ProxyForName and @ServiceName. You'll lose compile-time type-safety and class-reference checks though, and you'll have to be careful when refactoring (renaming, moving around) your server-side classes. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Which method of HandlerManager is ClickListenerCollection.fireClick(widget w) similar with ?
Generally, HandlerManager#fireEvent but for DomEvents (such as ClickEvent) you'll have to use DomEvent.fireNativeEventhttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/event/dom/client/DomEvent.html#fireNativeEvent(com.google.gwt.dom.client.NativeEvent, com.google.gwt.event.shared.HasHandlers). But well, actually, you shouldn't need this at all. If you use this.addDomHandler(handler, ClickEvent.getType()) to attach your handlers, the widget's default onBrowserEvent will handle the dispatch for you (and addDomHandler automatically calls sinkEvent for you). You shouldn't even need to use HandlerManager, it's an implementation detail of Widget. As the dochttp://code.google.com/webtoolkit/doc/latest/DevGuideUiCustomWidgets.html#newsuggests, have a look at the Button source code (actually, the code you're interested in is in FocusWidgethttp://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/client/ui/FocusWidget.java#120 ). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Login security question
--- On Tue, 4/12/11, Raphael André Bauer raphael.andre.ba...@gmail.com wrote: From: Raphael André Bauer raphael.andre.ba...@gmail.com Subject: Re: Login security question To: google-web-toolkit@googlegroups.com Cc: Leung leung1_2...@yahoo.com Date: Tuesday, April 12, 2011, 9:39 PM On Tue, Apr 12, 2011 at 12:30 PM, Leung leung1_2...@yahoo.com wrote: Hi According to article LoginSecurityFAQ, http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ , I have a point that I really want someone to make it clear for me. From the article, Your server will then validate this login, and return a sessionID to your GWT app. The GWT app will store this sessionID in a static field. For every further request your GWT app makes to your server, include this sessionID in the payload of the request. (Either in the JSON data or the object you are transferring using GWT-RPC). I assume the server returns the sessionId by RPC to the client after validation. How can I include this sessionID in the payload of the request using GWT-RPC? How can I tell the sessionID is in the payload of the request or not in the payload? First part: The session is always sent in the header if it is a cookie set by your server. It's a http thing. Second part: Sending the session id via RCP must be done via a separate String in your RPC interface. So manually add a String to your RPC. Validating: Your server can then compare those two values. As only a friendly script can access the cookie of your domain your server can validate if the request is ok... Otherwise rise a security exception... Best, Raphael Thanks Ming -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. Hi Raphael, Thank you very much for your reply. For your second part, I have tried and modified some code posted on the tutorial. Is the following what you mean? public class LoginServiceImpl extends RemoteServiceServlet implements LoginService{ public String login(String _email, String _passwd) { String sessId = this.getThreadLocalRequest().getSession().getId(); final long DURATION = 1000 * 60 * 60 * 24 * 14; //duration 2 weeksDate expires = new Date(System.currentTimeMillis() + DURATION); Cookie cookie = new Cookie(sid,sessId); cookie.setPath(/); this.getThreadLocalResponse().addCookie(cookie); return sessId; } } Thanks Ming -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Old presenters registered on event bus, how to deal with this?
Hi, My new project is MVP (the old do-it-your-own way, not Activities and Places). Most of my presenters listen for at least something on the event bus. Also, one of my presenters is a presenter on its own, but can also be a presenter inside another presenter. My AppController-like class creates new presenters each time a navigation link is clicked (even if it was clicked before), meaning lots of objects end up registered on the event bus. This to me seems to be the normal way of doing things so far. *But, what's the best practise / normal way of removing something from the event bus when a view is switched?* How to detect, and where, etc? Any ideas? Even in non-MVP apps, this must become a problem... Cheers, Terra -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Packages like com.google.gwt.dev.util.collect -- should we use?
Hi, I notice lots of packages like the one above. I'm wondering if we should use, where possible, GWT implementations of commong Java util/whatever classes, or what's the best practises? ...OR, will these automagically be substituted anyway? I don't recall reading a whole lot about this in the docs. Regards, Terra -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Is there a way to generate i18n property from Constants?
? try to delete the line that says 'on' if this doesn't help: what's the compiler error-message? for more info on java-annotations see: http://download.oracle.com/javase/1.5.0/docs/guide/language/annotations.html On Apr 12, 3:23 pm, Soon Fatt Hoo sf...@sfhoo.com wrote: I used the -extra extras when I compile gwt project but it does not generate the properties file for me. The only properties generated was UI binding properties. I think I don't quite understand how I use the @generate annotation. I try to use @Generate as following code but it fail compile. Thanks @Generate(format = com.google.gwt.i18n.rebind.format.Properties) on public interface ExampleConstants extends ConstantsWithLookup { @DefaultStringValue(Address Line 2) String addressLine2(); } On Apr 12, 4:24 am, Thomas Broyer t.bro...@gmail.com wrote: When you compile your project, pass the -extra argument with a folder path (e.g. -extra extras), GWT will generate the *.properties there. You might have to add a few annotations to your interface though, such as @ Generatehttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/googl... . See alsohttp://code.google.com/webtoolkit/doc/latest/DevGuideI18n.html#DevGui... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Packages like com.google.gwt.dev.util.collect -- should we use?
They're in gwt-dev.jar, so you cannot use them on the server-side (where you'll only ever deploy gwt-servlet.jar) They're in the com.google.gwt.dev package, so you cannot use them in client code. The only place you could use them is in generators and linkers, but they're not part of the public API (i.e. not documented in the javadoc) so they can change without notice and break your code. So, the best practice is: don't use them. FYI, they're a rebased version of the Guava library r06, so if you want those utilities, go to http://guava-libraries.googlecode.com (and most classes are GwtCompatible, yay!) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Packages like com.google.gwt.dev.util.collect -- should we use?
Ah, okay...thanks a lot! :) On 13 April 2011 10:38, Thomas Broyer t.bro...@gmail.com wrote: They're in gwt-dev.jar, so you cannot use them on the server-side (where you'll only ever deploy gwt-servlet.jar) They're in the com.google.gwt.dev package, so you cannot use them in client code. The only place you could use them is in generators and linkers, but they're not part of the public API (i.e. not documented in the javadoc) so they can change without notice and break your code. So, the best practice is: don't use them. FYI, they're a rebased version of the Guava library r06, so if you want those utilities, go to http://guava-libraries.googlecode.com (and most classes are GwtCompatible, yay!) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@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-toolkit@googlegroups.com. To unsubscribe from this group, send email to 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 does my servlet cleanly throw an exception
In your service interface, declare that it throws one or more exceptions. This is what it means to be a recognized exception. Also, make sure those exceptions are GWT-serializable. You might want to create your own top-level exception for this, and just declare that it throws that, but you don't have to do it this way. Whenever your service implementation throws an exception that's declared in the service API, it will get passed back to the client's onFailure method. Paul On 12/04/11 16:29, Greg Dougherty wrote: I'm trying to throw an exception from my servlet back to the client without breaking anything along the way, and having no success. First I was throwing an InvocationException, but this created an error it was an unrecognized exception. So I threw a ServletException. This is acceptable on the Servlet side, because doPost is specified to throw ServletException. But on the Client side it creates a problem, because ServletException is not IsSerializable. And I can't create a Shared Exception that IsSerializable and inherits from ServletException, because ServletException is not defined on the Client side. So, how DOES my RPC code pass an exception back to the client without generating any errors for the servlet code? TIA, Greg -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
demo client-only web app
Hello everybody, I recently made a simple GWT web application tryning to use the best practices to develop a GWT app. Due to its simplicity, it is a client-only web app, but I hope it could help many developers who are starting with GWT and don´t know about GWT, MVP and other features. I didn´t know what to do, so I chose to make my cv web version not only to have it on internet but also to show the basics of a GWT client side app. I´m not using this in order to advertise my cv, so if anyone is bothered or thinks that I shouldn´t do this, I will disable it in appengine and change the url. The web app could be find in http://ernestoreigcv.appspot.com and the source in https://github.com/Erni/ernestoreigcv I will appreciate any feedback in order to improve it. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
FieldUpdater within CellTable still cannot update EntityProxy
Hello Myself and others have been struggling with updating values in CellTable that is part of an editor hierarchy via a HasDataEditor. Essentially the AutoBean provided to the FieldUpdater is frozen. The Autobeans held by Editors obtained from ListEditor.getEditors() are also frozen. I'm finding this in 2.3 M1 beta but it was apparently present in 2.1 and 2.2. It would be great to get resolution on issue 5981 so myself and probably others know how to proceed. Link to issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=5981 Link to discussion that brought the issue up: https://groups.google.com/d/topic/google-web-toolkit/j2U5C1UsCL4/discussion Thanks, Will Temperley -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: demo client-only web app
Nice job :) I think i ll have to pimp my resume like that also :) 2011/4/13 Ernesto Reig erniru...@gmail.com Hello everybody, I recently made a simple GWT web application tryning to use the best practices to develop a GWT app. Due to its simplicity, it is a client-only web app, but I hope it could help many developers who are starting with GWT and don´t know about GWT, MVP and other features. I didn´t know what to do, so I chose to make my cv web version not only to have it on internet but also to show the basics of a GWT client side app. I´m not using this in order to advertise my cv, so if anyone is bothered or thinks that I shouldn´t do this, I will disable it in appengine and change the url. The web app could be find in http://ernestoreigcv.appspot.com and the source in https://github.com/Erni/ernestoreigcv I will appreciate any feedback in order to improve it. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- GWT API for the Flash Platform http://code.google.com/p/gwt4air/ http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: FieldUpdater within CellTable still cannot update EntityProxy
This is by design. The editor framework is built around a flow synchronization patternhttp://martinfowler.com/eaaDev/FlowSynchronization.html, where you only modify the edited object when you flush() the editor (each internal HasDataEditor.IndexedEditor is given an editable proxy). This means you'd have to push changes into a queue and apply all of them on flush(); similar to how the CellSampler sample works: http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellSampler This can hardly be entirely automated... (but there sure is room for improvement!) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Is there a way to generate i18n property from Constants?
The on is a typo. My code doesn't have the 'on'. The error message is [ERROR] @Generate class com.google.gwt.i18n.rebind.format.Properties not found On Apr 13, 4:05 am, Martin Trummer ds.martin.trum...@gmail.com wrote: ? try to delete the line that says 'on' if this doesn't help: what's the compiler error-message? for more info on java-annotations see:http://download.oracle.com/javase/1.5.0/docs/guide/language/annotatio... On Apr 12, 3:23 pm, Soon Fatt Hoo sf...@sfhoo.com wrote: I used the -extra extras when I compile gwt project but it does not generate the properties file for me. The only properties generated was UI binding properties. I think I don't quite understand how I use the @generate annotation. I try to use @Generate as following code but it fail compile. Thanks @Generate(format = com.google.gwt.i18n.rebind.format.Properties) on public interface ExampleConstants extends ConstantsWithLookup { @DefaultStringValue(Address Line 2) String addressLine2(); } On Apr 12, 4:24 am, Thomas Broyer t.bro...@gmail.com wrote: When you compile your project, pass the -extra argument with a folder path (e.g. -extra extras), GWT will generate the *.properties there. You might have to add a few annotations to your interface though, such as @ Generatehttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/googl... . See alsohttp://code.google.com/webtoolkit/doc/latest/DevGuideI18n.html#DevGui... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Array performance problem! JsArrayNumber
When using WebGL you have to do a lot of array buffering. The thing is that in GWT hosted mode, the following Java code has to be used, since arrays can not directly be passed to a JavaScript call like new Int32Array(array);: public static JsArrayNumber wrapArray(double[] srcArray) { JsArrayNumber result = JavaScriptObject.createArray().cast(); for (int i = 0; i srcArray.length; i++) { result.set(i, srcArray[i]); } return result; } The problem is that even for small arrays this call is so damn inefficient, that is renders the entire approach unusable! Once the code gets compiled there is no issue at all (since now the array doesn't need to be converted), only in hosted mode it is a problem. But most of the time I am doing hosted mode debugging so always compiling the thing is not a solution... A workaround would be to use GWT.isScript() to omit geometry batching in hosted mode but that can't be a solution either... So how can I speed up this conversion in GWT hosted mode? Thanks for your help... 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
can't get rid of com.google.gwt.user.client.rpc.SerializationException
I have a problem to get a class serialized by gwt. i don't know why but i never had problem serialize Mapsomething here, something there but i allways get this error if i try to serialize Lists?! To cut a long story short here are the classes that gwt can't serialize: public class AdminUnit implements IsSerializable{ private String name; private String id; private AULevel level; private ArrayListAdminUnit children; public AdminUnit(String name, String id, AULevel level) { this.name = name; this.id = id; this.level = level; children = new ArrayListAdminUnit(); } public AdminUnit(String name, String id, AULevel level, ListAdminUnit children){ this(name,id,level); addAll(children); } public void addAll(ListAdminUnit addChildren){ children.addAll(addChildren); } public void addChild(AdminUnit child){ children.add(child); } public String getName() { return name; } public String getId() { return id; } public AULevel getLevel() { return level; } public ListAdminUnit getChildren() { return children; } } for sake of completness i made the used enum also serializable: public enum AULevel implements IsSerializable{ Land, County, Community } so what to make to get this class thru the wire? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Jetty: Form too large in dev mode
For anyone else that is struggling with this, I found that you can get around it by setting the following JVM argument: -Dorg.mortbay.jetty.Request.maxFormContentSize=-1 (e.g. you can do this through Eclipse's Run Configuration options by putting the above in the VM arguments box.) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Is there a way to generate i18n property from Constants?
I fixed my problems GWT change the Properties class to com.google.gwt.i18n.rebind.format.PropertiesFormat. That is why I cannot generate the properties file in the extras. I think they should change the documentation in the Java. :/ Thanks everybody for your help! :) On Apr 13, 9:23 am, Soon Fatt Hoo sf...@sfhoo.com wrote: The on is a typo. My code doesn't have the 'on'. The error message is [ERROR] @Generate class com.google.gwt.i18n.rebind.format.Properties not found On Apr 13, 4:05 am, Martin Trummer ds.martin.trum...@gmail.com wrote: ? try to delete the line that says 'on' if this doesn't help: what's the compiler error-message? for more info on java-annotations see:http://download.oracle.com/javase/1.5.0/docs/guide/language/annotatio... On Apr 12, 3:23 pm, Soon Fatt Hoo sf...@sfhoo.com wrote: I used the -extra extras when I compile gwt project but it does not generate the properties file for me. The only properties generated was UI binding properties. I think I don't quite understand how I use the @generate annotation. I try to use @Generate as following code but it fail compile. Thanks @Generate(format = com.google.gwt.i18n.rebind.format.Properties) on public interface ExampleConstants extends ConstantsWithLookup { @DefaultStringValue(Address Line 2) String addressLine2(); } On Apr 12, 4:24 am, Thomas Broyer t.bro...@gmail.com wrote: When you compile your project, pass the -extra argument with a folder path (e.g. -extra extras), GWT will generate the *.properties there. You might have to add a few annotations to your interface though, such as @ Generatehttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/googl... . See alsohttp://code.google.com/webtoolkit/doc/latest/DevGuideI18n.html#DevGui... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: can't get rid of com.google.gwt.user.client.rpc.SerializationException
stupid me: the default zero parameter constructor is missing with private AdminUnit(){ } it is workin On 13 Apr., 15:39, tanteanni tantea...@hotmail.com wrote: I have a problem to get a class serialized by gwt. i don't know why but i never had problem serialize Mapsomething here, something there but i allways get this error if i try to serialize Lists?! To cut a long story short here are the classes that gwt can't serialize: public class AdminUnit implements IsSerializable{ private String name; private String id; private AULevel level; private ArrayListAdminUnit children; public AdminUnit(String name, String id, AULevel level) { this.name = name; this.id = id; this.level = level; children = new ArrayListAdminUnit(); } public AdminUnit(String name, String id, AULevel level, ListAdminUnit children){ this(name,id,level); addAll(children); } public void addAll(ListAdminUnit addChildren){ children.addAll(addChildren); } public void addChild(AdminUnit child){ children.add(child); } public String getName() { return name; } public String getId() { return id; } public AULevel getLevel() { return level; } public ListAdminUnit getChildren() { return children; } } for sake of completness i made the used enum also serializable: public enum AULevel implements IsSerializable{ Land, County, Community } so what to make to get this class thru the wire? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT and CSS3 Gradient
I have a similar problem and posted it on the cssResource-Wiki page generally it would be better to wrap the thing in a if-else to avoid sending unnecessary stuff to the browser, like this (won't fix your problem, though): @if user.agent gecko1_8 { custom-buttom {background: -moz-linear-gradient(top, white, #72C6E44%, #0C5FA5); } @elif user.agent safari { custom-buttom {background:-webkit-gradient(linear, left top, left bottom, from(white), to(#0C5FA5), color-stop(0.03, #72C6E4)); } but using @literal didn't work for me: I get a warning that some things would be expected (everything a CSS file can hold, including STRING, which i thought -webkit-gradient(linear, left top, left bottom, from(white),to(silver)) would be…) escaping the spaces with backslashes didn't work for me either… On 11 Apr., 11:55, pvixen...@yahoo.com pvixen...@yahoo.com wrote: Hi! I'm quite new to GWT (I'm a PHP developer assigned to do the front- end of a Java application because of my CSS knowledge) and what I'm trying to do is use CSS3 Gradient using a stylesheet imported via ui:style src=main.css On main.css I have .custom-buttom { background: -moz-linear-gradient(top, white, #72C6E4 4%, #0C5FA5); background:-webkit-gradient(linear, left top, left bottom, from(white), to(#0C5FA5), color-stop(0.03, #72C6E4)); } But when I try to view via the Google Chrome plugin, it collapses the whitespace within the parenthesis leaving me with .custom-buttom { background: -moz-linear-gradient(top, white, #72C6E44%, #0C5FA5); background:-webkit-gradient(linear, lefttop, leftbottom, from(white), to(#0C5FA5), color-stop(0.03, #72C6E4)); } which breaks it, hence preventing the rendering of the gradient. Is there another way to do this or maybe a way to prevent the whitespace from collapsing. Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Read Timeout on Eclipse GWT Update Site
The eclipse update site is not working for me, I keep getting [Read Timeout] for the latest and beta update sites: - http://dl.google.com/eclipse/plugin/3.6 - http://dl.google.com/eclipse/plugin/beta/3.6 Regarding, the timeouts I've tried increasing the default timeouts, as well as, p2 timeouts. There is a zip file for the the latest build ( http://dl.google.com/eclipse/plugin/3.6/zips/gpe-e36-latest-updatesite.zip ), however I couldn't find the zip file for the beta update site. I'm interested on the beta version for trying the latest fix for IE9. On that note, is there a nightly build update site as well? and its respective update site zip 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
NumberFormat not formatting single-digit numbers
Hi! I'm working on an enterprise GWT/GXT application and we've recently noticed that our currency fields are not correctly formatting single- digit inputs. We're using java.math.BigDecimal to represent the internal values, and using NumberFormat.getFormat($#,##0.00; ($#,##0.00)) for our format setting. What happens is when the user enters a value in a field (which has a correctly-formatted default value of $0.00) and hits tab to exit the field, the format only applies to entries that are 10 or larger. If they enter a single-digit value, it won't be formatted. They can work around this by first entering a number 10 or larger, tabbing out, then going back and changing it to a single digit value, and tabbing out again, at which point the formatting correctly applies. To further complicate matters, this only occurs on the actual server; the formatter works perfectly fine in local hosted mode. This occurs in both IE8 and Firefox 3. We're running GWT 2.1.1. Thanks for your time! /Kyle -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
RequestFactory: EntityProxy for Interface
Hello, the domain model in my application is represented by Java interfaces. Therefore, I had the idea to define EntityProxies for interfaces. For example, domain interface TypeSystem: public interface TypeSystem { String getName(); void setName(String name); } and EntityProxy: @ProxyFor(value = TypeSystem.class, locator = TypeSystemLocator.class) public interface TypeSystemProxy extends EntityProxy { String getName(); void setName(String name); } I created a Locator and a ServiceLocator with a Service, because in the interface I cannot define static methods or member methods. I found out that I run into problems (I am using GWT 2.2.0) because GWT cannot find the proxy type for the entity type. If I use instead of the interface an abstract class then everything works fine. I did some debugging and found the cause of the problem in the method getEntityProxyTypeName of the class RequestFactoryInterfaceValidator: /* * If nothing was found look for proxyable supertypes the domain object can * be upcast to. */ if (found == null || found.isEmpty()) { ListType types = getSupertypes(parentLogger, key); for (Type type : types) { if (objectType.equals(type)) { break; } found = domainToClientType.get(type); if (found != null !found.isEmpty()) { break; } } } GWT supports in principle the upcast of entity objects. However, the three lines if (objectType.equals(type)) { break; } prevent the usage of interfaces. The types list is ordered, it contains first the super classes, then the objectType, and then the interfaces. I removed these three lines, and my example worked. Is there a reason why GWT does not support EntityProxys for interfaces? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to 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 a ValueListBox with RequestFactory Editor?
You have to instanciate your ValueListBox with the second parameter ProvidesKey and implement the getKey() method. Your code should look something like this : @UiField(provided = true) public ValueListBoxIMySubProxy listBox = new ValueListBoxIMySubProxy(new ProxyRendererIMySubProxy(null) { @Override public String render(IMySubProxy object) { return object == null ? null : object.getName(); } }, new SimpleKeyProviderIMySubProxy() { @Override public Object getKey(IMySubProxy item) { return item == null ? null : object.getName(); } }); On 12 avr, 18:59, Christien Lomax thecatwhispe...@gmail.com wrote: I can't seem to find a single example of how to integrate a ListBox or ValueListBox with an Editor. I've put an VLB in my editor, and it sets the value, but if I add any values to the VLB, it just tacks them onto the end (So I'll have two of the same items in the list, one added by the editor, and the other added by me when I add the VLB's acceptableValues.) A UI has a list of MyProxy (which is a Thing), when a user clicks on a thing, the editor is shown (via the workflow). The item is retrieved and shown in the editor. The editor needs to load the list of MySubProxy (SubThings) and set the selected item as provided by the MyProxy (Thing) object. Instead, the edit correctly sets all teh values, but appends the acceptable values (ListMySubProxy) to the list which already contains the value set by the MyProxy object. Does anyone have an example of this working that they can share, or can you point out what I'm doing wrong (code below)? eg: (obviously, I've changes the names of the things to protect my organization's model.. and added ... where code exists but is not needed for the example) *MyEditor.ui.xml* ui:UiBinder ... g:TextBox ui:Field=name/ g:ValueListBox ui:field=mylist/ /ui:UiBinder *MyEditor.java* public class MyEditor extends Composite implements EditorIMyProxy { interface Binder extends UiBinderWidget, MyEditor { } @UiField public TextBox name; @UiField(provided=true) public ValueListBoxIMySubProxy listBox = new ValueListBoxIMySubProxy( new ProxyRendererIMySubProxy(null) { @Override public String render(IMySubProxy object) { return object == null ? null : object.getName(); } }); public MyEditor () { initWidget(GWT.Binder create(Binder.class).createAndBindUi(this)); MyApp.getRequestFactory().myRequest().listThings(0, 10).fire(new ReceiverListIMySubProxy() { @Override public void onSuccess(ListIMySubProxy response) { listBox.setAcceptableValues(response); } }); } } *IMyProxy.java* @ProxyFor(value = Thing.class, locator = MyThingGwtAdapter.class) public interface IMyProxy extends EntityProxy { abstract Long getKey(); abstract String getName(); abstract IMySubProxy getSubThing(); } *IMySubProxy.java* @ProxyFor(value = SubThing.class, locator = MySubThingGwtAdapter.class) public interface IMySubProxy extends EntityProxy { abstract Long getKey(); abstract String getName(); } *MyWorkflow.java* public class MyWorkflow { interface Binder extends UiBinderDialogBox, MyWorkflow { Binder BINDER = GWT.create(Binder.class); } interface Driver extends RequestFactoryEditorDriverIMyProxy, MyEditor { } public static void register(ECMEventBus eventBus, final MyRequestFactory requestFactory) { eventBus.addHandler(MyEditEvent.TYPE, new MyEditEvent.Handler() { public void startEdit(IMyProxy proxy, RequestContext requestContext) { new MyWorkflow(requestFactory, proxy).edit(requestContext); } }); } @UiField DialogBox dialog; @UiField(provided = true) MyEditor editor; private Driver driver; private IMyProxy proxy; private final MyRequestFactory requestFactory; private MyWorkflow(MyRequestFactory requestFactory, IMyProxy proxy) { this.requestFactory = requestFactory; this.proxy = proxy; editor = new MyEditor(); Binder.BINDER.createAndBindUi(this); } @UiHandler(cancel) void onCancel(ClickEvent event) { dialog.hide(); } @UiHandler(save) void onSave(ClickEvent event) { RequestContext context = driver.flush(); if (driver.hasErrors()) { dialog.setText(Errors detected locally); return; } context.fire(new ReceiverVoid() { ... }); } private void edit(RequestContext requestContext) { driver = GWT.create(Driver.class); driver.initialize(requestFactory, editor); if (requestContext == null) { fetchAndEdit(); return; } driver.edit(proxy, requestContext); } private void fetchAndEdit() { RequestIMyProxy fetchRequest = requestFactory.find(proxy.stableId());
Intermittent error . Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
We have a web application which uses sp lists web service. 1. We have a resume database (Document Library) in sharepoint 2. A .Net application uses Lists.asmx and updates the resumes DL everyday for any changes which are tracked in the Employees Database this is a table which has inforamtion of employees for changes in a seprate Database server 3. This particular application is run as scheduled job every day at 7.45 AM Central time on our servers. This server is different from our sharpeoint application and web front end servers Intermittently we are getting the above error, we log errors and succes and everyday we receive a log file. The error is points to ListGetListItems and ListItems.Update methods in our Check Modified method which actually gets a resultset of all the modified records. The items /resumes are updated individually not as bulk, each item is processed and updated using ITem.Update I have checked the code and my gut feeling is error is not from code. If it is from the code it should not work at all, also we use the same code to test, in the test server and it does not break there Also I h ave checked the RequestmaxLength in the web config files of our web fron end, it is around 5+ We do not have any other services like incremental crawl/full crawl running at same time on the sharepoint server when the lists.asmx is trying to update the DL list. or any other scheduled jobs running at the same time on the server from where this update job is scheduled. Kind of lost here, any ideas or any help would be appreciated. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Bug Eclipse Helios + Gwt Designer + UIConstructor ?
Hello, I've installed Eclipse Helios with the Goole GWT plugin. After that, I've created a sample GWT app with the wizard. I've implemented my own label widget as follow, and I use the @UiConstructor annotation : import com.google.gwt.core.client.GWT; import com.google.gwt.uibinder.client.UiConstructor; import com.google.gwt.user.client.ui.Label; public class MyLabel extends Label { @UiConstructor public MyLabel(String key) { GWT.log(key); } } Finally, in a UIBinder, in design mode (terribly slow design mode at loading...) I wanted to add my widget but this error appears, is it a known bug ? Am I missusing GWT ? : Error loading module(s). GWT Designer can't load a module because of error in gwt.xml module description, incorrect resource which requires processing with GWT generator or by some other configuration error. Please check your $project_dir/.gwt/.gwt-log for GWT-specific errors. This log has the following error messages: [ERROR] p1:MyLabel missing required attribute(s): key Element p1:MyLabel (:13) [ERROR] Deferred binding failed for 'sample.client.mytemplate.mytemplateUiBinder'; expect subsequent failures Show stack trace. Hide stack trace. Stack trace: org.eclipse.wb.internal.core.utils.exception.DesignerException: 4108 (Error loading module(s).). [ERROR] p1:MyLabel missing required attribute(s): key Element p1:MyLabel (:13) [ERROR] Deferred binding failed for 'sample.client.mytemplate.mytemplateUiBinder'; expect subsequent failures at com.google.gdt.eclipse.designer.GwtExceptionRewriter.rewrite(GwtExceptionRewriter.java: 52) at org.eclipse.wb.internal.core.utils.exception.DesignerExceptionUtils.rewriteException(DesignerExceptionUtils.java: 222) at org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.showExceptionOnDesignPane(XmlDesignPage.java: 470) at org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.handleDesignException(XmlDesignPage.java: 285) at org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.access $1(XmlDesignPage.java:271) at org.eclipse.wb.internal.core.xml.editor.XmlDesignPage $8.handleException(XmlDesignPage.java:443) at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java: 324) at org.eclipse.wb.core.gef.command.EditCommand.execute(EditCommand.java: 50) at org.eclipse.wb.internal.gef.core.EditDomain.executeCommand(EditDomain.java: 59) at org.eclipse.wb.gef.core.tools.Tool.executeCommand(Tool.java:209) at org.eclipse.wb.gef.core.tools.AbstractCreationTool.handleButtonUp(AbstractCreationTool.java: 62) at org.eclipse.wb.gef.core.tools.Tool.mouseUp(Tool.java:395) at org.eclipse.wb.internal.gef.core.EditDomain.mouseUp(EditDomain.java: 255) at org.eclipse.wb.internal.gef.graphical.EditEventManager.mouseUp(EditEventManager.java: 149) at sun.reflect.GeneratedMethodAccessor90.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.wb.internal.draw2d.EventManager $8.invoke(EventManager.java:325) at $Proxy1.mouseUp(Unknown Source) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java: 213) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java: 4066) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java: 2640) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java: 332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java: 664) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java: 149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java: 115) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java: 196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java: 110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java: 79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java: 369) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java: 179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at
CellTable fill up as you scroll
Hi, I am trying to implement a CellTable that fills up with data as the user scrolls to the end of the ScrollPanel. In other words, I want to implement the same behavior as shown in the GWT showcase for the celllist: http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellList As you scroll and it hits the bottom of the ScrollPanel, not items are added in. I have the functionality of the triggering done, however, being that my table has potentially a thousand or more items in it and needs to be sortable in the end, I am under the impression that I should not use the ListDataProvider, but the AsyncDataProvider, which is what I am doing. The issue is that once I load the new data set and use: myProvider.updateRowCount(totalDataOnServer, true); myProvider.updateRowData(newStart, rows); The problem is that the scroll bar jumps to the top again, i.e., NOT the same behavior as seen in the showcase that I listed above. My show more scroll handler which implements AbstractPager calculates the new page size and does this in its onScroll method: diplay.setVisibleRange(0, newPageSize); Any idea on what I am doing wrong here? Thanks, -Yaakov. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 with css-defined images
Hey all, I'm so far really loving the UIBinder approach -- I was hesitant at first (since already doing fine with programmatic GWT widget/panel/ form creation), but being able to mockup something quickly, then add behavior after the fact is really showing a good approach to development. Question: For css-defined images, is there a good approach to handle these without requiring (major) modification to the existing .css files, or without a lot of hand-writing of resourceBundles? For example, add an image to an h1 tag under the .header div: .header h1 { height: 40px; background: transparent url(../images/logo.png) left top no-repeat; } this is defined in the app.css that is added to the UIBinder as: ui:style field=app src=./css/app.css / (as in, so far I haven't need to write any resource bundles, awesomeness!) Let me know please...I've read a lot of blogs and mailing lists around similar problems, but maybe not specifically this. Thanks! -D -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
gwtapi (createfile, redfilecontent, createpdf) etc
hello, each browser have your api for create and read files or to access data on disk storage So I would like to create an api to make this... http://code.google.com/p/gwtapi/ Will have an interface that will be create by deffered binding, and an implementation for each browser... for example ReadFile read = GWT.create(ReadFile.class); String[] lines = read.thisFile(); make sense create this api? thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: gwtapi (createfile, redfilecontent, createpdf) etc
As far as I am aware, the browser wont let you read/write local files like that. -Ben On Apr 13, 9:53 am, Diego Lovison diegolovi...@gmail.com wrote: hello, each browser have your api for create and read files or to access data on disk storage So I would like to create an api to make this...http://code.google.com/p/gwtapi/ Will have an interface that will be create by deffered binding, and an implementation for each browser... for example ReadFile read = GWT.create(ReadFile.class); String[] lines = read.thisFile(); make sense create this api? thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: gwtapi (createfile, redfilecontent, createpdf) etc
To do that there s no way around a pluging(Flash , silverlight) for now. 2011/4/13 Ben Imp benlee...@gmail.com As far as I am aware, the browser wont let you read/write local files like that. -Ben On Apr 13, 9:53 am, Diego Lovison diegolovi...@gmail.com wrote: hello, each browser have your api for create and read files or to access data on disk storage So I would like to create an api to make this... http://code.google.com/p/gwtapi/ Will have an interface that will be create by deffered binding, and an implementation for each browser... for example ReadFile read = GWT.create(ReadFile.class); String[] lines = read.thisFile(); make sense create this api? thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- GWT API for the Flash Platform http://code.google.com/p/gwt4air/ http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: CellTable Dynatable SimplePager last Button
Create instance of simplepager resources and pass to the SimplePager Constructor. Try below lines. SimplePager.Resources pagerResources = GWT.create(SimplePager.Resources.class); SimplePager pager= new CustomSimplePager(TextLocation.CENTER, pagerResources, false, 0, true); P.S : From GWT Showcase example CwCellTable, if you want to take a look at it. gwt-2.2.0\samples\Showcase\src\com\google\gwt\sample\showcase\client \content\cell\CwCellTable.java Hope this helps. -Ahmed On Apr 12, 12:47 pm, Metronome Basic metronome.ba...@worldonline.fr wrote: It was already constructed that way ! but () is disabled and (| ) is hidden may be you somehow have to tell the pager what is the last page ? thanks Patrick - Original Message - From: John LaBanca To: google-web-toolkit@googlegroups.com Sent: Tuesday, April 12, 2011 5:45 PM Subject: Re: CellTable Dynatable SimplePager last Button The is a fast forward button that defaults to 1000 rows. Use the overloaded SimplePager constructor to specify that you want to use a last page button instead of a fast forward button. Thanks, John LaBanca jlaba...@google.com On Tue, Apr 12, 2011 at 11:41 AM, Metronome Basic metronome.ba...@worldonline.fr wrote: I've a CellTable using the example code in DynaTable but as in DynaTable the last () Button of th Pager is disabled in my case , as I know the row count , is there anyway to enable the button thanks Patrick -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. --- --- --- --- Aucun virus trouvé dans ce message. Analyse effectuée par AVG -www.avg.fr Version: 10.0.1209 / Base de données virale: 1500/3568 - Date: 12/04/2011 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to 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 with css-defined images
As soon as you use UiBinder, you're implicitly writing a ClientBundle, just that you write XML instead of Java. A ui:style generates a CssResource; and you can use a ui:image to generate an ImageResource and a ui:data to generate a DataResource. You can then use them from the CSS with @sprite and @url, just like any other ImageResource/DataResource. Have a look at the Mail sample, it uses both ui:image and ui:data IIRC. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to 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 a ValueListBox with RequestFactory Editor?
You Need a proper KeyProvider for ValueListBox EntityProxyKeyProvider - Original Message - From: Christien Lomax To: google-web-toolkit@googlegroups.com Sent: Tuesday, April 12, 2011 6:59 PM Subject: How to use a ValueListBox with RequestFactory Editor? I can't seem to find a single example of how to integrate a ListBox or ValueListBox with an Editor. I've put an VLB in my editor, and it sets the value, but if I add any values to the VLB, it just tacks them onto the end (So I'll have two of the same items in the list, one added by the editor, and the other added by me when I add the VLB's acceptableValues.) A UI has a list of MyProxy (which is a Thing), when a user clicks on a thing, the editor is shown (via the workflow). The item is retrieved and shown in the editor. The editor needs to load the list of MySubProxy (SubThings) and set the selected item as provided by the MyProxy (Thing) object. Instead, the edit correctly sets all teh values, but appends the acceptable values (ListMySubProxy) to the list which already contains the value set by the MyProxy object. Does anyone have an example of this working that they can share, or can you point out what I'm doing wrong (code below)? eg: (obviously, I've changes the names of the things to protect my organization's model.. and added ... where code exists but is not needed for the example) MyEditor.ui.xml ui:UiBinder ... g:TextBox ui:Field=name/ g:ValueListBox ui:field=mylist/ /ui:UiBinder MyEditor.java public class MyEditor extends Composite implements EditorIMyProxy { interface Binder extends UiBinderWidget, MyEditor { } @UiField public TextBox name; @UiField(provided=true) public ValueListBoxIMySubProxy listBox = new ValueListBoxIMySubProxy(new ProxyRendererIMySubProxy(null) { @Override public String render(IMySubProxy object) { return object == null ? null : object.getName(); } }); public MyEditor () { initWidget(GWT.Binder create(Binder.class).createAndBindUi(this)); MyApp.getRequestFactory().myRequest().listThings(0, 10).fire(new ReceiverListIMySubProxy() { @Override public void onSuccess(ListIMySubProxy response) { listBox.setAcceptableValues(response); } }); } } IMyProxy.java @ProxyFor(value = Thing.class, locator = MyThingGwtAdapter.class) public interface IMyProxy extends EntityProxy { abstract Long getKey(); abstract String getName(); abstract IMySubProxy getSubThing(); } IMySubProxy.java @ProxyFor(value = SubThing.class, locator = MySubThingGwtAdapter.class) public interface IMySubProxy extends EntityProxy { abstract Long getKey(); abstract String getName(); } MyWorkflow.java public class MyWorkflow { interface Binder extends UiBinderDialogBox, MyWorkflow { Binder BINDER = GWT.create(Binder.class); } interface Driver extends RequestFactoryEditorDriverIMyProxy, MyEditor { } public static void register(ECMEventBus eventBus, final MyRequestFactory requestFactory) { eventBus.addHandler(MyEditEvent.TYPE, new MyEditEvent.Handler() { public void startEdit(IMyProxy proxy, RequestContext requestContext) { new MyWorkflow(requestFactory, proxy).edit(requestContext); } }); } @UiField DialogBox dialog; @UiField(provided = true) MyEditor editor; private Driver driver; private IMyProxy proxy; private final MyRequestFactory requestFactory; private MyWorkflow(MyRequestFactory requestFactory, IMyProxy proxy) { this.requestFactory = requestFactory; this.proxy = proxy; editor = new MyEditor(); Binder.BINDER.createAndBindUi(this); } @UiHandler(cancel) void onCancel(ClickEvent event) { dialog.hide(); } @UiHandler(save) void onSave(ClickEvent event) { RequestContext context = driver.flush(); if (driver.hasErrors()) { dialog.setText(Errors detected locally); return; } context.fire(new ReceiverVoid() { ... }); } private void edit(RequestContext requestContext) { driver = GWT.create(Driver.class); driver.initialize(requestFactory, editor); if (requestContext == null) { fetchAndEdit(); return; } driver.edit(proxy, requestContext); } private void fetchAndEdit() { RequestIMyProxy fetchRequest = requestFactory.find(proxy.stableId()); fetchRequest.with(driver.getPaths()); fetchRequest.to(new ReceiverIMyProxy() { @Override public void onSuccess(IMyProxy proxy) { MyWorkflow.this.proxy = proxy; IThingRequest context = requestFactory.thingRequest();
Re: CellTable Dynatable SimplePager last Button
I succedede in showing the button , but it has no action , but it has no action I think that it is because the last index is not known ! I can't figure out a way to pass it Patrick - Original Message - From: Ahmed Mohammed ahmedmohiud...@gmail.com To: Google Web Toolkit google-web-toolkit@googlegroups.com Sent: Wednesday, April 13, 2011 5:46 PM Subject: Re: CellTable Dynatable SimplePager last Button Create instance of simplepager resources and pass to the SimplePager Constructor. Try below lines. SimplePager.Resources pagerResources = GWT.create(SimplePager.Resources.class); SimplePager pager= new CustomSimplePager(TextLocation.CENTER, pagerResources, false, 0, true); P.S : From GWT Showcase example CwCellTable, if you want to take a look at it. gwt-2.2.0\samples\Showcase\src\com\google\gwt\sample\showcase\client \content\cell\CwCellTable.java Hope this helps. -Ahmed On Apr 12, 12:47 pm, Metronome Basic metronome.ba...@worldonline.fr wrote: It was already constructed that way ! but () is disabled and (| ) is hidden may be you somehow have to tell the pager what is the last page ? thanks Patrick - Original Message - From: John LaBanca To: google-web-toolkit@googlegroups.com Sent: Tuesday, April 12, 2011 5:45 PM Subject: Re: CellTable Dynatable SimplePager last Button The is a fast forward button that defaults to 1000 rows. Use the overloaded SimplePager constructor to specify that you want to use a last page button instead of a fast forward button. Thanks, John LaBanca jlaba...@google.com On Tue, Apr 12, 2011 at 11:41 AM, Metronome Basic metronome.ba...@worldonline.fr wrote: I've a CellTable using the example code in DynaTable but as in DynaTable the last () Button of th Pager is disabled in my case , as I know the row count , is there anyway to enable the button thanks Patrick -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. --- --- --- --- Aucun virus trouvé dans ce message. Analyse effectuée par AVG -www.avg.fr Version: 10.0.1209 / Base de données virale: 1500/3568 - Date: 12/04/2011 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. - Aucun virus trouvé dans ce message. Analyse effectuée par AVG - www.avg.fr Version: 10.0.1209 / Base de données virale: 1500/3571 - Date: 13/04/2011 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How do I run a GWT 1.5.2 project in Eclipse?
Hi, I'm working on a project that uses GWT-Ext - because of this it's stuck on GWT 1.5.2. The Eclipse project I've inherited has not been set up so that it will run the application in the IDE. I've been able to do this with GWT 1.5 in the past when using IntelliJ, so I'm sure it must be possible with Eclipse. Does anyone know of a good how-to? It's complicated slightly because Maven gives all the GWT (and other) jars non-standard names. I've tried using the Google plug-in for Eclipse, but it's unable to locate critical files because of this Maven problem. Any help would be much appreciated. 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: gwtapi (createfile, redfilecontent, createpdf) etc
That's not quite true actually: http://www.html5rocks.com/features/file See https://developer.mozilla.org/en/using_files_from_web_applications for some sample code. It's far from the level of support of Flash though... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to 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 with css-defined images
Wow, that made it crystal clear, thank you! So, using that I should be able to do all this within the uibinder xml, with the intent to make a background image: ui:image field=bgImage src=./images/app-bg.png / ui:style @sprite .background { gwt-image: 'bgImage'; background-repeat: no-repeat; } /ui:style g:HTMLPanel styleName={style.background} Unfortunately (using Google Plugin) getting could not find no-arg method named background in type com.google.gwt.resources.client.CssResource It seems I'm very close actually. -D On Apr 13, 11:51 am, Thomas Broyer t.bro...@gmail.com wrote: As soon as you use UiBinder, you're implicitly writing a ClientBundle, just that you write XML instead of Java. A ui:style generates a CssResource; and you can use a ui:image to generate an ImageResource and a ui:data to generate a DataResource. You can then use them from the CSS with @sprite and @url, just like any other ImageResource/DataResource. Have a look at the Mail sample, it uses both ui:image and ui:data IIRC. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: gwtapi (createfile, redfilecontent, createpdf) etc
Yes Chrome have the api too... I dont know about safari, ie and opera On 13 abr, 13:08, Thomas Broyer t.bro...@gmail.com wrote: That's not quite true actually:http://www.html5rocks.com/features/file Seehttps://developer.mozilla.org/en/using_files_from_web_applicationsfor some sample code. It's far from the level of support of Flash though... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to 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 with css-defined images
Self-correction, the 'no-arg' is because you do not use @sprite as an annotation, but instead on the same line as the style definition BAD: @sprite .background CORRECT: @sprite .background On Apr 13, 1:20 pm, dhartford binarymon...@gmail.com wrote: Wow, that made it crystal clear, thank you! So, using that I should be able to do all this within the uibinder xml, with the intent to make a background image: ui:image field=bgImage src=./images/app-bg.png / ui:style @sprite .background { gwt-image: 'bgImage'; background-repeat: no-repeat; } /ui:style g:HTMLPanel styleName={style.background} Unfortunately (using Google Plugin) getting could not find no-arg method named background in type com.google.gwt.resources.client.CssResource It seems I'm very close actually. -D On Apr 13, 11:51 am, Thomas Broyer t.bro...@gmail.com wrote: As soon as you use UiBinder, you're implicitly writing a ClientBundle, just that you write XML instead of Java. A ui:style generates a CssResource; and you can use a ui:image to generate an ImageResource and a ui:data to generate a DataResource. You can then use them from the CSS with @sprite and @url, just like any other ImageResource/DataResource. Have a look at the Mail sample, it uses both ui:image and ui:data IIRC. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: FieldUpdater within CellTable still cannot update EntityProxy
On Apr 13, 2:01 pm, Thomas Broyer t.bro...@gmail.com wrote: This is by design. The editor framework is built around a flow synchronization patternhttp://martinfowler.com/eaaDev/FlowSynchronization.html, where you only modify the edited object when you flush() the editor (each internal HasDataEditor.IndexedEditor is given an editable proxy). This means you'd have to push changes into a queue and apply all of them on flush(); similar to how the CellSampler sample works:http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellSampler This can hardly be entirely automated... (but there sure is room for improvement!) Ok thanks Thomas. I must admit I can't see the point of disallowing direct editing like this. Couldn't this be done via myHasDataEditor.getEditors().get(index).setValue(someProxy)? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 URLs with # don't work with IE7
Hello, There seem to be a know issue with IE which doesn't respond to URLs that have # sign in them. See for example: https://mootools.lighthouseapp.com/projects/2706/tickets/638-request-fails-when-url-has-hash-in-ie7 As we use # quite frequently in out GWT based application we are lacking support for IE7 users who want to browse the site. Is there any known workaround for GWT other then modifying the URL? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to 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 URLs with # don't work with IE7
What does your index.html page look like? There's some iFrame magic that needs to be done for history to work in IE This is what I use in one of my applications: iframe src=javascript:'' id=__gwt_historyFrame tabIndex='-1' style=position:absolute;width:0;height:0;border:0/iframe -- Jan Vladimir Mostert BEngSci MyCee Technologies On Wed, Apr 13, 2011 at 7:33 PM, Roy roy.cohe...@gmail.com wrote: Hello, There seem to be a know issue with IE which doesn't respond to URLs that have # sign in them. See for example: https://mootools.lighthouseapp.com/projects/2706/tickets/638-request-fails-when-url-has-hash-in-ie7 As we use # quite frequently in out GWT based application we are lacking support for IE7 users who want to browse the site. Is there any known workaround for GWT other then modifying the URL? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@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-toolkit@googlegroups.com. To unsubscribe from this group, send email to 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 URLs with # don't work with IE7
i had the same problem, when i was testing in IE7 it would actually refresh the page when i tried to use # On Wed, Apr 13, 2011 at 1:47 PM, Jan Mostert jan.most...@gmail.com wrote: What does your index.html page look like? There's some iFrame magic that needs to be done for history to work in IE This is what I use in one of my applications: iframe src=javascript:'' id=__gwt_historyFrame tabIndex='-1' style=position:absolute;width:0;height:0;border:0/iframe -- Jan Vladimir Mostert BEngSci MyCee Technologies On Wed, Apr 13, 2011 at 7:33 PM, Roy roy.cohe...@gmail.com wrote: Hello, There seem to be a know issue with IE which doesn't respond to URLs that have # sign in them. See for example: https://mootools.lighthouseapp.com/projects/2706/tickets/638-request-fails-when-url-has-hash-in-ie7 As we use # quite frequently in out GWT based application we are lacking support for IE7 users who want to browse the site. Is there any known workaround for GWT other then modifying the URL? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Using ClientBundle ImageResource in Inlined Style Div background-image proerty
Hi, I need to know the right approach in getting Images from my ClientBundle to appear in my styled Div's contained with an HTMLPanel in the UIBinder as I have looked for ages and can't seem to find the right approach? ui:style .left_mid { width: 167px; float: left; background-image: MyResourceBundle.myBackgroundImage() background-repeat: repeat-y; padding-left: 2px; } /ui:style g:HTMLPanel div class={style.left_mid}/ ... ... ... Thanks in advance, Ian. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Web application starter project send button missing
I am following the instructions at http://code.google.com/webtoolkit/usingeclipse.html#deploying, Run Locally in Development Mode… ...when displaying the web application starter project, there is nothing under Please Enter Your Name (there should be a field and a send button) in Chrome or FF browsers on Mac osx. Every now and then, they do appear (not sure what the difference it). They always appear properly in the GAE on appspot.com. It makes me very nervous if the Run Locally in Development Mode doesn't work as expected by google's own demo app. Any ideas? Thanks bob -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: access a form from a JSNI function in GWT
Ok, I do that, and it's work perfect. Thanks ;) Now my problem is that I can't send a good POST method with chrome ... this has no end lol On 31 mar, 15:46, Thomas Broyer t.bro...@gmail.com wrote: On Thursday, March 31, 2011 1:08:26 PM UTC+2, mightymightyblues wrote: So, I create a : g:FormPanel enctype=multipart/form-data method=post name=fileinfo ui:field=fileinfo input type=file name=file/ /g:FormPanel Why a FormPanel? form ui:field=fileinfo ... and @UiField com.google.gwt.dom.client.FormElement fileinfo; (you can also just use a com.google.gwt.dom.client.Element) I'd then give it as an argument to the JSNI method rather than accessing the field from JSNI, but that's just a matter of personal taste (just that the JSNI is more readable IMO) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to 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 URLs with # don't work with IE7
Now that I think about it I don't think I can modify the URL not to have # as we need #! in order the site to support Google's Ajax crawling scheme... Any ideas? On Apr 13, 6:53 pm, Roy roy.cohe...@gmail.com wrote: I've already got this line in index.html. Can you try few # based URLs with IE7? On Apr 13, 6:47 pm, Jan Mostert jan.most...@gmail.com wrote: What does your index.html page look like? There's some iFrame magic that needs to be done for history to work in IE This is what I use in one of my applications: iframe src=javascript:'' id=__gwt_historyFrame tabIndex='-1' style=position:absolute;width:0;height:0;border:0/iframe -- Jan Vladimir Mostert BEngSci MyCee Technologies On Wed, Apr 13, 2011 at 7:33 PM, Roy roy.cohe...@gmail.com wrote: Hello, There seem to be a know issue with IE which doesn't respond to URLs that have # sign in them. See for example: https://mootools.lighthouseapp.com/projects/2706/tickets/638-request-... As we use # quite frequently in out GWT based application we are lacking support for IE7 users who want to browse the site. Is there any known workaround for GWT other then modifying the URL? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@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-toolkit@googlegroups.com. To unsubscribe from this group, send email to 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 URLs with # don't work with IE7
I've already got this line in index.html. Can you try few # based URLs with IE7? On Apr 13, 6:47 pm, Jan Mostert jan.most...@gmail.com wrote: What does your index.html page look like? There's some iFrame magic that needs to be done for history to work in IE This is what I use in one of my applications: iframe src=javascript:'' id=__gwt_historyFrame tabIndex='-1' style=position:absolute;width:0;height:0;border:0/iframe -- Jan Vladimir Mostert BEngSci MyCee Technologies On Wed, Apr 13, 2011 at 7:33 PM, Roy roy.cohe...@gmail.com wrote: Hello, There seem to be a know issue with IE which doesn't respond to URLs that have # sign in them. See for example: https://mootools.lighthouseapp.com/projects/2706/tickets/638-request-... As we use # quite frequently in out GWT based application we are lacking support for IE7 users who want to browse the site. Is there any known workaround for GWT other then modifying the URL? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: gwtapi (createfile, redfilecontent, createpdf) etc
Hi Thomas. I m aware of the File API in HTML5. But as you can see the API is supported in different level by the broswer providers. IE does not support it at all. So the only cross browser solution will be a plug in 2011/4/13 Diego Lovison diegolovi...@gmail.com Yes Chrome have the api too... I dont know about safari, ie and opera On 13 abr, 13:08, Thomas Broyer t.bro...@gmail.com wrote: That's not quite true actually:http://www.html5rocks.com/features/file Seehttps://developer.mozilla.org/en/using_files_from_web_applicationsfor some sample code. It's far from the level of support of Flash though... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 API for the Flash Platform http://code.google.com/p/gwt4air/ http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT 2.2 ERP Framework Suggestions
Hi Everyone, I plan on building the first part of an ERP system for my company and am looking to get some feedback from everyone about different technologies and what I might want to use based on my requirements. The Database will be a MS SQL 2008 server and I currently have an old ERP system which contains many years worth of business logic. I plan to utilize some of this via web services and write all the other business logic from scratch. Because this will be the beginning of a new product/program laying out the proper framework and choosing helper utilities is very critical. To goal is to have a product that is open multiple implementations. i.e. there could be a GWT program and a seperate JSP/JSF program that will need to share access to the business logic and database. My questions are: 1. Data access: Should I be setting up something like Hibernate to organize data access? Is there a downside to doing this, i.e. performance? What would be the best technology to use with GWT 2.2 that will provide a somewhat future proof/industry standard solution? 2. Business logic: Based on my goal of multiple implementations what would be the best way to write my business logic? i.e. create non gwt java classes, create gwt classes, create dll's. 3. Frameworks: GWT now has it's own MVP framework. There are a lot of frameworks to choose from and i believe using Googles MVP (Activities and Places) might be the safest way to go for future upgrades to the GWT SDK. Are there any downsides to it and is there a better framework to base a new project on? Will this framework work well with the data access and business logic considerations i mentioned above? 4. Standards: Is there an industry standard for technologies and frameworks to use with GWT 2.2. I know a lot of it depends on your requirements but if we're basing this on a new project with a MS SQL database then GWT is changing so rapidly that it's hard for me to tell if older suggestions of technologies and frameworks are still valid and good practice with the latest version of GWT. Any help you can give me would be greatly appreciated. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to 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 do I run a GWT 1.5.2 project in Eclipse?
Hi Chris, I am not sure if I got the problem right but I am also trying to learn GWT and I run the project by doing a right click - Run As - webapplication. On Wed, Apr 13, 2011 at 12:14 PM, walker1c m...@chris-walker.co.uk wrote: Hi, I'm working on a project that uses GWT-Ext - because of this it's stuck on GWT 1.5.2. The Eclipse project I've inherited has not been set up so that it will run the application in the IDE. I've been able to do this with GWT 1.5 in the past when using IntelliJ, so I'm sure it must be possible with Eclipse. Does anyone know of a good how-to? It's complicated slightly because Maven gives all the GWT (and other) jars non-standard names. I've tried using the Google plug-in for Eclipse, but it's unable to locate critical files because of this Maven problem. Any help would be much appreciated. 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Thanks and Regards, Shilpa Kintali Ph: 585-278-3543 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
unexpected performance issue with GWT 2.1.1 CheckboxCell and compiler optimization
After upgrading from GWT 2.1.0 to 2.1.1, a web page rendered using CellTable becomes frozen when a CheckboxCell is clicked. This only happens in production mode and the browsers tested include FireFox 3.6, Internet Exploer 8 and 10.0.648.204. In development mode, the upgrade does not produce any perceivable changes. We noticed that there are many changes in Data Cell Widget classes. In GWT 2.1.1, CheckBoxCell constructors take 0 to 2 parameters, and we found out as long as the second constructor parameter is set to true, this issue always occurs. Turning that parameter to false prevents the bug, but then the user cannot select any CheckboxCell. Another way to prevent this from happening is to pass -draftCompile option to the GWT compiler. However, a side effect of this workaround is that we don't get all the benefits of compiler optimizations. The initial download size increases by more than 10%. Although we might go back to GWT 2.1.0, but that would be our last option because of the efforts needed to reverting a large amount of code in more than one custom libraries. We look forward to suggestions from the GWT related teams for a better workaround. Attached is a relevant code snippet defined in a constructor of a class that extends CellTable. In the snippet, M and H are generic types of our business models: final SingleSelectionModelM aSelectionModel = new SingleSelectionModelM(); setSelectionModel(aSelectionModel); FieldUpdaterM, Boolean aFieldUpdater = new FieldUpdaterM, Boolean() { public void update(int theIndex, M theModel, Boolean theSelectFlag) { String aRecordID = theModel.getRecordID(); fireEvent(new SelectionEventString(aRecordID) { }); aSelectionModel.setSelected(theModel, theSelectFlag); } }; createColumn(new CheckboxCell(true, true), new HBoolean() { public Boolean getValue(M theDisplayData) { return aSelectionModel.isSelected(theDisplayData); } }, aFieldUpdater, this); ... /** * * @param C the cell type * @param theCell the cell used to render the column * @param theGetter the value getter for the cell */ private static C void createColumn(CellC theCell, final HC theGetter, FieldUpdaterM, C theFieldUpdater, CellTableM theTable) { ColumnM, C aColumn = new ColumnM, C(theCell) { @Override public C getValue(M theModel) { return theGetter.getValue(theModel); } }; aColumn.setFieldUpdater(theFieldUpdater); theTable.addColumn(aColumn, ); } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Table
Hi All, I am fairly new to GWT and I am tryint to find out what is the the componet to build a dynamic table. Please help!!! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Table
See http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellWidgets.html /dmc On Wed, Apr 13, 2011 at 10:38 AM, Shil shilp...@gmail.com wrote: Hi All, I am fairly new to GWT and I am tryint to find out what is the the componet to build a dynamic table. Please help!!! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkit w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Web application starter project send button missing
Hi Bob, It takes a few seconds for the dev mode plugin to initialize. The Send button is created by GWT and so appears later in dev mode, whereas the elements you see on the page right away are present in the HTML host page. If you compile your app, then Run As | Web app and remove ?gwt.codesvr=... from the URL, you'll find the Send button appears right away just like on appspot. HTH, /dmc On Wed, Apr 13, 2011 at 2:07 PM, Bob iambob...@gmail.com wrote: I am following the instructions at http://code.google.com/webtoolkit/usingeclipse.html#deploying, Run Locally in Development Mode… ...when displaying the web application starter project, there is nothing under Please Enter Your Name (there should be a field and a send button) in Chrome or FF browsers on Mac osx. Every now and then, they do appear (not sure what the difference it). They always appear properly in the GAE on appspot.com. It makes me very nervous if the Run Locally in Development Mode doesn't work as expected by google's own demo app. Any ideas? Thanks bob -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkit w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to 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.2 ERP Framework Suggestions
On 04/13/2011 10:34 AM, Mark Wengranowski wrote: Hi Everyone, I plan on building the first part of an ERP system for my company and am looking to get some feedback from everyone about different technologies and what I might want to use based on my requirements. The Database will be a MS SQL 2008 server and I currently have an old ERP system which contains many years worth of business logic. I plan to utilize some of this via web services and write all the other business logic from scratch. Because this will be the beginning of a new product/program laying out the proper framework and choosing helper utilities is very critical. To goal is to have a product that is open multiple implementations. i.e. there could be a GWT program and a seperate JSP/JSF program that will need to share access to the business logic and database. My questions are: 1. Data access: Should I be setting up something like Hibernate to organize data access? Is there a downside to doing this, i.e. performance? There's no way to know this answer /a priori/ If this is an important question, you'll have to build a proof-of-concept demo. What would be the best technology to use with GWT 2.2 that will provide a somewhat future proof/industry standard solution? GWT RPC works well with standard server solutions. The design is based on the fact that the implementor provides the necessary shim code to attach the client and server. 2. Business logic: Based on my goal of multiple implementations what would be the best way to write my business logic? i.e. create non gwt java classes, create gwt classes, create dll's. My advice would be to approach this task by pulling the presentation logic out first, and implementing it. Try to resist the inevitable pull to move business logic to the client in the first phase. Focus on MVP on the client side, you can mock the model as you prove the Presenter/View logic. OTOH, there will always be simple business logic (e.g. some kinds of business-specific validation) You can mock the model that supports that kind of validation. The business logic will be the most expensive logic to reproduce, so I'm quite conservative regarding moving this to the client as part of the initial work. Develop a plan that includes your representatives from your end-user community who will test this in parallel with the existing system. 3. Frameworks: GWT now has it's own MVP framework. There are a lot of frameworks to choose from and i believe using Googles MVP (Activities and Places) might be the safest way to go for future upgrades to the GWT SDK. Are there any downsides to it and is there a better framework to base a new project on? Will this framework work well with the data access and business logic considerations i mentioned above? The best answer to this question is to search the list archives for the past six months. The GWT implementation of MVP is not your only choice. See, for example, the highly regarded gwt-platform. 4. Standards: Is there an industry standard for technologies and frameworks to use with GWT 2.2. I know a lot of it depends on your requirements but if we're basing this on a new project with a MS SQL database then I think you'll find gin / guice quite valuable. GWT is changing so rapidly that it's hard for me to tell if older suggestions of technologies and frameworks are still valid and good practice with the latest version of GWT. Any help you can give me would be greatly appreciated. Search within the past six months. Older comments re: authentication/authorization are still apropos. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
R: Old presenters registered on event bus, how to deal with this?
The signature of the method addHandler() that you use every time to add a handler on the bus for a particular event, is: public abstract H extends EventHandler http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/event/shared/EventHandler.html HandlerRegistration http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/event/shared/HandlerRegistration.html *addHandler*(GwtEvent.Type http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/event/shared/GwtEvent.Type.htmlH type, H handler) So it returns a HandlerRegistration that you can use to remove the added handler. You have to keep track of all registered handlers and remove them when you switch. With Activities, one of the parameters of the start() method is an instance of a ResettableEventBus, so every time an activities is stopped (on place change, display region change etc), all handlers attached to that eventbus will be removed. This a really powerfull feature. And yes, you can use ResettableEventBus without the new Activities Places concept (but you need at least gwt 2.1). Andrew. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to connect postgres database
Good afternoon, I'm a newbie, can someone tell me how to connect to a postgres database? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to connect postgres database
See http://jdbc.postgresql.org/documentation/80/connect.html 2011/4/13 Ahrom brah...@gmail.com Good afternoon, I'm a newbie, can someone tell me how to connect to a postgres database? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to 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 connect postgres database
Ok, thank you very much, so I have it and it works well the query, I thought maybe that was my error. Now, with this: ResultSet rs = stmt.executeQuery (select * from my_table); How do I create an instance of FlexTables and display the data I get from the database on that table? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Webapp runs in development mode perfectly but fails on test server
Hi, My webapp runs perfectly in development mode, but when I build the WAR file and move onto a test server, I have problems. Database connections are failing and hitting the return key does not move the cursor to the next field even though I that function is explicitly look for KeyCodes.KEY_ENTER and set the focus to the next widget. The only errors I'm seeing are in catalina.out: Apr 13, 2011 1:44:07 PM org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(/usr/local/java/apache-tomcat-7.0.12/webapps/ AccountRequest/WEB-INF/lib/gwt-dev.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class Apr 13, 2011 1:44:07 PM org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(/usr/local/java/apache-tomcat-7.0.12/webapps/ AccountRequest/WEB-INF/lib/gwt-user.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class I'm using jdk1.6.0_22. Since I upgrade to gwt 2.1.1, I though possibly that the 5.5.31 version of Tomcat might be incompatible, so I updated to the current version 7.0.12. A big jump, but the error is the same. Any ideas? Thanks, Rob Tanner Linfield College -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to 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 connect postgres database
See http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellWidgets.html 2011/4/13 Ahrom brah...@gmail.com Ok, thank you very much, so I have it and it works well the query, I thought maybe that was my error. Now, with this: ResultSet rs = stmt.executeQuery (select * from my_table); How do I create an instance of FlexTables and display the data I get from the database on that table? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Webapp runs in development mode perfectly but fails on test server
is there other stacktrace?. There aren't an error 2011/4/13 Rob Tanner caspersg...@gmail.com Hi, My webapp runs perfectly in development mode, but when I build the WAR file and move onto a test server, I have problems. Database connections are failing and hitting the return key does not move the cursor to the next field even though I that function is explicitly look for KeyCodes.KEY_ENTER and set the focus to the next widget. The only errors I'm seeing are in catalina.out: Apr 13, 2011 1:44:07 PM org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(/usr/local/java/apache-tomcat-7.0.12/webapps/ AccountRequest/WEB-INF/lib/gwt-dev.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class Apr 13, 2011 1:44:07 PM org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(/usr/local/java/apache-tomcat-7.0.12/webapps/ AccountRequest/WEB-INF/lib/gwt-user.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class I'm using jdk1.6.0_22. Since I upgrade to gwt 2.1.1, I though possibly that the 5.5.31 version of Tomcat might be incompatible, so I updated to the current version 7.0.12. A big jump, but the error is the same. Any ideas? Thanks, Rob Tanner Linfield College -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Enable/disable gwt-logging at runtime
You can't change GWT log or java.util.logging at runtime as they are compiled and controlled by the gwt.xml file at compile time. If you used the adligo i_log api you can change the logging setting of your browsers window by using cgi parameters to have your app load up a specific logging configuration file (adligo_log.properties or your_log.properties exc). Cheers, Scott Apr 12, 2:25 am, vmnikulin vmniku...@gmail.com wrote: How to enable/disable gwt-logging at runtime -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Data Structure between client and server
I have just started working with GWT, for an University Project. I have to create a classic client-server sistem. The client and the server must communicate exchanging some information. The server uses data structures to maintain a user model and to execute basic internal functionalities. The client uses similar data structures to maintain alignment with the model in the server. Is it a good idea to have the client and the server use the same data structures, and use these structures as the information exchange, putting them in the shared package, or would it be better to use a different set of data structures? Which is the best and commonly solution to this problem? Thanks in advance -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
IE (8 9) reload app when internal link clicked
My GWT app has in the initial HTML page div id=loadingimg src=images/loading.gif/div which puts up a loading animation. Then when the app loads: public void onModuleLoad() { DOM.removeChild(RootPanel.getBodyElement(), DOM.getElementById(loading)); .. removes the animation, which all works just fine. The app also displays some HTML for internal links. Something like: HTML html = new HTML(a href=\#blah\an internal link/a); The result of clicking the link displays some stuff in a ScrollPanel. (The outer structure of the app uses a DockLayoutPanel for header, footer, navigation, with the ScrollPanel the main content). In all browsers (FF, Safari, Chrome, Opera) when one of these links is clicked, the new content is displayed in the ScrollPanel as you'd expect, with only the ScrollPanel content being repainted. In IE however, the app completely refreshes. i.e. the loading GIF displays, history is cleared then the whole screen is refreshed. I know I could probably change the links to Anchors or Hyperlinks which might not have the same behaviour in IE (have yet to test this), but the content displayed in the ScrollPanel above could be vanilla HTML which could contain hyperlinks to other parts of the app just like my example. Has anyone else come across this behaviour ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Which method of HandlerManager is ClickListenerCollection.fireClick(widget w) similar with ?
It worked well - Thanks for your help so much ^^ But when we use addDomHandler, it return HandlerRegistration to call removeHandler() method to remove handler: Ex: HandlerRegistration clickHandlerRegistration= addDomHandler(handler, ClickEvent.getType()); HandlerRegistration mouseDownHandlerRegistration = addDomHandler(handler, MouseDownEvent.getType()); HandlerRegistration mouseMoveHandlerRegistration = addDomHandler(handler, MouseMoveEvent.getType()); clickHandlerRegistration.removeHandler(); mouseDownHandlerRegistration.removeHandler(); mouseMoveHandlerRegistration.removeHandler(); So Each time we use addDomHandler, we must define a HandlerRegistration for each handler ? On Apr 13, 3:50 pm, Thomas Broyer t.bro...@gmail.com wrote: Generally, HandlerManager#fireEvent but for DomEvents (such as ClickEvent) you'll have to use DomEvent.fireNativeEventhttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/googl..., com.google.gwt.event.shared.HasHandlers). But well, actually, you shouldn't need this at all. If you use this.addDomHandler(handler, ClickEvent.getType()) to attach your handlers, the widget's default onBrowserEvent will handle the dispatch for you (and addDomHandler automatically calls sinkEvent for you). You shouldn't even need to use HandlerManager, it's an implementation detail of Widget. As the dochttp://code.google.com/webtoolkit/doc/latest/DevGuideUiCustomWidgetssuggests, have a look at the Button source code (actually, the code you're interested in is in FocusWidgethttp://code.google.com/p/google-web-toolkit/source/browse/trunk/user/... ). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Data Structure between client and server
I think use the most simple approach is better. So, if share structure data is simple and enough, use it. I take this approach 2011/4/13 Angelo Brandimarte angelobrandima...@gmail.com I have just started working with GWT, for an University Project. I have to create a classic client-server sistem. The client and the server must communicate exchanging some information. The server uses data structures to maintain a user model and to execute basic internal functionalities. The client uses similar data structures to maintain alignment with the model in the server. Is it a good idea to have the client and the server use the same data structures, and use these structures as the information exchange, putting them in the shared package, or would it be better to use a different set of data structures? Which is the best and commonly solution to this problem? Thanks in advance -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Enable/disable gwt-logging at runtime
You can set the log level via a query param: http://code.google.com/webtoolkit/doc/latest/DevGuideLogging.html#Configuring_GWT_Logging HTH, http://code.google.com/webtoolkit/doc/latest/DevGuideLogging.html#Configuring_GWT_Logging /dmc On Tue, Apr 12, 2011 at 3:25 AM, vmnikulin vmniku...@gmail.com wrote: How to enable/disable gwt-logging at runtime -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkit w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Usage of constants/property files based on arbitrary property rather than locale
Does anyone have any experience with how to handle the following problem? My application has multiple user roles, all of which see the same screen with the same fields but depending on what role the user comes in with, the labels on the fields may differ. I'd like to use an approach similar to i18n (constants class backed by various property files) where in my use case the role is synonomous with a locale. Note that all labels are assigned in UiBinder ui.xml files so the goal is something like: ui:with field=const type=com.sample.client.LabelConstants / Where the above declaration should use LabelConstants_registered.properties or LabelConstants_anonymous.properties similarly to how i18n would use LabelConstants_en.properties or LabelConstants_fr.properties depending on the locale. Any ideas or experiences? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Getting Request Factory to work on the GWT-Eclipse environment
So I actually found a bug huh? Thanks for the quick response. I hope this bug will be fixed in the near future. On Apr 13, 4:40 pm, Thomas Broyer t.bro...@gmail.com wrote: This is actually a bug in the Google Plug for Eclipse. Your code will work. Seehttp://code.google.com/p/google-web-toolkit/issues/detail?id=5587 How can I resolve this? If it really bothers you, you can replace your @ProxyFor and/or @Service annotations with @ProxyForName and @ServiceName. You'll lose compile-time type-safety and class-reference checks though, and you'll have to be careful when refactoring (renaming, moving around) your server-side classes. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
onclick(Widget w) in version 1.5 and onClick(ClickEvent ce) in version 2.2 - After upgrading
In version gwt 1.5. I used onClick(Widget w): Ex: when I call setPicture method, I call click action of htmlLink throught onClick(htmlLink): In gwt 1.5: public void setPicture(String url) { onClick(htmlLink); } public void onClick(Widget sender) { if (sender == htmlLink) { resetForm(); } } In gwt 2.2: public void onClick(ClickEvent ce) { Widget sender = (Widget) ce.getSource(); if (sender == htmlLink) { resetForm(); } } So in version gwt 2.2, How do I call onClick(clickevent) ? Where is the clickEvent of a specific widget gotten ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to 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 do I run a GWT 1.5.2 project in Eclipse?
Pls try resolving the errors that come up in PROBLEMS view of eclipse after you import the maven projects. Also include the GWT SDKs to the project to help run it in the hosted mode. Regards, Rajesh On Wed, Apr 13, 2011 at 9:44 PM, walker1c m...@chris-walker.co.uk wrote: Hi, I'm working on a project that uses GWT-Ext - because of this it's stuck on GWT 1.5.2. The Eclipse project I've inherited has not been set up so that it will run the application in the IDE. I've been able to do this with GWT 1.5 in the past when using IntelliJ, so I'm sure it must be possible with Eclipse. Does anyone know of a good how-to? It's complicated slightly because Maven gives all the GWT (and other) jars non-standard names. I've tried using the Google plug-in for Eclipse, but it's unable to locate critical files because of this Maven problem. Any help would be much appreciated. 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@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-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Comment on CssResource in google-web-toolkit
Comment by t.broyer: See http://code.google.com/p/google-web-toolkit/issues/detail?id=4877#c2 for an example of literal() with moz-linear-gradient. For more information: http://code.google.com/p/google-web-toolkit/wiki/CssResource -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Reindented pom.xml files (issue1410801)
Submitted at r9967 http://gwt-code-reviews.appspot.com/1410801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fixed pom.xml produced by WebAppCreator. Issue 4878 and Issue 6196. (issue1407804)
Submitted at r9973 http://gwt-code-reviews.appspot.com/1407804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Audio and Video cleanup. (issue1415801)
Reviewers: jlabanca, Description: Audio and Video cleanup. Add a MediaBase widget backing Audio and Video, and clean up tests. Also, address comments by reviewer and re-encode test media files for a smaller size and to fix an h264 video issue. Please review this at http://gwt-code-reviews.appspot.com/1415801/ Affected files: M user/src/com/google/gwt/dom/client/DOMImplMozilla.java M user/src/com/google/gwt/media/client/Audio.java A user/src/com/google/gwt/media/client/MediaBase.java M user/src/com/google/gwt/media/client/Video.java M user/test/com/google/gwt/canvas/client/CanvasTest.java M user/test/com/google/gwt/media/MediaSuite.java M user/test/com/google/gwt/media/client/AudioTest.java M user/test/com/google/gwt/media/client/MediaTest.java M user/test/com/google/gwt/media/client/VideoTest.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Allows the gwt.persistentunitcache property to accept a boolean (issue1415802)
Reviewers: tobyr, Description: Allows the gwt.persistentunitcache property to accept a boolean argument (case insenstivive true) to turn on the cache. Any value other than a blank turns the cache off. Please review this at http://gwt-code-reviews.appspot.com/1415802/ Affected files: M dev/core/src/com/google/gwt/dev/javac/UnitCacheFactory.java Index: dev/core/src/com/google/gwt/dev/javac/UnitCacheFactory.java === --- dev/core/src/com/google/gwt/dev/javac/UnitCacheFactory.java (revision 9983) +++ dev/core/src/com/google/gwt/dev/javac/UnitCacheFactory.java (working copy) @@ -28,8 +28,10 @@ /** * The API must be enabled explicitly for persistent caching to be live. */ - private static final boolean usePersistent = System.getProperties().containsKey( - gwt.persistentunitcache); + private static final String CONFIG_PROPERTY_VALUE = System.getProperty(gwt.persistentunitcache, + false); + private static final boolean usePersistent = CONFIG_PROPERTY_VALUE.length() == 0 + || Boolean.parseBoolean(CONFIG_PROPERTY_VALUE); private static UnitCache instance = null; /** -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Allows the gwt.persistentunitcache property to accept a boolean (issue1415802)
LGTM http://gwt-code-reviews.appspot.com/1415802/diff/1/dev/core/src/com/google/gwt/dev/javac/UnitCacheFactory.java File dev/core/src/com/google/gwt/dev/javac/UnitCacheFactory.java (right): http://gwt-code-reviews.appspot.com/1415802/diff/1/dev/core/src/com/google/gwt/dev/javac/UnitCacheFactory.java#newcode31 dev/core/src/com/google/gwt/dev/javac/UnitCacheFactory.java:31: private static final String CONFIG_PROPERTY_VALUE = System.getProperty(gwt.persistentunitcache, camel-case http://gwt-code-reviews.appspot.com/1415802/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Improving TouchScroller to allow native document level scrolling when appropriate. If the scroll... (issue1410803)
On 2011/04/12 20:17:42, jlabanca wrote: LGTM. Much better! http://gwt-code-reviews.appspot.com/1410803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Audio and Video cleanup. (issue1415801)
LGTM if you address comments Our checkstyles for tests are more lax, but I still think its good to sort methods by visibility. http://gwt-code-reviews.appspot.com/1415801/diff/1/user/src/com/google/gwt/media/client/Video.java File user/src/com/google/gwt/media/client/Video.java (right): http://gwt-code-reviews.appspot.com/1415801/diff/1/user/src/com/google/gwt/media/client/Video.java#newcode88 user/src/com/google/gwt/media/client/Video.java:88: return (VideoElement) getMediaElement(); I liked cast() better than a cast if it works. http://gwt-code-reviews.appspot.com/1415801/diff/1/user/test/com/google/gwt/canvas/client/CanvasTest.java File user/test/com/google/gwt/canvas/client/CanvasTest.java (right): http://gwt-code-reviews.appspot.com/1415801/diff/1/user/test/com/google/gwt/canvas/client/CanvasTest.java#newcode41 user/test/com/google/gwt/canvas/client/CanvasTest.java:41: private native boolean isFirefox35OrLater() /*-{ public, private, and protected methods appear out of order. Also, you can make these isXXX() checks static. http://gwt-code-reviews.appspot.com/1415801/diff/1/user/test/com/google/gwt/media/client/AudioTest.java File user/test/com/google/gwt/media/client/AudioTest.java (right): http://gwt-code-reviews.appspot.com/1415801/diff/1/user/test/com/google/gwt/media/client/AudioTest.java#newcode84 user/test/com/google/gwt/media/client/AudioTest.java:84: public MediaBase getMedia() { public method after protected method http://gwt-code-reviews.appspot.com/1415801/diff/1/user/test/com/google/gwt/media/client/MediaTest.java File user/test/com/google/gwt/media/client/MediaTest.java (right): http://gwt-code-reviews.appspot.com/1415801/diff/1/user/test/com/google/gwt/media/client/MediaTest.java#newcode110 user/test/com/google/gwt/media/client/MediaTest.java:110: // wait an additional 1000ms, then check that the seek was successful 1000ms = 5000ms http://gwt-code-reviews.appspot.com/1415801/diff/1/user/test/com/google/gwt/media/client/VideoTest.java File user/test/com/google/gwt/media/client/VideoTest.java (right): http://gwt-code-reviews.appspot.com/1415801/diff/1/user/test/com/google/gwt/media/client/VideoTest.java#newcode71 user/test/com/google/gwt/media/client/VideoTest.java:71: assertEquals(height + px, video.getOffsetHeight()); Does this pass? getOffsetHeight/Width() returns an int, so this test should always fail. http://gwt-code-reviews.appspot.com/1415801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Audio and Video cleanup. (issue1415801)
http://gwt-code-reviews.appspot.com/1415801/diff/1/user/src/com/google/gwt/media/client/Video.java File user/src/com/google/gwt/media/client/Video.java (right): http://gwt-code-reviews.appspot.com/1415801/diff/1/user/src/com/google/gwt/media/client/Video.java#newcode88 user/src/com/google/gwt/media/client/Video.java:88: return (VideoElement) getMediaElement(); On 2011/04/13 17:46:08, jlabanca wrote: I liked cast() better than a cast if it works. Done (curious, why? Does it save a cast check?) http://gwt-code-reviews.appspot.com/1415801/diff/1/user/test/com/google/gwt/canvas/client/CanvasTest.java File user/test/com/google/gwt/canvas/client/CanvasTest.java (right): http://gwt-code-reviews.appspot.com/1415801/diff/1/user/test/com/google/gwt/canvas/client/CanvasTest.java#newcode41 user/test/com/google/gwt/canvas/client/CanvasTest.java:41: private native boolean isFirefox35OrLater() /*-{ On 2011/04/13 17:46:08, jlabanca wrote: public, private, and protected methods appear out of order. Also, you can make these isXXX() checks static. Done. http://gwt-code-reviews.appspot.com/1415801/diff/1/user/test/com/google/gwt/media/client/AudioTest.java File user/test/com/google/gwt/media/client/AudioTest.java (right): http://gwt-code-reviews.appspot.com/1415801/diff/1/user/test/com/google/gwt/media/client/AudioTest.java#newcode84 user/test/com/google/gwt/media/client/AudioTest.java:84: public MediaBase getMedia() { On 2011/04/13 17:46:08, jlabanca wrote: public method after protected method Done. http://gwt-code-reviews.appspot.com/1415801/diff/1/user/test/com/google/gwt/media/client/MediaTest.java File user/test/com/google/gwt/media/client/MediaTest.java (right): http://gwt-code-reviews.appspot.com/1415801/diff/1/user/test/com/google/gwt/media/client/MediaTest.java#newcode110 user/test/com/google/gwt/media/client/MediaTest.java:110: // wait an additional 1000ms, then check that the seek was successful On 2011/04/13 17:46:08, jlabanca wrote: 1000ms = 5000ms Done. http://gwt-code-reviews.appspot.com/1415801/diff/1/user/test/com/google/gwt/media/client/VideoTest.java File user/test/com/google/gwt/media/client/VideoTest.java (right): http://gwt-code-reviews.appspot.com/1415801/diff/1/user/test/com/google/gwt/media/client/VideoTest.java#newcode71 user/test/com/google/gwt/media/client/VideoTest.java:71: assertEquals(height + px, video.getOffsetHeight()); On 2011/04/13 17:46:08, jlabanca wrote: Does this pass? getOffsetHeight/Width() returns an int, so this test should always fail. It worked better in my head. Fixed. http://gwt-code-reviews.appspot.com/1415801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Audio and Video cleanup. (issue1415801)
http://gwt-code-reviews.appspot.com/1415801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Audio and Video cleanup. (issue1415801)
LGTM http://gwt-code-reviews.appspot.com/1415801/diff/1/user/src/com/google/gwt/media/client/Video.java File user/src/com/google/gwt/media/client/Video.java (right): http://gwt-code-reviews.appspot.com/1415801/diff/1/user/src/com/google/gwt/media/client/Video.java#newcode88 user/src/com/google/gwt/media/client/Video.java:88: return (VideoElement) getMediaElement(); It might, but more importantly I think that casts leave you open to runtime type errors that could otherwise be detected at compile time. Doesn't really matter in this case, but I try to avoid casts as a habit. On 2011/04/13 18:11:17, pdr wrote: On 2011/04/13 17:46:08, jlabanca wrote: I liked cast() better than a cast if it works. Done (curious, why? Does it save a cast check?) http://gwt-code-reviews.appspot.com/1415801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9985 committed - Resubmtiting r9970....
Revision: 9985 Author: jlaba...@google.com Date: Wed Apr 13 08:22:34 2011 Log: Resubmtiting r9970. Review at http://gwt-code-reviews.appspot.com/1355805/ Review by: fabb...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=9985 Added: /trunk/user/src/com/google/gwt/animation/client/AnimationImpl.java /trunk/user/src/com/google/gwt/animation/client/AnimationImplMozAnimTiming.java /trunk/user/src/com/google/gwt/animation/client/AnimationImplTimer.java /trunk/user/src/com/google/gwt/animation/client/AnimationImplWebkitAnimTiming.java Modified: /trunk/user/src/com/google/gwt/animation/Animation.gwt.xml /trunk/user/src/com/google/gwt/animation/client/Animation.java /trunk/user/src/com/google/gwt/layout/client/Layout.java /trunk/user/src/com/google/gwt/user/cellview/client/CellBrowser.java /trunk/user/src/com/google/gwt/user/client/ui/DeckPanel.java === --- /dev/null +++ /trunk/user/src/com/google/gwt/animation/client/AnimationImpl.java Wed Apr 13 08:22:34 2011 @@ -0,0 +1,45 @@ +/* + * Copyright 2011 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.animation.client; + +import com.google.gwt.dom.client.Element; + +/** + * Base class for animation implementations. + */ +abstract class AnimationImpl { + + /** + * Cancel the animation. + */ + public abstract void cancel(Animation animation); + + /** + * Run the animation with an optional bounding element. + */ + public abstract void run(Animation animation, Element element); + + /** + * Update the {@link Animation}. + * + * @param animation the {@link Animation} + * @param curTime the current time + * @return true if the animation is complete, false if still running + */ + protected final boolean updateAnimation(Animation animation, double curTime) { +return animation.isRunning() animation.update(curTime); + } +} === --- /dev/null +++ /trunk/user/src/com/google/gwt/animation/client/AnimationImplMozAnimTiming.java Wed Apr 13 08:22:34 2011 @@ -0,0 +1,56 @@ +/* + * Copyright 2011 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.animation.client; + +import com.google.gwt.dom.client.Element; + +/** + * Implementation using codemozRequestAnimationFrame/code. + * + * @see a href=https://developer.mozilla.org/en/DOM/window.mozRequestAnimationFrame; + * Documentation on the MDN/a + */ +class AnimationImplMozAnimTiming extends AnimationImpl { + + private int handle; + + @Override + public void cancel(Animation animation) { +handle++; + } + + @Override + public void run(Animation animation, Element element) { +handle++; +nativeRun(animation); + } + + private native void nativeRun(Animation animation) /*-{ +var self = this; +var handle = th...@com.google.gwt.animation.client.AnimationImplMozAnimTiming::handle; +var callback = $entry(function(time) { + if (handle != se...@com.google.gwt.animation.client.AnimationImplMozAnimTiming::handle) { +return; // cancelled + } + var complete = se...@com.google.gwt.animation.client.AnimationImpl::updateAnimation(Lcom/google/gwt/animation/client/Animation;D)(animation, time); + if (!complete) { +$wnd.mozRequestAnimationFrame(callback); + } +}); + +$wnd.mozRequestAnimationFrame(callback); + }-*/; +} === --- /dev/null +++ /trunk/user/src/com/google/gwt/animation/client/AnimationImplTimer.java Wed Apr 13 08:22:34 2011 @@ -0,0 +1,87 @@ +/* + * Copyright 2011 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
[gwt-contrib] Reverting r9985 due to build break caused by use of soft permutation. (issue1414802)
Reviewers: fabbott, Description: Reverting r9985 due to build break caused by use of soft permutation. Please review this at http://gwt-code-reviews.appspot.com/1414802/ Affected files: M user/src/com/google/gwt/animation/Animation.gwt.xml M user/src/com/google/gwt/animation/client/Animation.java D user/src/com/google/gwt/animation/client/AnimationImpl.java D user/src/com/google/gwt/animation/client/AnimationImplMozAnimTiming.java D user/src/com/google/gwt/animation/client/AnimationImplTimer.java D user/src/com/google/gwt/animation/client/AnimationImplWebkitAnimTiming.java M user/src/com/google/gwt/layout/client/Layout.java M user/src/com/google/gwt/user/cellview/client/CellBrowser.java M user/src/com/google/gwt/user/client/ui/DeckPanel.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Users found that the error spam reduction hid too many errors. This change (issue1416801)
Reviewers: scottb, tobyr, jbrosenberg, Description: Users found that the error spam reduction hid too many errors. This change makes the error spam reduction take into account inner classes and uses the code dependencies instead of just the API dependencies. Please review this at http://gwt-code-reviews.appspot.com/1416801/ Affected files: M dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java M dev/core/src/com/google/gwt/dev/javac/Shared.java Index: dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java === --- dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java (revision 9985) +++ dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java (working copy) @@ -18,6 +18,7 @@ import com.google.gwt.core.ext.TreeLogger; import com.google.gwt.core.ext.TreeLogger.HelpInfo; import com.google.gwt.core.ext.TreeLogger.Type; +import com.google.gwt.dev.javac.Dependencies.Ref; import com.google.gwt.dev.util.Messages; import com.google.gwt.dev.util.Util; @@ -65,17 +66,11 @@ URL sourceURL = Util.findSourceInClassPath(cl, missingType); if (sourceURL != null) { + Messages.HINT_PRIOR_COMPILER_ERRORS.log(logger, null); if (missingType.indexOf(.client.) != -1) { -Messages.HINT_PRIOR_COMPILER_ERRORS.log(logger, null); Messages.HINT_CHECK_MODULE_INHERITANCE.log(logger, null); } else { -// Give the best possible hint here. -// -if (Util.findSourceInClassPath(cl, missingType) == null) { - Messages.HINT_CHECK_MODULE_NONCLIENT_SOURCE_DECL.log(logger, null); -} else { - Messages.HINT_PRIOR_COMPILER_ERRORS.log(logger, null); -} +Messages.HINT_CHECK_MODULE_NONCLIENT_SOURCE_DECL.log(logger, null); } } else if (!missingType.equals(java.lang.Object)) { Messages.HINT_CHECK_TYPENAME.log(logger, missingType, null); @@ -195,22 +190,31 @@ return false; } TreeLogger branch = -CompilationProblemReporter.reportErrors(logger, unit.getProblems(), unit -.getResourceLocation(), unit.isError(), new SourceFetcher() { - - public String getSource() { -return unit.getSource(); - } - -}, unit.getTypeName(), suppressErrors); +CompilationProblemReporter.reportErrors(logger, unit.getProblems(), +unit.getResourceLocation(), unit.isError(), new SourceFetcher() { + + public String getSource() { +return unit.getSource(); + } + +}, unit.getTypeName(), suppressErrors); return branch != null; } private static void addUnitToVisit(MapString, CompilationUnit unitMap, String typeName, - QueueCompilationUnit toVisit) { -CompilationUnit found = unitMap.get(typeName); -if (found != null) { + QueueCompilationUnit toVisit, SetCompilationUnit visited) { +String topLevelType = typeName.replaceAll(\\$.*$, ); +CompilationUnit found = unitMap.get(topLevelType); +if (found != null !visited.contains(found)) { toVisit.add(found); + visited.add(found); +} + } + + private static void addUnitToVisit(MapString, CompilationUnit unitMap, Ref ref, + QueueCompilationUnit toVisit, SetCompilationUnit visited) { +if (ref != null) { + addUnitToVisit(unitMap, Shared.internalNameToBinaryName(ref.getInternalName()), toVisit, visited); } } @@ -237,28 +241,27 @@ final QueueCompilationUnit toVisit = new LinkedListCompilationUnit(); MapString, CompilationUnit unitMap = compilationState.unitMap; - /* * Traverses CompilationUnits enqueued in toVisit(), calling {@link * #addUnitsToVisit(String)} as it encounters dependencies on the node. Each * CompilationUnit is visited only once, and only if it is reachable via the * {@link Dependencies} graph. */ -addUnitToVisit(unitMap, missingType, toVisit); +addUnitToVisit(unitMap, missingType, toVisit, visited); while (!toVisit.isEmpty()) { CompilationUnit unit = toVisit.remove(); - if (visited.contains(unit)) { -continue; - } - visited.add(unit); CompilationProblemReporter.reportErrors(logger, unit, false); Dependencies deps = unit.getDependencies(); - for (String ref : deps.getApiRefs()) { -addUnitToVisit(unitMap, ref, toVisit); - } -} + for (Ref ref : deps.qualified.values()) { +addUnitToVisit(unitMap, ref, toVisit, visited); + } + for (Ref ref : deps.simple.values()) { +addUnitToVisit(unitMap, ref, toVisit, visited); + } +} +logger.log(TreeLogger.DEBUG, Checked + visited.size() + dependencies for errors.); } /** Index: dev/core/src/com/google/gwt/dev/javac/Shared.java === ---
[gwt-contrib] Re: Users found that the error spam reduction hid too many errors. This change (issue1416801)
http://gwt-code-reviews.appspot.com/1416801/diff/1/dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java File dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java (left): http://gwt-code-reviews.appspot.com/1416801/diff/1/dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java#oldcode74 dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java:74: if (Util.findSourceInClassPath(cl, missingType) == null) { this didn't make any sense to me - didn't the code above just check to to see if sourceURL was null? http://gwt-code-reviews.appspot.com/1416801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9986 committed - Reverting r9985 due to build break caused by use of soft permutation....
Revision: 9986 Author: gwt.mirror...@gmail.com Date: Wed Apr 13 09:22:27 2011 Log: Reverting r9985 due to build break caused by use of soft permutation. Review at http://gwt-code-reviews.appspot.com/1414802 Review by: fabb...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=9986 Deleted: /trunk/user/src/com/google/gwt/animation/client/AnimationImpl.java /trunk/user/src/com/google/gwt/animation/client/AnimationImplMozAnimTiming.java /trunk/user/src/com/google/gwt/animation/client/AnimationImplTimer.java /trunk/user/src/com/google/gwt/animation/client/AnimationImplWebkitAnimTiming.java Modified: /trunk/user/src/com/google/gwt/animation/Animation.gwt.xml /trunk/user/src/com/google/gwt/animation/client/Animation.java /trunk/user/src/com/google/gwt/layout/client/Layout.java /trunk/user/src/com/google/gwt/user/cellview/client/CellBrowser.java /trunk/user/src/com/google/gwt/user/client/ui/DeckPanel.java === --- /trunk/user/src/com/google/gwt/animation/client/AnimationImpl.java Wed Apr 13 08:22:34 2011 +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2011 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.animation.client; - -import com.google.gwt.dom.client.Element; - -/** - * Base class for animation implementations. - */ -abstract class AnimationImpl { - - /** - * Cancel the animation. - */ - public abstract void cancel(Animation animation); - - /** - * Run the animation with an optional bounding element. - */ - public abstract void run(Animation animation, Element element); - - /** - * Update the {@link Animation}. - * - * @param animation the {@link Animation} - * @param curTime the current time - * @return true if the animation is complete, false if still running - */ - protected final boolean updateAnimation(Animation animation, double curTime) { -return animation.isRunning() animation.update(curTime); - } -} === --- /trunk/user/src/com/google/gwt/animation/client/AnimationImplMozAnimTiming.java Wed Apr 13 08:22:34 2011 +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2011 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.animation.client; - -import com.google.gwt.dom.client.Element; - -/** - * Implementation using codemozRequestAnimationFrame/code. - * - * @see a href=https://developer.mozilla.org/en/DOM/window.mozRequestAnimationFrame; - * Documentation on the MDN/a - */ -class AnimationImplMozAnimTiming extends AnimationImpl { - - private int handle; - - @Override - public void cancel(Animation animation) { -handle++; - } - - @Override - public void run(Animation animation, Element element) { -handle++; -nativeRun(animation); - } - - private native void nativeRun(Animation animation) /*-{ -var self = this; -var handle = th...@com.google.gwt.animation.client.AnimationImplMozAnimTiming::handle; -var callback = $entry(function(time) { - if (handle != se...@com.google.gwt.animation.client.AnimationImplMozAnimTiming::handle) { -return; // cancelled - } - var complete = se...@com.google.gwt.animation.client.AnimationImpl::updateAnimation(Lcom/google/gwt/animation/client/Animation;D)(animation, time); - if (!complete) { -$wnd.mozRequestAnimationFrame(callback); - } -}); - -$wnd.mozRequestAnimationFrame(callback); - }-*/; -} === --- /trunk/user/src/com/google/gwt/animation/client/AnimationImplTimer.java Wed Apr 13 08:22:34 2011 +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2011 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 - * - *
[gwt-contrib] Re: Handle SafeHtml as return type in ui:text (issue1409802)
Where are the tests? http://gwt-code-reviews.appspot.com/1409802/diff/3001/user/src/com/google/gwt/uibinder/elementparsers/ComputedAttributeInterpreter.java File user/src/com/google/gwt/uibinder/elementparsers/ComputedAttributeInterpreter.java (right): http://gwt-code-reviews.appspot.com/1409802/diff/3001/user/src/com/google/gwt/uibinder/elementparsers/ComputedAttributeInterpreter.java#newcode62 user/src/com/google/gwt/uibinder/elementparsers/ComputedAttributeInterpreter.java:62: if (att.getName().equals(from)) { We can't make a magic attribute name like this. http://gwt-code-reviews.appspot.com/1409802/diff/3001/user/src/com/google/gwt/uibinder/elementparsers/ComputedAttributeInterpreter.java#newcode66 user/src/com/google/gwt/uibinder/elementparsers/ComputedAttributeInterpreter.java:66: if (returnValue.equals(SafeHtml)) { Should be using JType, not a string. This logic should be in a delegate passed in to the CAI instance, or at least a protected method that subclass can override. See more detailed notes in UiTextInterpreter http://gwt-code-reviews.appspot.com/1409802/diff/3001/user/src/com/google/gwt/uibinder/elementparsers/UiTextInterpreter.java File user/src/com/google/gwt/uibinder/elementparsers/UiTextInterpreter.java (right): http://gwt-code-reviews.appspot.com/1409802/diff/3001/user/src/com/google/gwt/uibinder/elementparsers/UiTextInterpreter.java#newcode27 user/src/com/google/gwt/uibinder/elementparsers/UiTextInterpreter.java:27: public class UiTextInterpreter implements XMLElement.InterpreterString { This thing is a hack, relying on ComputedAttributeInterpreter to have run first, and doing nothing to verify that fact. Instead HTMLInterpreter and TextInterpreter should re-order things to run UiTextInterpreter first. Further, UiTextInterpreter should wrap its own instance of ComputedAttributeInterpreter to do its dirty work — when a UiTextInterpreter finishes, there should be nothing left for a downstream ComputedAttributeInterpreter to do. First, call XMLAttribute#hasComputedValue and barf if it's false. Refactor ComputedAttributeInterpreter to accept a delegate that makes the writer call, and which is given the returnType. If the returnType is not String, barf. Now make a separate UiTextInHtmlInterpreter, perhaps a subclass of this one, to be used by HtmlInterpreter. It should also accept a SafeHtml return type, and should make the decision to call tokenForSafeHtmlMethod or tokenForStringExpression. http://gwt-code-reviews.appspot.com/1409802/diff/3001/user/src/com/google/gwt/uibinder/rebind/XMLAttribute.java File user/src/com/google/gwt/uibinder/rebind/XMLAttribute.java (right): http://gwt-code-reviews.appspot.com/1409802/diff/3001/user/src/com/google/gwt/uibinder/rebind/XMLAttribute.java#newcode38 user/src/com/google/gwt/uibinder/rebind/XMLAttribute.java:38: public String computedReturnValue(FieldManager fieldManager, JType getComputedValueType, return null if this is not a computed value. http://gwt-code-reviews.appspot.com/1409802/diff/3001/user/src/com/google/gwt/uibinder/rebind/XMLAttribute.java#newcode41 user/src/com/google/gwt/uibinder/rebind/XMLAttribute.java:41: String[] parts = attrValue.substring(1, attrValue.length() - 1).split(\\.); This split logic already exists in FieldReference, keep it there. Make a new method on FieldManager that looks up an existing FieldReference, or creates a temporary one if need be, and returns FieldReference#findReturnType. Let FieldManager do the logging and you won't have to pass in a logger. http://gwt-code-reviews.appspot.com/1409802/diff/3001/user/src/com/google/gwt/uibinder/rebind/XMLAttribute.java#newcode46 user/src/com/google/gwt/uibinder/rebind/XMLAttribute.java:46: return type.getSimpleSourceName(); return type, not a string. http://gwt-code-reviews.appspot.com/1409802/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Users found that the error spam reduction hid too many errors. This change (issue1416801)
http://gwt-code-reviews.appspot.com/1416801/diff/1/dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java File dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java (left): http://gwt-code-reviews.appspot.com/1416801/diff/1/dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java#oldcode74 dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java:74: if (Util.findSourceInClassPath(cl, missingType) == null) { On 2011/04/13 19:20:43, zundel wrote: this didn't make any sense to me - didn't the code above just check to to see if sourceURL was null? Looks redundant to me. http://gwt-code-reviews.appspot.com/1416801/diff/1/dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java File dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java (right): http://gwt-code-reviews.appspot.com/1416801/diff/1/dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java#newcode206 dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java:206: String topLevelType = typeName.replaceAll(\\$.*$, ); The use of $'s for nested types is just naming convention. For example, I can name a top-level class Foo$, without any problems. You don't want to have to linear-scan over the unitMap to find the matching CompilationUnit, so you should probably build an index from all types (including nested) to CompilationUnits. http://gwt-code-reviews.appspot.com/1416801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9987 committed - Allows the gwt.persistentunitcache property to accept a boolean...
Revision: 9987 Author: zun...@google.com Date: Wed Apr 13 10:08:39 2011 Log: Allows the gwt.persistentunitcache property to accept a boolean argument (case insenstivive true) to turn on the cache. Any value other than a blank turns the cache off. Review at http://gwt-code-reviews.appspot.com/1415802 Review by: to...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=9987 Modified: /trunk/dev/core/src/com/google/gwt/dev/javac/UnitCacheFactory.java === --- /trunk/dev/core/src/com/google/gwt/dev/javac/UnitCacheFactory.java Mon Mar 28 11:28:56 2011 +++ /trunk/dev/core/src/com/google/gwt/dev/javac/UnitCacheFactory.java Wed Apr 13 10:08:39 2011 @@ -28,8 +28,10 @@ /** * The API must be enabled explicitly for persistent caching to be live. */ - private static final boolean usePersistent = System.getProperties().containsKey( - gwt.persistentunitcache); + private static final String configPropertyValue = System.getProperty(gwt.persistentunitcache, + false); + private static final boolean usePersistent = configPropertyValue.length() == 0 + || Boolean.parseBoolean(configPropertyValue); private static UnitCache instance = null; /** -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Users found that the error spam reduction hid too many errors. This change (issue1416801)
Updated patch. http://gwt-code-reviews.appspot.com/1416801/diff/1/dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java File dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java (right): http://gwt-code-reviews.appspot.com/1416801/diff/1/dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java#newcode206 dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java:206: String topLevelType = typeName.replaceAll(\\$.*$, ); On 2011/04/13 19:57:18, tobyr wrote: The use of $'s for nested types is just naming convention. For example, I can name a top-level class Foo$, without any problems. You don't want to have to linear-scan over the unitMap to find the matching CompilationUnit, so you should probably build an index from all types (including nested) to CompilationUnits. Good idea - Done. http://gwt-code-reviews.appspot.com/1416801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9988 committed - Improving TouchScroller to allow native document level scrolling when ...
Revision: 9988 Author: jlaba...@google.com Date: Wed Apr 13 10:30:02 2011 Log: Improving TouchScroller to allow native document level scrolling when appropriate. If the scrollable widget is scrolled as far as it can go in a direction, and the user tries to scroll in that direction, then we defer to document level scrolling. For example, in the Showcase app (which is not a mobile specific app), if you scroll the menu bar to the bottom, then scrolling it again allows the document to scroll down, revealing the rest of the page. It isn't perfect because we cannot disable native scrolling in one direction (as in, allow native horizontal but disable native vertical), but its a drastic improvement and make Showcase usable on mobile. This change also fixes a bug in TouchScroller where it always busts the next click, even if Momentum has finished. The next click should only be busted if the user interupts momentum to stop it. Also, we cancel momentum on WindowResize (and by extension, orientation change) to account for the fact that resizing the scrollable widget will cause the contents to reflow, and the old scroll positions become stale. Review at http://gwt-code-reviews.appspot.com/1410803 Review by: p...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=9988 Modified: /trunk/user/src/com/google/gwt/touch/client/TouchScroller.java /trunk/user/test/com/google/gwt/touch/client/TouchScrollTest.java === --- /trunk/user/src/com/google/gwt/touch/client/TouchScroller.java Mon Mar 21 12:22:19 2011 +++ /trunk/user/src/com/google/gwt/touch/client/TouchScroller.java Wed Apr 13 10:30:02 2011 @@ -30,11 +30,14 @@ import com.google.gwt.event.dom.client.TouchMoveHandler; import com.google.gwt.event.dom.client.TouchStartEvent; import com.google.gwt.event.dom.client.TouchStartHandler; +import com.google.gwt.event.logical.shared.ResizeEvent; +import com.google.gwt.event.logical.shared.ResizeHandler; import com.google.gwt.event.shared.HandlerRegistration; import com.google.gwt.touch.client.Momentum.State; import com.google.gwt.user.client.Event; import com.google.gwt.user.client.Event.NativePreviewEvent; import com.google.gwt.user.client.Event.NativePreviewHandler; +import com.google.gwt.user.client.Window; import com.google.gwt.user.client.ui.HasScrolling; import java.util.ArrayList; @@ -99,6 +102,7 @@ private final Point initialPosition = getWidgetScrollPosition(); private int lastElapsedMillis = 0; private State state; +private HandlerRegistration windowResizeHandler; /** * Construct a {@link MomentumCommand}. @@ -107,6 +111,18 @@ */ public MomentumCommand(Point endVelocity) { state = momentum.createState(initialPosition, endVelocity); + + /** + * If the user resizes the window (which happens on orientation change of + * a mobile device), cancel the momentum. The scrollable widget may be + * resized, which will cause its content to reflow and invalidates the + * current scrolling position. + */ + windowResizeHandler = Window.addResizeHandler(new ResizeHandler() { +public void onResize(ResizeEvent event) { + finish(); +} + }); } public boolean execute() { @@ -115,6 +131,7 @@ * disabled. */ if (this != momentumCommand) { +finish(); return false; } @@ -127,9 +144,9 @@ // Calculate the new state. boolean notDone = momentum.updateState(state); - // Momementum is finished, so the user is free to click. + // Momentum is finished, so the user is free to click. if (!notDone) { -setBustNextClick(false); +finish(); } /* @@ -139,6 +156,20 @@ setWidgetScrollPosition(state.getPosition()); return notDone; } + +/** + * Finish and cleanup this momentum command. + */ +private void finish() { + if (windowResizeHandler != null) { +windowResizeHandler.removeHandler(); +windowResizeHandler = null; + } + if (this == momentumCommand) { +momentumCommand = null; +setBustNextClick(false); + } +} } /** @@ -492,9 +523,6 @@ if (!touching) { return; } - -// Prevent native scrolling. -event.preventDefault(); // Check if we should start dragging. Touch touch = getTouchFromEvent(event); @@ -506,11 +534,60 @@ double absDiffX = Math.abs(diff.getX()); double absDiffY = Math.abs(diff.getY()); if (absDiffX MIN_TRACKING_FOR_DRAG || absDiffY MIN_TRACKING_FOR_DRAG) { +/* + * Check if we should defer to native scrolling. If the scrollable + * widget is already scrolled as far as it will go, then we don't want + * to prevent scrolling of the document. + * + * We cannot prevent native scrolling in only
[gwt-contrib] Re: Improving TouchScroller to allow native document level scrolling when appropriate. If the scroll... (issue1410803)
committed as r9988 http://gwt-code-reviews.appspot.com/1410803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Users found that the error spam reduction hid too many errors. This change (issue1416801)
http://gwt-code-reviews.appspot.com/1416801/diff/1/dev/core/src/com/google/gwt/dev/javac/Shared.java File dev/core/src/com/google/gwt/dev/javac/Shared.java (right): http://gwt-code-reviews.appspot.com/1416801/diff/1/dev/core/src/com/google/gwt/dev/javac/Shared.java#newcode159 dev/core/src/com/google/gwt/dev/javac/Shared.java:159: return internalName.replace('/', '.'); Use InternalName.toBinaryName() instead of creating this method. http://gwt-code-reviews.appspot.com/1416801/diff/4001/dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java File dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java (right): http://gwt-code-reviews.appspot.com/1416801/diff/4001/dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java#newcode250 dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java:250: } These seems unnecessary. Either CompilationState.getClassFileMap() or getClassFileMapBySource() should give you a correct way to map type to CompiledClass, then you just call cc.getUnit(). http://gwt-code-reviews.appspot.com/1416801/diff/4001/dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java#newcode270 dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java:270: } Did you track down why this is needed? Only errors related to api references will cause a type to go missing from TypeOracle. Assume Bar doesn't exist. class Foo1 { void f() { Bar.doSomething(); } } class Foo2 { Bar f(); } I believe that Foo2 will be removed from TypeOracle (because of the api reference to the non-existent Bar), but I don't believe Foo1 will be removed. http://gwt-code-reviews.appspot.com/1416801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: update EntityProxyChange javadoc (issue1414801)
ping http://gwt-code-reviews.appspot.com/1414801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors