Re: client code from external directory
Thank you for attention for my problem. On Nov 1, 3:21 am, Jeff Larsen larse...@gmail.com wrote: Put a gwt.xml file in the project. I did. It's name is Generic.gwt.xml. define the module, then you'll be able to import your library project into a gwt project. The same thing, yes I defined the module (Generic.gwt.xml), but it never compiles: [INFO] com.mysite.generic.Generic is up to date. GWT compilation skipped This results in the subsequent error in Application module because it uses Constants type defined in the Generic module. ... By the way, the sources of the sample application is available, just do svn checkout http://webkit-jspf.googlecode.com/svn/trunk/tmp/maven/gwt-external-lib It compiles without errors if the usages of Constants type are commented. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: CellTree reordering nodes?
I don't know you you've screwed up; but if you have, so have I. I too have been seeing very strange event-handling behaviour, with values being passed to getNodeInfo that are not for the node clicked on. Using your trick with .add(0, Object) made my problem go away too. Right now I'm really happy because it is just that little bit less likely that we are both stupid. maybe. On Nov 1, 3:04 am, decitrig rws...@gmail.com wrote: This problem is a bit tricky to describe; forgive me. I have a cell tree where nodes are added programmatically by doing a getList().add() on a ListDataProvider field. However, I found that using the .add(Object) method would do strange things to the ordering, i.e. the node *rendered* as Item 1 would be passed as *value* Item 2 to getNodeInfo(), and thus it looked like Item 1 got Item 2's children. The really strange thing is that if I do .add(0, Object), then everything works fine. The actual code can be found here:http://bitbucket.org/slide_rule/umd-code-review/src/tip/src/edu/umd/r... I just want to have list operations reflected in the tree, is this a bug or have I just screwed this up somehow? -- rwsims -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: lib-gwt-svg 0.5 for GWT 2.1 is available
This is a great news -- I'll give it a try ... Cheers! http://ui-programming.blogspot.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Route animation in google maps with GWT
Hi, From the code I cant really say whats the problem..looks ok... should show the polylone at list if is added with a weight 0 but on the otehr hand i see a lot of short comings .. some of those... 1. the timer is to fast.. 2 . the insert vertex mehtod is going to be killing slow if u have more than 300 points .. Why do you need this software?! Like I wrote before Im a owner of platform designed for tracking.. mainly used for vehicles, but cant be used for anything, maybe I can offer you a partnership :) regards, B On Fri, Oct 29, 2010 at 3:12 PM, Jan jan.widm...@gmx.ch wrote: Hi B, Thanks for your answers. I tried it like this: In the class shipAnimation in the method onSuccess(), which is called after successful rpc callback, i wrote the following code: LatLng[] animationPoints = new LatLng[1]; animationPoints[0]=start; Polyline animatedWay = new Polyline(animationPoints, getPolylineColor(), polylineWidth, 1); map.addOverlay(animatedWay); ShipAnimationTimer timer = new ShipAnimationTimer(animatedWay, gpsDataLatLng, map); timer.schedule(30); The variable start is the first point of the polyline In the class ShipAnimationTimer, which extends the gwt timer, i wrote the following code: public void run() { animatedWay.insertVertex(counter, gpsDataLatLng[counter]); counter++; if(counter==gpsDataLatLng.length){ this.cancel(); } } So far so good, but when i try to run my app, nothing happens. That means, start and endmarker of the polyline are coming, but not the polyline.. Do you see an error? Thanks for your help. Jan On 29 Okt., 14:00, Blagoja Chavkoski baze...@gmail.com wrote: I just want to say that for the statment (and no way that can be done) im wrong :) there is a GWT gear lib witch start multiple threads in a browser but this is totally diff then what is a real thread in a programming language :) but in any case it has the same mining.. On Fri, Oct 29, 2010 at 1:56 PM, Blagoja Chavkoski baze...@gmail.com wrote: hi, This is the scenario u need to do..I implement this in a program used for a vehicle tracking... 1. get all the data u need to animate(all LatlLon positions) and store them in a arraylist 2. start one timer (gwt timer ) let me say witch will fire on every 100ms (U have to test what will be the real time, dependes on the power of the browser, for IE i had the biggest and foer opera and chrome and safari the lowest, they have the best JS engins) 3.when the timer fires the event(u take by some logic couple of the Lotlng (3-4) from the list, and till the next firing of the timer u make a paint of this positions) 4. the timer pasts 100ms and fires again (by this time u have finished with the paitn of the first 3-4 Latlon) so you move again to point (3) when the timer fires again (4) you soposed to be finished with (3) and u move again to (3) and u do this move (3)-(4)-(3) while the list is not empty..when the list is empty u just terminate(stop) the timer... This is the scenario...u have to make a testing on the timing for sleep of the timer...(when new event is fired for the timer, u have to be finished with show of the latlon-s, what i want to say is that the combination of timer fire time and the number of the events u take is something u need to calculate by performanse(on what u do with the positions and how much time takes to handle this) Hope I help, Regards from Germany:) B p.s u cant use thread sleep and so on...because u dont have threds in the browser side..browser screepts(JS, FLEX, FLESH, SILVERLITE) are single thread so there is no logic(and no way that can be done) for GWT to emulate this libs. On Fri, Oct 29, 2010 at 1:08 PM, Jan jan.widm...@gmx.ch wrote: Hi Brian, Thanks for your answer. I tried some things with the array and timer and that staff. I tried with wait(), sleep() and also with a timer object. But everytime, there comes an error, that these things are not supported by gwt.. The easiest way would be to have the normal callback, which gets the latlng array. Then in the onSuccess() Method changing the marker positions with a for loop and a delay. I tried that, but i couldn't find a possibility to make this delay Is it possible to do that like that, or do i have to make already the callback with the delay? Does that mean, that i have to make two callbacks, one which gets the array and the secon in a for loop? Thanks and best regards from switzerland. Jan On 11 Okt., 18:04, Brian hibr...@gmail.com wrote: GWT is Javascript, at least what the user sees on the website. One idea, is to get all the data from your server for a ship's route as an array of lat/lng objects, then set up a Timer() object that calls your callback every 30ms or so, and you
use enums with EntityProxy
Hello all. I have trouble with enums in the EntityProxy. Is it possible to have enum fileds in the my EntityProxy interface? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT Debugging with an external server
Hi, I used to use GWT's internal server to debug my code but I now have the need to use an external server. I followed the instructions in the gwt eclipse plug-in (http:// code.google.com/eclipse/docs/faq.html#gwt_in_eclipse_for_java_ee) and I indeed was successful but I now lack a very needed feature that I previously had. Hot-swapping code does not work when editing an rpc-service (myClass extends RemoteServiceServlet) because GWT uses reflection in it's code and that crashes JPDA. Now, having explained why it does not work, I still hope for a miracle. Has anyone found a work-around or solution for this issue? Thanks, Ittai -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: use enums with EntityProxy
On 1 nov, 11:54, sith fedorov1...@gmail.com wrote: Hello all. I have trouble with enums in the EntityProxy. Is it possible to have enum fileds in the my EntityProxy interface? It's a known bug: http://code.google.com/p/google-web-toolkit/issues/detail?id=5448 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Window 7 IE8 Drop Down List Boxes open problem
Do you have a snippet of code that can reproduce this problem? this sounds like a browser issue to me. On Oct 28, 6:20 am, skippy al.leh...@fisglobal.com wrote: In this configuration, the drop down list boxes open with the top out of the top of the browser and no scrollBar. GWT 2.0.4 Has anyone else seen this? Any chanse for a 2.0.5 fix? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Announcing GWT 2.1
When targeting App Engine it isn't developer productivity I am so concerned about but rather user experience as well as cascading failures caused by an initial request failure should the additional time required to fire up Spring DI cause the initial request to go over the allotted total time as per the request quota; Google will throttle back starting up new servers to service requests. Like I said previously, this causes cascading failures. My mantra for targeting App Engine is Lean Mean! Jeff On Mon, Nov 1, 2010 at 1:32 AM, Stephen Haberman step...@exigencecorp.comwrote: Hi Shawn, Thanks for the links. Moving off JDO and Spring MVC (the web framework, not DI) seemed to be the biggest startup time wins, which is in line with my assertion that DI itself is not typically the bottleneck. That being said, the streamhead link: http://www.streamhead.com/google-appengine-java-loading-request-analysis/ Was the most interesting because he truly did DI/no-DI comparison (trusting his approach anyway), and saw base DI adding 1s overhead. That is more than I would have guessed, but given it's Spring, I guess I can believe it. I do enjoy seeing startup time highlighted--way too many pointy haired managers (or architects) don't think 10s+, 30s+, 60s+ app startups times affect their developers' productivity. It's terribly frustrating. Thanks again, Stephen -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Jeff -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
JDBC error when implementing RPC
Hi, I have an app that connects to MySQL on the server side, and it works as I have tested it using a separate class. However when I try to send the data to the client via RPC I get the following error: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver when I am running the web app using eclipse (in host mode). I have made sure that mysql-connector-java-5.1.13-bin.jar is in my build path. Can someone please give me some help please? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
for(;;) with 2.01
Hi, I had a loop (using a for(;;) {} ) in my GWT code. When I moved to 2.01, the loop acted weird. (the function with the loop would always return false, when true was also possible.) I changed the loop to a do{}while(true); loop and it worked fine. Sorry I don't have a sample code to demo, but I thought it might be helpful to share. cheers, -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Announcing GWT 2.1
These mail r been coming to me and I am not a part of this. Please take a note of this. Sent on my BlackBerry® from Vodafone -Original Message- From: Duong BaTien duong.bat...@gmail.com Sender: google-web-toolkit@googlegroups.com Date: Sun, 31 Oct 2010 08:26:38 To: google-web-toolkit@googlegroups.com Reply-To: google-web-toolkit@googlegroups.com Subject: Re: Announcing GWT 2.1 Hi: Good to know your experience with Roo and the light weight approach. A best-practiced example of RequestFactory with GIN at GWT side and GUICE at server side may be what a mortal developer is looking for. It is even better with Objectify if Jeff does it. Thanks BaTien On Sun, 2010-10-31 at 02:30 -0700, Thomas Broyer wrote: On 30 oct, 23:15, Jeff Schwartz jefftschwa...@gmail.com wrote: Excellent! Thank you for the information. I still however have to wait until support for DAOs embeded objects is implemented in the MVP framework (I am using Objectify for my ORM as well ass a DAO) before I can cut over. I am also concerned about the apparent reliance on Roo to generate the boilerplate code. It appears that Google is very much behind this combo. We've been prototyping with RequestFactory for months and haven't ever used Roo (our backend is Morphia+MongoDB, not too far from Objectify) It isn't that I have anything against Roo, DI or generated code for that matter but I would have preferred a leaner solution. AFAIK, Roo is only a dev tool to generate and maintain boilerplate code. There's nothing related to Roo in the generated code (have a look at the Expenses sample, the domain objects and all Scaffold* classes are those generated by Roo). RequestFactory goes against DRY as you have interfaces extending EntityProxy on the client-side, and whatever on the server-side; but it's lighter weight than e.g. GWT-RPC at runtime: lighter payload going on the wire (in most cases, and particularly on upload), and much much lighter and faster on the client-side as parsing the payload is just a matter of JSON.parse() Applications targeting App Engine already experience enough latency on start-up and I am afraid that DI will just make matters worse; Huh!?! Could you explain to me how DI slows things down? It's merely about moving the place where you new objects, I don't see where there'd be overhead re. start-up time. Noteworthy: Roo generates GWT apps that use GIN for DI on the client side, but there's no DI at all on the server-side. And DI is absolutely not a requirement; only a best practice (that I'd encourage *anyone* to follow) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
RPC serialisation problem
Hello, I need some hints to improve the speed of serialisation. On server side a make a call to a database to get data from it. This is quiet fast, needs about 2 seconds to get 68000 entries. When sending the data to the client to display it in a table, I seperated the entries to transfer it in pieces of 100 elements to the client. My object to serialize looks like this: public class ObjectNameDto implements IsSerializable { /** * */ private static final long serialVersionUID = 5445630429242485561L; private int id; private String name; public ObjectNameDto() { } public ObjectNameDto(int id) { this.id = id; } /** * @return the id */ public int getObjectNameId() { return id; } /** * @param id *the id to set */ public void setObjectNameId(int id) { this.id = id; } /** * @return the name */ public String getName() { return name; } /** * @param name *the name to set */ public void setName(String name) { this.name = name; } /** * Element count. * * @return the int */ public static int elementCount() { return 2; } } My custom field serialiser is this one: public class ObjectNameDto_CustomFieldSerializer { public static ObjectNameDto initiate(SerializationStreamReader reader) throws SerializationException { return new ObjectNameDto(); } public static void serialize(SerializationStreamWriter writer, ObjectNameDto instance) throws SerializationException { if (instance == null) { throw new NullPointerException(ObjectNameDto object is null); } else { writer.writeInt(instance.getObjectNameId()); writer.writeString(instance.getName()); } } public static void deserialize(SerializationStreamReader reader, ObjectNameDto instance) throws SerializationException { instance.setObjectNameId(reader.readInt()); instance.setName(reader.readString()); } } The serialisation for 100 elements takes 4 seconds and thats too much time. How can I improve the speed of serialisation from client to server? Thanks for any hints. Stephan -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Nested Views in MVP
Hello David, I am very excited about the GWT 2.1 release, and planning to use it for a new upcoming project. I have been following and studying the MVP for quite a while now and experimenting with milestone releases. Just wanted to share some of my thoughts: I personally find the name Activity a bit confusing. I've heard it is more popular in Android community. to me, it is MVP, P referring to Presenter (not Activity!) looking at the comments in source code, and tutorials, one can see Presenter and Activity are used interchangeably. eg: An activity in GWT 2.1 is analogous to a presenter in MVP terminology. from MVP tutorial. now for the first time in your comment i read: 2) There is not necessarily a 1:1 correspondence between Activities and presenters. Your Activity might instantiate multiple presenters and corresponding views. I did not know that, as it was not explicitly stated anywhere. so some clarification on that would really help. btw where does the name Activity come from ? about nested views, I was hoping that the new MVP framework address this, as I was planning to use that extensively. your solutions are interesting, I will try to implement them. any basic tutorial on composite views would be great. thank you for GWT 2.1 ! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Code for sample Contacts application out of date
Hi, On Oct 29, 1:46 pm, cri chuck.irvine...@gmail.com wrote: Since this is a significant piece of new functionality, i.e. MVP, is there any chance that this application will be updated soon, especially the downloadable project? I agree - I've been reading the page which describes the HelloWorld application, using Activities and Places: http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html This makes sense by itself, but I'm confused about some parts. For example, how do I generate and listen for events on the event bus using the new framework. Presumably it's not the same as the Contacts application since HandlerManager is deprecated. If the Contacts application could be updated to use activities and places, it would help answer a lot of my questions. I'm really interested about learning the new framework and all it's new features. Keep up the good work! Thanks, Dan Scott -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No GWT Developer Plugin for Chrome on OSX
See subject. Why is this - I thought Google was running all Macs now - and this product is missing the developer plugin for Chrome? Curious if this is something in progress or should I just continue to use Safari/Firefox ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Cannot get satisfactory IE6 PNG support for sprites
I cannot get PNGs to work in IE6. I've tried every hackaround out there from DD_belatedPNG to iepngfix.htc and beyond without joy. DD was the closest to working but it was not properly positioning all the elements it was fixing and I cannot find a workaround. For some reason, certain elements were positioned 0,0 in the top left, while others worked fine (?). Oh well, I'm beyond that and just want to beat IE6 into submission any way I can. So, my current train of thought is to do the following somehow, and I'm wondering if it's possible or someone has any other suggestions. 1. Disable sprites for IE6 and use individual images 2. During the build process, generate a special PNG8 for IE6 3. Every other browser still gets full fancy shtuff I understand that IE6/7 are the same thing as far as GWT is concerned, so if a solution targets both IE6/7 I'd still be interested in hearing it. I'm just tired of thinking about this issue and want to make it go away. I don't care how, just as long as it works, doesn't take up any more of my time, and affects other browsers as little as possible. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Announcing GWT 2.1
These mails being mark to me Kindly avoid Sent on my BlackBerry® from Vodafone -Original Message- From: Stephen Haberman step...@exigencecorp.com Sender: google-web-toolkit@googlegroups.com Date: Sun, 31 Oct 2010 23:32:03 To: google-web-toolkit@googlegroups.com Reply-To: google-web-toolkit@googlegroups.com Subject: Re: Announcing GWT 2.1 Hi Shawn, Thanks for the links. Moving off JDO and Spring MVC (the web framework, not DI) seemed to be the biggest startup time wins, which is in line with my assertion that DI itself is not typically the bottleneck. That being said, the streamhead link: http://www.streamhead.com/google-appengine-java-loading-request-analysis/ Was the most interesting because he truly did DI/no-DI comparison (trusting his approach anyway), and saw base DI adding 1s overhead. That is more than I would have guessed, but given it's Spring, I guess I can believe it. I do enjoy seeing startup time highlighted--way too many pointy haired managers (or architects) don't think 10s+, 30s+, 60s+ app startups times affect their developers' productivity. It's terribly frustrating. Thanks again, Stephen -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Announcing GWT 2.1
Ur mails r getting wrongly marked to me. Please avoid Sent on my BlackBerry® from Vodafone -Original Message- From: Thomas Broyer t.bro...@gmail.com Sender: google-web-toolkit@googlegroups.com Date: Sun, 31 Oct 2010 09:39:42 To: Google Web Toolkitgoogle-web-toolkit@googlegroups.com Reply-To: google-web-toolkit@googlegroups.com Subject: Re: Announcing GWT 2.1 On 31 oct, 13:40, Jeff Schwartz jefftschwa...@gmail.com wrote: Thomas, It is the 'I' in DI that I reflected on: Injection takes cpu cycles and on App Engine server cpu cycles are severely restricted by numerous quotas; the penalty for exceeding them cause cascading conditions of failure. If you aren't familiar with App Engine hosting and its quotas perhaps you should read up on it. I never used AppEngine so I apologies for not knowing the quotas and what impact could DI have. As for ROO not generating server side DI as part of its tooling in STS when used with GWT I will have to check that out for myself; I believe I had read that it generates a server side application context configuration file and if that is the case then I'd like to know why it would do that if DI wasn't employed on the server. If that is the case then DI would certainly cause heightened latency causing an increase in 500 errors on App Engine virtual server cold starts. Not having tried Roo, I can only talk about what's visible in the Expenses sample: http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/expenses/src/main/ and what I understand from Roo's addon-gwt source code: https://fisheye.springsource.org/browse/spring-roo/addon-gwt And I don't see DI here (on the server-side) As for DI being a best practice (that you'd encourage *anyone* to follow) well that is your opinion that is not shared by everyone. I encourage a more conservative approach to any engineering problem - use the right set of tools at the right time. Sure. I maintain what I said though: DI is a pattern that makes code easier to test and to maintain. And I really mean DI, as a pattern, I'm not talking about any tool here; you're free to implement DI yourself, it doesn't necessarily means Guice or Spring or JavaEE 6 or whatever (which means you could do it with very low overhead, if any). I found DI really improved software quality overall. That being said, let me paraphrase you: I am open minder. We developers have to be :) and as such I would very much like to be proven wrong on all these counts. As for Huh!?! That is something best saved for your friends on Facebook. This is a technical news group where such antics of conversation are not appreciated regardless of difference of opinion. Sorry, I'm not a native English speaker/writer, so I probably misuse idioms sometimes. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Re: lib-gwt-svg 0.5 for GWT 2.1 is available
These mail are been wrongly marked to mePlease avoid.RegardsRahul ShindeOn Mon, 01 Nov 2010 14:09:38 +0530 Sorinel C wrotegt;This is a great news -- I'll give it a try ...gt;gt;Cheers!gt;http://ui-programming.blogspot.com/gt;gt;gt;-- gt;You received this message because you are subscribed to the Google Groups Google Web Toolkit group.gt;To post to this group, send email to google-web-tool...@googlegroups.com.gt;To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com.gt;For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.gt;gt; -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Role based Security in GWT: how to implement ?
Hello everyone, I have some questions regarding implementing security in GWT. It's a typical use case: let's say in your app, users can have different roles, and you want to show only the relevant part of the UI, based on their role. and I am talking about more than 3 roles. eg:(Customer, BranchManager, Teller, CEO, System Admin) (after all GWT is for larger apps, right ? ) on the back-end, i am planning to use Spring, and i'm going to use Spring Security, for authentication, fine-grained authorization, (method level, ACL), it is a very mature framework and annotation based. however, when it comes to the front-end UI, I don't know what is the recommended practice to incorporate role-based security in MVP. (i don't want the security checks get scattered across all methods on the client, bloated code, if statements everywhere, security is a cross- cutting concern, right? should i put it in the Activity/Presenter ?) I see GWT 2.1 release addresses security concerns, for cross-site scripting, and introducing SafeHtml. but nothing related to authorization. I would appreciate your insights and any feedback from google team, perhaps a tutorial addressing this aspect of application security is really needed ! is it possible for GWT team to introduce annotation-based support for addressing security ? does it make sense at all, or i'm missing something. what have been your experiences in implementing security in GWT ? Thank You -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Re: Announcing GWT 2.1
These mail are been wrongly marked to mePlease avoid.RegardsRahul ShindeOn Mon, 01 Nov 2010 10:04:12 +0530 Shawn Brown wrotegt;gt;gt; That being said, I'm not a Spring (nor Guice) fan, so would actuallygt;gt;gt; enjoy seeing numbers that show, say, your stack w/Spring takes x% moregt;gt;gt; time than the same stack w/o Spring.gt;gt;One more:gt;gt;http://www.streamhead.com/google-appengine-java-loading-request-analysis/gt;gt;Shawngt;gt;-- gt;You received this message because you are subscribed to the Google Groups Google Web Toolkit group.gt;To post to this group, send email to google-web-tool...@googlegroups.com.gt;To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com.gt;For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.gt;gt; -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Re: Announcing GWT 2.1
These mail are been wrongly marked to mePlease avoid.RegardsRahul ShindeOn Mon, 01 Nov 2010 11:01:25 +0530 Stephen Haberman wrotegt;Hi Shawn,gt;gt;Thanks for the links.gt;gt;Moving off JDO and Spring MVC (the web framework, not DI) seemed to begt;the biggest startup time wins, which is in line with my assertion thatgt;DI itself is not typically the bottleneck.gt;gt;That being said, the streamhead link:gt;gt;gt; http://www.streamhead.com/google-appengine-java-loading-request-analysis/gt;gt;Was the most interesting because he truly did DI/no-DI comparisongt;(trusting his approach anyway), and saw base DI adding 1s overhead.gt;gt;That is more than I would have guessed, but given it's Spring, I guessgt;I can believe it.gt;gt;I do enjoy seeing startup time highlighted--way too many pointy hairedgt;managers (or architects) don't think 10s+, 30s+, 60s+ app startups timesgt;affect their developers' productivity. It's terribly frustrating.gt;gt;Thanks again,gt;Stephengt;gt;-- gt;You received this message because you are subscribed to the Google Groups Google Web Toolkit group.gt;To post to this group, send email to google-web-tool...@googlegroups.com.gt;To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com.gt;For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.gt;gt; -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Re: CellTree reordering nodes?
These mail are been wrongly marked to mePlease avoid.RegardsRahul ShindeOn Mon, 01 Nov 2010 13:53:51 +0530 David Pinn wrotegt;I don't know you you've screwed up; but if you have, so have I.gt;gt;I too have been seeing very strange event-handling behaviour, withgt;values being passed to getNodeInfo that are not for the node clickedgt;on. Using your trick with .add(0, Object) made my problem go away too.gt;Right now I'm really happy because it is just that little bit lessgt;likely that we are both stupid. maybe.gt;gt;On Nov 1, 3:04 am, decitrig lt;rws...@gmail.comgt; wrote:gt;gt; This problem is a bit tricky to describe; forgive me. I have a cellgt;gt; tree where nodes are added programmatically by doing a getList().add()gt;gt; on a ListDataProvider field. However, I found that usinggt;gt; the .add(Object) method would do strange things to the ordering, i.e.gt;gt; the node *rendered* as Item 1 would be passed as *value* Item 2 togt;gt; getNodeInfo(), and thus it looked like Item 1 got Item 2's children.gt;gt;gt;gt; The really strange thing is that if I do .add(0, Object), thengt;gt; everything works fine.gt;gt;gt;gt; The actual code can be found here:http://bitbucket.org/slide_rule/umd-code-review/src/tip/src/edu/umd/r...gt;gt;gt;gt; I just want to have list operations reflected in the tree, is this agt;gt; bug or have I just screwed this up somehow?gt;gt;gt;gt; --gt;gt; rwsimsgt;gt;-- gt;You received this message because you are subscribed to the Google Groups Google Web Toolkit group.gt;To post to this group, send email to google-web-tool...@googlegroups.com.gt;To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com.gt;For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.gt;gt; -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Wave styled widgets
Hi to all, Any suggestion please... Best Regards Thanking you, Gopal Dhanjibhai Bhalala On Sun, Oct 24, 2010 at 10:21 PM, Deepak Singh deepaksingh...@gmail.comwrote: I also need to know the frame which has been used in Google wave. Anybody who can give idea about how to create such type of custom components or anything similar available to use. Thanks Deepak On Sun, Oct 24, 2010 at 2:23 PM, gopal bhalala gopalbhal...@gmail.comwrote: Hi to all, Any body knows framework or another stuff which is provides Wave styled widgets Best Regards Thanking you, Gopal Dhanjibhai Bhalala -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: No GWT Developer Plugin for Chrome on OSX
I don't think they are running all Macs. I think they have given up Windows but offer a choice of Mac or Linux. Jeff On Sat, Oct 30, 2010 at 10:55 AM, SteveG steven.gent...@gmail.com wrote: See subject. Why is this - I thought Google was running all Macs now - and this product is missing the developer plugin for Chrome? Curious if this is something in progress or should I just continue to use Safari/Firefox ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Jeff -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: for(;;) with 2.01
As an aside, do while is semantically much 'cleaner' as is while(boolean) IMHO :) On Fri, Oct 29, 2010 at 5:16 PM, marcusucubi marcusuc...@gmail.com wrote: Hi, I had a loop (using a for(;;) {} ) in my GWT code. When I moved to 2.01, the loop acted weird. (the function with the loop would always return false, when true was also possible.) I changed the loop to a do{}while(true); loop and it worked fine. Sorry I don't have a sample code to demo, but I thought it might be helpful to share. cheers, -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Jeff -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Announcing GWT 2.1
On 31 oct, 18:57, Jeff Schwartz jefftschwa...@gmail.com wrote: Hi Thomas, No hard feelings, I assure you, and I think your English is very good so please don't feel insecure. I apologize if I came off with an attitude; I didn't mean to, but it was early in the morning and I didn't have my 1st cup of coffee :) OK, no problem. Roo is a Spring Source technology as is STS Spring DI. Spring DI uses an application context XML file placed in the war which upon application start up is read. If its contents include declarative class nodes then those classes are instantiated and any additional parameters may also be assigned to their properties to bring them into a usable state. Within the application's code are DI attribute declarations that are used by Spring DI for injecting the objects into the application. Almost all of the Java based DI technologies work in a similar fashion. Well, except that Guice for instance (and I believe JavaEE 6 too, as it's based on JSR 330, lead by Bob Lee, creator of Guice) does not use an XML file. The benefits of using DI can vary. It is handy when you want to mock classes for testing, for instance. It is also handy for providing the ability to switch among the numerous implementations of common APIs. These are very worthy capabilities and in the right situations are handy to have. I personally use Spring DI with Wicket and Hibernate. They work together very well. But with the positive also comes the negative just like with most things in life. For instance, many developers view maintaining an application's context file as burdensome and often complicated. In truth, at least IMO, this is best served by tooling provided in an IDE which understands the XML schemas and which can provide some code completion as well as intelligent feedback. That's why Guice does not use XML but only plain old Java with annotations. It's in some situations not as flexible as Spring though: http://code.google.com/p/google-guice/issues/detail?id=167 (for instance) See also: http://code.google.com/p/google-guice/wiki/SpringComparison But Spring can also be used without an XML configuration: http://blog.springsource.com/2009/12/22/configuration-simplifications-in-spring-3-0/ (it's much like DI by hand) STS, Springs' added value release of Eclipse, does just that but not everyone is using STS. On App Engine, one has 30 seconds to complete an HTML request. While that may seem like a lot of time, it isn't when you consider that on App Engine the time allocated to starting up a new virtual server to service the request is also included in that 20 second quota. Exceed that quota and your request fails with a 500 error. As DI requires additional cpu cycles to do its magic, it may cause an application to exceed the 30 second quota and fail at start up which I am sure you would agree is something to be avoided. Isn't that somehow due to Spring insisting in everything should be a singleton (and eagerly instantiating them)? So I am not opposed to DI at all, I just prefer to have the option of using it or not using it such as on App Engine. So I assure you RequestFactory does not imply DI; much the contrary actually (in 2.1.0) ;-) In regard to GWT v2.1 MVP, it seems apparent to me that Google is championing Roo as their choice for developers to use when integrating MVP into their GWT applications. From the little I really know about it, Roo is able to generate a lot of the boilerplate code needed to keep the views, models and presenters in sync. This is fine but I would have preferred if Google had also provided options such as extending the code refactoring ability in Eclipse to provide this support. I imagine this wouldn't be a trivial effort but what is when it comes to developing applications? As an example of what I mean, currently when adding a RemoteService using Eclipse all the bindings between the service interface, the service async interface and the service implementation are automatically generated. If I add a method to the service interface and forget to add its implementation it is flagged as an error. This type of 'built in' support is very intuitive as well as productive since the developer is already familiar with their IDE. I can imagine this can also be done with MVP in Eclipse and would eliminate the need for Roo altogether. I don't know exactly what Roo generates, but there are two parts: - validation: EntityProxy re. their @ProxyFor counterpart, and RequestContext re. their @Service counterpart, and Editor? re. the edited object: yes having validation right in the IDE would be great, but it can only be done one way (an EntityProxy/RequestContext method doesn't match any method on the @ProxyFor/@Service class, Editor trying to edit a property that doesn't exist on the object; or type mismatch; but you won't want e.g. the EntityProxy being flagged because it doesn't map a method of the @ProxyFor object, as that could very well
Re: Route animation in google maps with GWT
Hi B, Thanks for your answers. I found the error. For setting the schedule, i used the method timer.schedule()..The thing with that method is, that the timers run method is called only one time..so now i use the method timer.scheduleRepeating() and it works perfectly..in my example, i have 370 points, and the performance is acceptable... So i think, i will reach my goals. :-) Thank you, best regards. Jan On 1 Nov., 10:58, Blagoja Chavkoski baze...@gmail.com wrote: Hi, From the code I cant really say whats the problem..looks ok... should show the polylone at list if is added with a weight 0 but on the otehr hand i see a lot of short comings .. some of those... 1. the timer is to fast.. 2 . the insert vertex mehtod is going to be killing slow if u have more than 300 points .. Why do you need this software?! Like I wrote before Im a owner of platform designed for tracking.. mainly used for vehicles, but cant be used for anything, maybe I can offer you a partnership :) regards, B On Fri, Oct 29, 2010 at 3:12 PM, Jan jan.widm...@gmx.ch wrote: Hi B, Thanks for your answers. I tried it like this: In the class shipAnimation in the method onSuccess(), which is called after successful rpc callback, i wrote the following code: LatLng[] animationPoints = new LatLng[1]; animationPoints[0]=start; Polyline animatedWay = new Polyline(animationPoints, getPolylineColor(), polylineWidth, 1); map.addOverlay(animatedWay); ShipAnimationTimer timer = new ShipAnimationTimer(animatedWay, gpsDataLatLng, map); timer.schedule(30); The variable start is the first point of the polyline In the class ShipAnimationTimer, which extends the gwt timer, i wrote the following code: public void run() { animatedWay.insertVertex(counter, gpsDataLatLng[counter]); counter++; if(counter==gpsDataLatLng.length){ this.cancel(); } } So far so good, but when i try to run my app, nothing happens. That means, start and endmarker of the polyline are coming, but not the polyline.. Do you see an error? Thanks for your help. Jan On 29 Okt., 14:00, Blagoja Chavkoski baze...@gmail.com wrote: I just want to say that for the statment (and no way that can be done) im wrong :) there is a GWT gear lib witch start multiple threads in a browser but this is totally diff then what is a real thread in a programming language :) but in any case it has the same mining.. On Fri, Oct 29, 2010 at 1:56 PM, Blagoja Chavkoski baze...@gmail.com wrote: hi, This is the scenario u need to do..I implement this in a program used for a vehicle tracking... 1. get all the data u need to animate(all LatlLon positions) and store them in a arraylist 2. start one timer (gwt timer ) let me say witch will fire on every 100ms (U have to test what will be the real time, dependes on the power of the browser, for IE i had the biggest and foer opera and chrome and safari the lowest, they have the best JS engins) 3.when the timer fires the event(u take by some logic couple of the Lotlng (3-4) from the list, and till the next firing of the timer u make a paint of this positions) 4. the timer pasts 100ms and fires again (by this time u have finished with the paitn of the first 3-4 Latlon) so you move again to point (3) when the timer fires again (4) you soposed to be finished with (3) and u move again to (3) and u do this move (3)-(4)-(3) while the list is not empty..when the list is empty u just terminate(stop) the timer... This is the scenario...u have to make a testing on the timing for sleep of the timer...(when new event is fired for the timer, u have to be finished with show of the latlon-s, what i want to say is that the combination of timer fire time and the number of the events u take is something u need to calculate by performanse(on what u do with the positions and how much time takes to handle this) Hope I help, Regards from Germany:) B p.s u cant use thread sleep and so on...because u dont have threds in the browser side..browser screepts(JS, FLEX, FLESH, SILVERLITE) are single thread so there is no logic(and no way that can be done) for GWT to emulate this libs. On Fri, Oct 29, 2010 at 1:08 PM, Jan jan.widm...@gmx.ch wrote: Hi Brian, Thanks for your answer. I tried some things with the array and timer and that staff. I tried with wait(), sleep() and also with a timer object. But everytime, there comes an error, that these things are not supported by gwt.. The easiest way would be to have the normal callback, which gets the latlng array. Then in the onSuccess() Method changing the marker positions with a for loop and a delay. I tried that, but i couldn't find a possibility to make this delay Is it possible
Re: client code from external directory
I've just found out the error. At first, maven-gwt-plugin must be of 1.3.1.version, ver 1.2 that is available in the official maven repository does not support compileSourcesArtifacts tag. The other problem is that I tried to include generic module by adding Generic.gwt.xml in gwtmod module, but this file must be located in the resources of the distributed library, i.e. in generic module's resources. Though it's a pity that I can't use relative path in the gwtmod, e.g. telling GWT compiler to use sources from, say, ../another-project/main/ java/** path - to not to modify external library's source code and maven configuration. And I guess this is not that bad because exported module must be checked early by the GWT compiler for using only the emulated part of the JRE. On Nov 1, 11:21 am, Alex Shabanov avshaba...@gmail.com wrote: Thank you for attention for my problem. On Nov 1, 3:21 am, Jeff Larsen larse...@gmail.com wrote: Put a gwt.xml file in the project. I did. It's name is Generic.gwt.xml. define the module, then you'll be able to import your library project into a gwt project. The same thing, yes I defined the module (Generic.gwt.xml), but it never compiles: [INFO] com.mysite.generic.Generic is up to date. GWT compilation skipped This results in the subsequent error in Application module because it uses Constants type defined in the Generic module. ... By the way, the sources of the sample application is available, just do svn checkouthttp://webkit-jspf.googlecode.com/svn/trunk/tmp/maven/gwt-external-lib It compiles without errors if the usages of Constants type are commented. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Announcing: Visual GUI Designer in web browser
Update: new http://demo.gdevelop.com/ with more widgets (Label, TextBox, CheckBox, Radio Button, List Box and Button) and panels (Vertical Panel, Horizontal Panel). Please note about Editing features: - Shortcut keys (Ctrl+C, Ctrl+V, Ctrl+Z, Ctrl+Y, Ctrl+A, etc) - Select multiple widgets by holding Shift/Ctrl key while (de)selecting widgets. - Drag widgets from a panel to another one: move widgets to the new panel. - Hold Ctrl key down while dragging will clone widgets. Comments and suggestions are highly appreciated. On Oct 29, 9:28 am, Trung gwtdevelo...@gmail.com wrote: Hi all, We have a Visual GUI Designer application running in web browser (work fine in Firefox, Chrome, Safari, but not good in IE and Opera). See the blog posthttp://www.gdevelop.com/w/blog/2010/10/29/visual-gui-designer-in-web-... and the demohttp://demo.gdevelop.com/ The application is currently in early stage, comments and suggestions are appreciated. Cheers -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Fwd: Announcing gwt4air 1.0
-- Forwarded message -- From: nino ekambi jazzmatad...@googlemail.com Date: 2010/11/1 Subject: Announcing gwt4air 1.0 To: google-web-toolkit@googlegroups.com Hello community, It s been a long way but i m proud to annouce the release of Gwt4Air 1.0 Gwt4Air will give you the the ability to turn your GWT apps in to desktop apps using adobe air. You can download the jar here http://code.google.com/p/gwt4air/. The first release is compatible with gxt 2.2, gwt 2.0 and adobe air 2. It includes the following features: 1) Access to the core AIR APi from GWT, you basically can do anything you would do in actionscript or javascript. 2) An adapter to make GXT(Ext-GWT) works inside the air application sandbox 3) A pdf module to read and write pdf files. 4) A google maps module, so you can produce maps even when your web client is offline 5) An adapter to male RPC and RequestBuilder calls possible with AIR. 6) A sample app with source code that shows some examples. One of the example is how you can export an GXT chart to pdf using gwt4air. The next releases will add more and more features(check out the roadmap) To get started you can check out the wiki page. I hope you guys are going to like this and provide some good feedbacks. For any question please feel free to contact me. best regards, Alain -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
repositioning node in a celltree
Hi! did someone already modify successful a celltree's structure programmatically? I want to change the parent of a node programmatically and see the changes displayed on the screen. What I do now is the following: .remove the considered node's value from the old parent's ListDataProvider using ListDataProvider#getList()#remove (). .add the considered node's value to the new parent's ListDataProvider using ListDataProvider#getList()#add() .call ListDataProvider#refresh on both old and new parent ListDataProviders. I expected to see the old node move from the old to the new parent. But what occurs instead, is that the node I wanted to move just disappear from the tree. What can be the problem? Thanks for any help. Rodrigue -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Announcing GWT 2.1
On Mon, Nov 1, 2010 at 8:22 AM, Thomas Broyer t.bro...@gmail.com wrote: Well, except that Guice for instance (and I believe JavaEE 6 too, as it's based on JSR 330, lead by Bob Lee, creator of Guice) does not use an XML file. Yes however I was specifically speaking to Spring DI. Isn't that somehow due to Spring insisting in everything should be a singleton (and eagerly instantiating them)? I believe so, yes. My concerns aren't with MVP; from what I have read I think MVP is a very good design pattern I am eager to incorporate it. My concerns are more aligned with the dependency on Roo STS (which I use for Groovy and for Grails development which I really like) to accomplish syncing Views Presenters. I would have preferred a pure Java solution such as relying on the compiler and code refactoring to generate binding code where needed. Jeff -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
RE: repositioning node in a celltree
Hi! did someone already modify successful a celltree's structure programmatically? I want to change the parent of a node programmatically and see the changes displayed on the screen. What I do now is the following: .remove the considered node's value from the old parent's ListDataProvider using ListDataProvider#getList()#remove (). .add the considered node's value to the new parent's ListDataProvider using ListDataProvider#getList()#add() .call ListDataProvider#refresh on both old and new parent ListDataProviders. I expected to see the old node move from the old to the new parent. But what occurs instead, is that the node I wanted to move just disappear from the tree. What can be the problem? And I would also like to know, if there is a way to tell to a CellTree to redraw itself because the backed data have changed. Thanks for any help. Rodrigue -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
problems with gwt
Hi, I've found some difficults with gwt, I've been trying to put paging grid into a grouping store but i can't. I can see the paging in the bottom of the list of groups but i want to put paging inside each group and i can't. if somebody has an idea about it, please tell me because i'm lost... Also I've got another problem hiddind columns of a grid. I set the parameter setHidden in each column to true. But I don't want to see this column when I push on the drop down button. I try it with css style but I still see the column, what can I do?? I put some code of the column configuration: ColumnConfig reportDateColumnConfig = new ColumnConfig(, FIELD_DATE_REPORT, 0, false,null,FIELD_DATE_REPORT); reportDateColumnConfig.setHidden(true); reportDateColumnConfig.setCss(overflow: hidden;); I hope somebody could help. Thank you very much -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Route animation in google maps with GWT
Hi, Thats the way to go...wosent that hard :) Chears, B On Mon, Nov 1, 2010 at 1:34 PM, Jan jan.widm...@gmx.ch wrote: Hi B, Thanks for your answers. I found the error. For setting the schedule, i used the method timer.schedule()..The thing with that method is, that the timers run method is called only one time..so now i use the method timer.scheduleRepeating() and it works perfectly..in my example, i have 370 points, and the performance is acceptable... So i think, i will reach my goals. :-) Thank you, best regards. Jan On 1 Nov., 10:58, Blagoja Chavkoski baze...@gmail.com wrote: Hi, From the code I cant really say whats the problem..looks ok... should show the polylone at list if is added with a weight 0 but on the otehr hand i see a lot of short comings .. some of those... 1. the timer is to fast.. 2 . the insert vertex mehtod is going to be killing slow if u have more than 300 points .. Why do you need this software?! Like I wrote before Im a owner of platform designed for tracking.. mainly used for vehicles, but cant be used for anything, maybe I can offer you a partnership :) regards, B On Fri, Oct 29, 2010 at 3:12 PM, Jan jan.widm...@gmx.ch wrote: Hi B, Thanks for your answers. I tried it like this: In the class shipAnimation in the method onSuccess(), which is called after successful rpc callback, i wrote the following code: LatLng[] animationPoints = new LatLng[1]; animationPoints[0]=start; Polyline animatedWay = new Polyline(animationPoints, getPolylineColor(), polylineWidth, 1); map.addOverlay(animatedWay); ShipAnimationTimer timer = new ShipAnimationTimer(animatedWay, gpsDataLatLng, map); timer.schedule(30); The variable start is the first point of the polyline In the class ShipAnimationTimer, which extends the gwt timer, i wrote the following code: public void run() { animatedWay.insertVertex(counter, gpsDataLatLng[counter]); counter++; if(counter==gpsDataLatLng.length){ this.cancel(); } } So far so good, but when i try to run my app, nothing happens. That means, start and endmarker of the polyline are coming, but not the polyline.. Do you see an error? Thanks for your help. Jan On 29 Okt., 14:00, Blagoja Chavkoski baze...@gmail.com wrote: I just want to say that for the statment (and no way that can be done) im wrong :) there is a GWT gear lib witch start multiple threads in a browser but this is totally diff then what is a real thread in a programming language :) but in any case it has the same mining.. On Fri, Oct 29, 2010 at 1:56 PM, Blagoja Chavkoski baze...@gmail.com wrote: hi, This is the scenario u need to do..I implement this in a program used for a vehicle tracking... 1. get all the data u need to animate(all LatlLon positions) and store them in a arraylist 2. start one timer (gwt timer ) let me say witch will fire on every 100ms (U have to test what will be the real time, dependes on the power of the browser, for IE i had the biggest and foer opera and chrome and safari the lowest, they have the best JS engins) 3.when the timer fires the event(u take by some logic couple of the Lotlng (3-4) from the list, and till the next firing of the timer u make a paint of this positions) 4. the timer pasts 100ms and fires again (by this time u have finished with the paitn of the first 3-4 Latlon) so you move again to point (3) when the timer fires again (4) you soposed to be finished with (3) and u move again to (3) and u do this move (3)-(4)-(3) while the list is not empty..when the list is empty u just terminate(stop) the timer... This is the scenario...u have to make a testing on the timing for sleep of the timer...(when new event is fired for the timer, u have to be finished with show of the latlon-s, what i want to say is that the combination of timer fire time and the number of the events u take is something u need to calculate by performanse(on what u do with the positions and how much time takes to handle this) Hope I help, Regards from Germany:) B p.s u cant use thread sleep and so on...because u dont have threds in the browser side..browser screepts(JS, FLEX, FLESH, SILVERLITE) are single thread so there is no logic(and no way that can be done) for GWT to emulate this libs. On Fri, Oct 29, 2010 at 1:08 PM, Jan jan.widm...@gmx.ch wrote: Hi Brian, Thanks for your answer. I tried some things with the array and timer and that staff. I tried with wait(), sleep() and also with a timer object. But everytime, there comes an error, that these things are not supported
Re: Role based Security in GWT: how to implement ?
Hi zixzigma, doing security in the client would be wrong. Remember you are doing client-server with GWT (not fatclient as classical web technology does) The client should ony receive data which are allowed for the current user role. The client is never ever a trusted component! So in the end any client based security concept (basing on annotation or what else) is just a misconception. The server is the only place where security can apply. But GWT is mainly a client side topic. Authentication based security or roles based security will never be a GWT (client) topic Stefan Bachert http://gwtworld.de On 30 Okt., 10:35, zixzigma zixzi...@gmail.com wrote: Hello everyone, I have some questions regarding implementing security in GWT. It's a typical use case: let's say in your app, users can have different roles, and you want to show only the relevant part of the UI, based on their role. and I am talking about more than 3 roles. eg:(Customer, BranchManager, Teller, CEO, System Admin) (after all GWT is for larger apps, right ? ) on the back-end, i am planning to use Spring, and i'm going to use Spring Security, for authentication, fine-grained authorization, (method level, ACL), it is a very mature framework and annotation based. however, when it comes to the front-end UI, I don't know what is the recommended practice to incorporate role-based security in MVP. (i don't want the security checks get scattered across all methods on the client, bloated code, if statements everywhere, security is a cross- cutting concern, right? should i put it in the Activity/Presenter ?) I see GWT 2.1 release addresses security concerns, for cross-site scripting, and introducing SafeHtml. but nothing related to authorization. I would appreciate your insights and any feedback from google team, perhaps a tutorial addressing this aspect of application security is really needed ! is it possible for GWT team to introduce annotation-based support for addressing security ? does it make sense at all, or i'm missing something. what have been your experiences in implementing security in GWT ? Thank You -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How RPC works on GWT?
Hi folks! I'd like to know how RPC works, but I do not want to know about the proxy created and that abstraction we can easily found on GWT web page. I want to know exactly how the resquest is build. how the post message is sent. I was reading to source code and it seems to me that a GWT class read it as a resource stream I saw it on RemoteServiceServlet class on the processPost method, the first thing that this method does is to invoke the readContent method, passing the request as parameter. I would like to listen from you that I'm wrong and that the post info is not read as a resource stream, but as a parameter :) I create a Valve to tomcat and I need to get the GWT post information before it reaches the GWT servlet. but the thing is that if it comes as an stream I can not do that. thats bad! :( I'm afraid that if I do that the GWT servlet won't work (I wish I were wrong here again). Thanks a lot folks!!! Best Regards JDC -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
List editing with Editor/RequestFactory + GAE/Objectify
Hi, to get accustomed to GAE as well as GWT 2.1, I am working on a pet project for managing Recipes. A Recipe has multiple Ingredients, which I want to display in a CellTable, each Ingredient having (editable) columns for Amount and Type. New Ingredient lines in the table can be added with a button, existing ingredients can be removed and reordered by buttons (or DnD later). So now I am trying to figure out how to wire this up with the Editor framework and RequestFactory on the Client-side and the GAE datastore and Objectify (or JDO, if that makes it any easier). I created some dummy Recipe object with a getIngredients()-list with some dummy Ingredients and managed to get the CellTable populated with these by the Editor driver automatically. What I do not understand however is how far this databinding goes? How would I implement an Add Ingredient button, that would create a new empty Ingredient, and would I have to create the CellTable row for that manually or would the Editor driver do that for me? My other question is related to the Server model. RequestFactory seems to be tailored to JDO/JPA. Apparently, to enable the Editor framework work, my Recipe class needs a getIngredients() method. How should I implement this in an Objectify based persistence? Thank you, Tobias -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
uibinders - any available graphical editors and/or intellisense for attributes for uibinders?
hi guys, love gwt and it suits large projects nicely. i do have 2 questions regarding uibinders. 1. are there any uibinder graphical editors? for example instead of producing code when using GWT Designer, it can produce uibinder code instead? 2. if not, are there any auto-complete or intellisense for uibinder to show possible attributes in the elements? both eclipse and netbeans are really lacking here. direction needed. regards, Yves -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Injecting EventBus with GIN
Hi all Trying to inject the eventbus into a component but I'm getting the has no default (zero args) constructor. error. Any clues what I'm doing wrong? Very new to GIN, so it might be trivial.. Here is my code: module: public class MyWidgetClientModule extends AbstractGinModule { protected void configure() { bind(EventBus.class).to(SimpleEventBus.class).in(Singleton.class); } } injector: @GinModules(MyWidgetClientModule.class) public interface MyWidgetGinjector extends Ginjector { } and the component I trying to inject: public class I18NLabel extends Label implements ChangeLanguageEventHandler{ private final SimpleEventBus eventBus; private String key; @Inject public I18NLabel(SimpleEventBus eventBus) { this.eventBus = eventBus; } ... ... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: uibinders - any available graphical editors and/or intellisense for attributes for uibinders?
On 1 nov, 15:25, Yves yveshw...@gmail.com wrote: hi guys, love gwt and it suits large projects nicely. i do have 2 questions regarding uibinders. 1. are there any uibinder graphical editors? for example instead of producing code when using GWT Designer, it can produce uibinder code instead? GWT Designer *can* edit and produce UiBinder XML (you have to use GWT 2.1 though; it won't work with GWT 2.0). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Role based Security in GWT: how to implement ?
The server is the only place where security can apply. Very much agreed. But GWT is mainly a client side topic. Authentication based security or roles based security will never be a GWT (client) topic Perhaps pre-2.1, yes, but the new RequestFactory, given it facilitates client-server data access, with the goal of ORM-like minimal/no boilerplate serialization code, will have to deal with authentication based security sooner or later. - Stephen -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Announcing GWT 2.1
On 1 nov, 14:04, Jeff Schwartz jefftschwa...@gmail.com wrote: On Mon, Nov 1, 2010 at 8:22 AM, Thomas Broyer t.bro...@gmail.com wrote: Well, except that Guice for instance (and I believe JavaEE 6 too, as it's based on JSR 330, lead by Bob Lee, creator of Guice) does not use an XML file. Yes however I was specifically speaking to Spring DI. Isn't that somehow due to Spring insisting in everything should be a singleton (and eagerly instantiating them)? I believe so, yes. So the issue is not DI (the pattern), but the Spring framework ;-) (and to answer my remark re. DI that I'd encourage *anyone* to follow, I wouldn't recommend using Spring for DI, unless you want configurability through XML application contexts) My concerns aren't with MVP; from what I have read I think MVP is a very good design pattern I am eager to incorporate it. My concerns are more aligned with the dependency on Roo STS (which I use for Groovy and for Grails development which I really like) to accomplish syncing Views Presenters. I would have preferred a pure Java solution such as relying on the compiler and code refactoring to generate binding code where needed. Jeff -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: 2.1 linker changes
On 1 nov, 05:28, Shawn Brown big.coffee.lo...@gmail.com wrote: Should appName.nocache.js be one of the Artifacts obtained via artifacts.find(EmittedArtifact.class)? I think so (haven't verified, but reading the code doesn't make me think it'd work differently) In 2.04 it was emitted in the link method but in 2.1 it isn't Yes it is, but the SelectionScriptLinker now supports shardability (and all built-in linkers are shardable), so the linker is called once per permutation and then a last time after all permutations have been compiled; and the selection script is only emitted during that last call. (it's not the same link method, but it's still done in the link method) Is this by design? If so, what is the design?!? Have a look at the javadoc for Linker in 2.1, it describes the new design with shardable linkers: http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/core/ext/Linker.html -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: No GWT Developer Plugin for Chrome on OSX
http://code.google.com/p/google-web-toolkit/issues/detail?id=4493 On Mon, Nov 1, 2010 at 8:16 AM, Jeff Schwartz jefftschwa...@gmail.comwrote: I don't think they are running all Macs. I think they have given up Windows but offer a choice of Mac or Linux. Jeff On Sat, Oct 30, 2010 at 10:55 AM, SteveG steven.gent...@gmail.com wrote: See subject. Why is this - I thought Google was running all Macs now - and this product is missing the developer plugin for Chrome? Curious if this is something in progress or should I just continue to use Safari/Firefox ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Jeff -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Wave styled widgets
Wave + Firebug + lots of time will do it On Mon, Nov 1, 2010 at 8:06 AM, gopal bhalala gopalbhal...@gmail.comwrote: Hi to all, Any suggestion please... Best Regards Thanking you, Gopal Dhanjibhai Bhalala On Sun, Oct 24, 2010 at 10:21 PM, Deepak Singh deepaksingh...@gmail.comwrote: I also need to know the frame which has been used in Google wave. Anybody who can give idea about how to create such type of custom components or anything similar available to use. Thanks Deepak On Sun, Oct 24, 2010 at 2:23 PM, gopal bhalala gopalbhal...@gmail.comwrote: Hi to all, Any body knows framework or another stuff which is provides Wave styled widgets Best Regards Thanking you, Gopal Dhanjibhai Bhalala -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Re: CellTree reordering nodes?
There is a bug in CellTreeNodeView where it always assumes new data starts at index 0, which of course is not true if the data is being appended. That explains why it works when you insert at index 0. Another workaround is to populate the ListDataProvider before creating the CellTree (if that is an option for your app). I'm working on a fix that will be in the next GWT release. Thanks, John LaBanca jlaba...@google.com On Mon, Nov 1, 2010 at 5:17 AM, rahul vijay shinde shinderah...@rediffmail.com wrote: These mail are been wrongly marked to me Please avoid. Regards Rahul Shinde On Mon, 01 Nov 2010 13:53:51 +0530 David Pinn wrote I don't know you you've screwed up; but if you have, so have I. I too have been seeing very strange event-handling behaviour, with values being passed to getNodeInfo that are not for the node clicked on. Using your trick with .add(0, Object) made my problem go away too. Right now I'm really happy because it is just that little bit less likely that we are both stupid. maybe. On Nov 1, 3:04 am, decitrig rws...@gmail.com wrote: This problem is a bit tricky to describe; forgive me. I have a cell tree where nodes are added programmatically by doing a getList().add() on a ListDataProvider field. However, I found that using the .add(Object) method would do strange things to the ordering, i.e. the node *rendered* as Item 1 would be passed as *value* Item 2 to getNodeInfo(), and thus it looked like Item 1 got Item 2's children. The really strange thing is that if I do .add(0, Object), then everything works fine. The actual code can be found here: http://bitbucket.org/slide_rule/umd-code-review/src/tip/src/edu/umd/r... I just want to have list operations reflected in the tree, is this a bug or have I just screwed this up somehow? -- rwsims -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline@middle? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How can I create a CellTree of Anchor nodes?
We don't provide an AnchorCell, buts its easy to create one. Just extend AbstractCell and override the render() method to render a hyperlink into the SafeHtmlBuilder. FYI - decitrig is correct. The old Showcase used Hyperlinks. The new Showcase handles selection via the selection model and updates the history token. Thanks, John LaBanca jlaba...@google.com On Sun, Oct 31, 2010 at 1:51 PM, decitrig rws...@gmail.com wrote: On Oct 16, 5:50 pm, Tamer Sezgin tamer.sez...@gmail.com wrote: It's a little complex example, but the left menu of Showcase application is implemented using CellTree and contains Hyperlinks.. http://gwt.google.com/samples/Showcase/Showcase.html I assume after figuring out how it works, it should be easy to replace Hyperlinks with Anchors (if you really need to link to external URLs). I'm interested in the same thing, so I found this post and had a look at the showcase code here: http://code.google.com/p/google-web-toolkit/source/browse/#svn/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client As far as I can tell, it does nothing of the kind. It uses a selection model to fire history change events, not hyperlinks. Were you referring to an older version? On Sat, Oct 16, 2010 at 6:55 AM, Blackberet ramonjsanti...@gmail.com wrote: I have a CellTree, I would like to add Anchor nodes to it. There is no AnchorCell available. What do I need to use in order to implement this functionality? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Fwd: Announcing gwt4air 1.0
Good job -- it looks good, but... Do you think is worth the effort, as long as Apple doesn't support Adobe products on their systems? Also, I know lots of companies that don't allow Flash plugin into their browser, so they go on the JavaScript path. Anyways, as world is so diverse, I think you'll find lots of people interested too -- good luck! Cheers, http://ui-programming.blogspot.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Announcing GWT 2.1
Hi Jeff, GWT 2.1 has no dependency on Roo. It is very much our intent that you should be able to create GWT apps with or without Roo. The latter offers some conveniences for certain types of apps like CRUD apps where you have, say, 40 entities, each with corresponding CRUD screens, and a view, presenter, RequestContext, DAO, etc. for each. In this example, the need for concrete classes per entity ultimately results from the fact that code generation (whether via GWT generator or Roo) is GWT's alternative to reflection. GWT 2.1 does not require much boilerplate and 2.1.1 will require even less. And yes, improved tooling in Google Plugin for Eclipse is definitely on radar. As far as DI is concerned, DI proper is not the cause of cold start latency on App Engine, but rather one particular scenario in which singletons are created eagerly at startup time. I wrote about this on my personal blog ( http://turbomanage.wordpress.com) linked above. This should become much less of an issue shortly (per http://code.google.com/p/googleappengine/issues/detail?id=2456), as it appears the GAE team is close to releasing warmup requests, and reserved instances are on the roadmap. Best, /dmc On Mon, Nov 1, 2010 at 9:04 AM, Jeff Schwartz jefftschwa...@gmail.comwrote: On Mon, Nov 1, 2010 at 8:22 AM, Thomas Broyer t.bro...@gmail.com wrote: Well, except that Guice for instance (and I believe JavaEE 6 too, as it's based on JSR 330, lead by Bob Lee, creator of Guice) does not use an XML file. Yes however I was specifically speaking to Spring DI. Isn't that somehow due to Spring insisting in everything should be a singleton (and eagerly instantiating them)? I believe so, yes. My concerns aren't with MVP; from what I have read I think MVP is a very good design pattern I am eager to incorporate it. My concerns are more aligned with the dependency on Roo STS (which I use for Groovy and for Grails development which I really like) to accomplish syncing Views Presenters. I would have preferred a pure Java solution such as relying on the compiler and code refactoring to generate binding code where needed. Jeff -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkit http://googlewebtoolkit.blogspot.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Test if element has focus
I searched for a method in GWT to test if a widget is focused or not but i couldn't find one. Is there a method in the GWT classes or do i have to create a native js method ? Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: gwt-maven-plugin from Google and Codehaus
I have been trying to learn gwt-maven-plugin and read the documentation from http://mojo.codehaus.org/gwt-maven-plugin/, last published for 1.3-SNAPSHOT. Then, I accidentally found this site for gwt-maven-plugin 2.1-SNAPSHOT at http://people.apache.org/~nicolas/gwt-maven-plugin-2.1/, which seems to be better one ;-) On Wed, Oct 27, 2010 at 6:32 PM, Thomas Broyer t.bro...@gmail.com wrote: On 27 oct, 08:50, hezjing hezj...@gmail.com wrote: Is there any documentation for Google's gwt-maven-plugin? As I said Form the user POV (your, our POV), it works the same as the version from codehaus. In other words, the documentation from codehaus should apply just as well to the Google version (and it did for me). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Hez -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Injecting EventBus with GIN
xworker, I think you want to inject type EventBus rather than SimpleEventBus in your I18NLabel constructor. But just to be clear, which class is reporting the no zero-args constructor err? On Mon, Nov 1, 2010 at 10:31 AM, xworker blomqvist.andr...@gmail.comwrote: Hi all Trying to inject the eventbus into a component but I'm getting the has no default (zero args) constructor. error. Any clues what I'm doing wrong? Very new to GIN, so it might be trivial.. Here is my code: module: public class MyWidgetClientModule extends AbstractGinModule { protected void configure() { bind(EventBus.class).to(SimpleEventBus.class).in(Singleton.class); } } injector: @GinModules(MyWidgetClientModule.class) public interface MyWidgetGinjector extends Ginjector { } and the component I trying to inject: public class I18NLabel extends Label implements ChangeLanguageEventHandler{ private final SimpleEventBus eventBus; private String key; @Inject public I18NLabel(SimpleEventBus eventBus) { this.eventBus = eventBus; } ... ... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkit http://googlewebtoolkit.blogspot.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Announcing GWT 2.1
Thanks, David, for clarifying this. If at any time it may have seemed that I was implying that there was was any static dependency between Roo or Spring DI and GWT let me say that I know there isn't. There is, though, an implied dynamic dependency between Roo, Spring DI MVP if one wants to synchronize their views and presenters during development as per the Expenses example project. I say implied because at this time it appears that the only available option to achieve this is by using Roo but I am sure that there will be additional options coming down the pike:). I am also very pleased to know that there will be improved tooling in the Eclipse plugin. I spend more time using Eclipse than I do with my family lol so it is reassuring to know that this will evolve. Again, thank you. Jeff On Mon, Nov 1, 2010 at 11:56 AM, David Chandler drfibona...@google.comwrote: Hi Jeff, GWT 2.1 has no dependency on Roo. It is very much our intent that you should be able to create GWT apps with or without Roo. The latter offers some conveniences for certain types of apps like CRUD apps where you have, say, 40 entities, each with corresponding CRUD screens, and a view, presenter, RequestContext, DAO, etc. for each. In this example, the need for concrete classes per entity ultimately results from the fact that code generation (whether via GWT generator or Roo) is GWT's alternative to reflection. GWT 2.1 does not require much boilerplate and 2.1.1 will require even less. And yes, improved tooling in Google Plugin for Eclipse is definitely on radar. As far as DI is concerned, DI proper is not the cause of cold start latency on App Engine, but rather one particular scenario in which singletons are created eagerly at startup time. I wrote about this on my personal blog ( http://turbomanage.wordpress.com) linked above. This should become much less of an issue shortly (per http://code.google.com/p/googleappengine/issues/detail?id=2456), as it appears the GAE team is close to releasing warmup requests, and reserved instances are on the roadmap. Best, /dmc On Mon, Nov 1, 2010 at 9:04 AM, Jeff Schwartz jefftschwa...@gmail.comwrote: On Mon, Nov 1, 2010 at 8:22 AM, Thomas Broyer t.bro...@gmail.com wrote: Well, except that Guice for instance (and I believe JavaEE 6 too, as it's based on JSR 330, lead by Bob Lee, creator of Guice) does not use an XML file. Yes however I was specifically speaking to Spring DI. Isn't that somehow due to Spring insisting in everything should be a singleton (and eagerly instantiating them)? I believe so, yes. My concerns aren't with MVP; from what I have read I think MVP is a very good design pattern I am eager to incorporate it. My concerns are more aligned with the dependency on Roo STS (which I use for Groovy and for Grails development which I really like) to accomplish syncing Views Presenters. I would have preferred a pure Java solution such as relying on the compiler and code refactoring to generate binding code where needed. Jeff -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkit http://googlewebtoolkit.blogspot.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Jeff -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
java.lang.NoClassDefFoundError: com/google/gdata/util/ServiceException
Hi All, I'm new to this, and I'm trying to use my Manager class in a GWT module. I'm using Eclipse 3.6 with the latest GWT plugin and generating a project from it. In my GreetingServiceImpl I have a method, public String getDataFeed() throws IllegalArgumentException, that tries to instantiate my DataFeedManager class through a default constructor. That default constructor is currently doing nothing at all -- it's just there for my testing. But when I'm attempting to do DataFeedManager dfm = new DataFeedManager() I'm getting the following: Service method 'public abstract java.lang.String com.eyes.client.GreetingService.getDataFeed() throws java.lang.IllegalArgumentException' threw an unexpected exception: java.lang.NoClassDefFoundError: com/google/gdata/util/ServiceException What am I doing wrong? Researching this I saw that people were helped by adding google-collect-1.0-rc1.jar to the build path and I added it but I still get the above error. Any help will be greatly appreciated. Eyal -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Reference to undefined variable gwt_remote_ui_server_port
I considered that some of the versions were somewhat older. So I went ahead and upgraded a few things. Downloaded a new Java update from apple so now I'm using 1.5.0_26 Upgraded GWT to 2.1 Upgraded Eclipse to Helios version 3.6 Downloaded a new GWT browser plugin for safari - New GWT plugin for eclipse And I no longer see the error message. I'm able to run the app. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Communication with the Server + MVP
I saw the new way of using the MVP on the 'http://code.google.com/intl/pt-BR/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html', but I have a question, how do I make a communication with the server? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Test if element has focus
There isn't such a method in GWT. As far as I know, only IE has a method to get the currently focused element (document.activeElement). For other browsers, you have to use focus/blur handlers to keep track (although maybe you can do it at the top level for Firefox/Chrome? Thanks, John LaBanca jlaba...@google.com On Mon, Nov 1, 2010 at 12:05 PM, Ice13ill andrei.fifi...@gmail.com wrote: I searched for a method in GWT to test if a widget is focused or not but i couldn't find one. Is there a method in the GWT classes or do i have to create a native js method ? Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Wave styled widgets
Hi Gal, Thanks for reply Any demo example for this Best Regards Thanking you, Gopal Dhanjibhai Bhalala On Mon, Nov 1, 2010 at 8:52 PM, Gal Dolber gal.dol...@gmail.com wrote: Wave + Firebug + lots of time will do it On Mon, Nov 1, 2010 at 8:06 AM, gopal bhalala gopalbhal...@gmail.comwrote: Hi to all, Any suggestion please... Best Regards Thanking you, Gopal Dhanjibhai Bhalala On Sun, Oct 24, 2010 at 10:21 PM, Deepak Singh deepaksingh...@gmail.comwrote: I also need to know the frame which has been used in Google wave. Anybody who can give idea about how to create such type of custom components or anything similar available to use. Thanks Deepak On Sun, Oct 24, 2010 at 2:23 PM, gopal bhalala gopalbhal...@gmail.comwrote: Hi to all, Any body knows framework or another stuff which is provides Wave styled widgets Best Regards Thanking you, Gopal Dhanjibhai Bhalala -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: java.lang.NoClassDefFoundError: com/google/gdata/util/ServiceException
OK, I narrowed it down a bit. My DataFeedManager has some Analytics code in it. When I removed it, everything was fine. So I guess this is an issue of integrating GWT and Analytics? How do I get my GWT to feel comfortable with Analytics code in the business layer? Thanks, Eyal On Nov 1, 6:31 pm, Eyal twoworldsf...@gmail.com wrote: Hi All, I'm new to this, and I'm trying to use my Manager class in a GWT module. I'm using Eclipse 3.6 with the latest GWT plugin and generating a project from it. In my GreetingServiceImpl I have a method, public String getDataFeed() throws IllegalArgumentException, that tries to instantiate my DataFeedManager class through a default constructor. That default constructor is currently doing nothing at all -- it's just there for my testing. But when I'm attempting to do DataFeedManager dfm = new DataFeedManager() I'm getting the following: Service method 'public abstract java.lang.String com.eyes.client.GreetingService.getDataFeed() throws java.lang.IllegalArgumentException' threw an unexpected exception: java.lang.NoClassDefFoundError: com/google/gdata/util/ServiceException What am I doing wrong? Researching this I saw that people were helped by adding google-collect-1.0-rc1.jar to the build path and I added it but I still get the above error. Any help will be greatly appreciated. Eyal -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Announcing GWT 2.1
Hey Jeff, Can you elaborate on what you mean by syncing views and presenters during development? Are you saying there's too much boilerplate such that Roo is the only practical alternative? If so, which boilerplate classes most concern you? We welcome discussion on ways to simplify. We definitely aim to make place mapping easier. Thanks, /dmc On Mon, Nov 1, 2010 at 12:28 PM, Jeff Schwartz jefftschwa...@gmail.com wrote: Thanks, David, for clarifying this. If at any time it may have seemed that I was implying that there was was any static dependency between Roo or Spring DI and GWT let me say that I know there isn't. There is, though, an implied dynamic dependency between Roo, Spring DI MVP if one wants to synchronize their views and presenters during development as per the Expenses example project. I say implied because at this time it appears that the only available option to achieve this is by using Roo but I am sure that there will be additional options coming down the pike:). I am also very pleased to know that there will be improved tooling in the Eclipse plugin. I spend more time using Eclipse than I do with my family lol so it is reassuring to know that this will evolve. Again, thank you. Jeff On Mon, Nov 1, 2010 at 11:56 AM, David Chandler drfibona...@google.com wrote: Hi Jeff, GWT 2.1 has no dependency on Roo. It is very much our intent that you should be able to create GWT apps with or without Roo. The latter offers some conveniences for certain types of apps like CRUD apps where you have, say, 40 entities, each with corresponding CRUD screens, and a view, presenter, RequestContext, DAO, etc. for each. In this example, the need for concrete classes per entity ultimately results from the fact that code generation (whether via GWT generator or Roo) is GWT's alternative to reflection. GWT 2.1 does not require much boilerplate and 2.1.1 will require even less. And yes, improved tooling in Google Plugin for Eclipse is definitely on radar. As far as DI is concerned, DI proper is not the cause of cold start latency on App Engine, but rather one particular scenario in which singletons are created eagerly at startup time. I wrote about this on my personal blog (http://turbomanage.wordpress.com) linked above. This should become much less of an issue shortly (per http://code.google.com/p/googleappengine/issues/detail?id=2456), as it appears the GAE team is close to releasing warmup requests, and reserved instances are on the roadmap. Best, /dmc On Mon, Nov 1, 2010 at 9:04 AM, Jeff Schwartz jefftschwa...@gmail.com wrote: On Mon, Nov 1, 2010 at 8:22 AM, Thomas Broyer t.bro...@gmail.com wrote: Well, except that Guice for instance (and I believe JavaEE 6 too, as it's based on JSR 330, lead by Bob Lee, creator of Guice) does not use an XML file. Yes however I was specifically speaking to Spring DI. Isn't that somehow due to Spring insisting in everything should be a singleton (and eagerly instantiating them)? I believe so, yes. My concerns aren't with MVP; from what I have read I think MVP is a very good design pattern I am eager to incorporate it. My concerns are more aligned with the dependency on Roo STS (which I use for Groovy and for Grails development which I really like) to accomplish syncing Views Presenters. I would have preferred a pure Java solution such as relying on the compiler and code refactoring to generate binding code where needed. Jeff -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkit http://googlewebtoolkit.blogspot.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Jeff -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkit http://googlewebtoolkit.blogspot.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
Re: Communication with the Server + MVP
Hi Bruno, MVP and server communication are completely independent of each other. You can use GWT-RPC or the new RequestFactory to communicate with the server. HTH, /dmc On Mon, Nov 1, 2010 at 12:54 PM, Bruno Santos bruegosan...@gmail.com wrote: I saw the new way of using the MVP on the 'http://code.google.com/intl/pt-BR/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html', but I have a question, how do I make a communication with the server? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkit http://googlewebtoolkit.blogspot.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Are there any examples how to use @UiChild ?
I can't find much documentation of the use of @UiChild. Does anyone have any examples? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
change parent of a node in a CellTree
Hi! did someone already modify successful a celltree's structure programmatically? I want to change the parent of a node programmatically and see the changes displayed on the screen. What I do now is the following: • remove the considered node's value from the old parent's ListDataProvider using ListDataProvider#getList()#remove (). • add the considered node's value to the new parent's ListDataProvider using ListDataProvider#getList()#add() • call ListDataProvider#refresh on both old and new parent ListDataProviders. I expected to see the old node move from the old to the new parent. But what occurs instead, is that the node I wanted to move just disappear from the tree. What can be the problem? And I would also like to know, if there is a way to tell to a CellTree to redraw itself because the backed data have changed. Thanks for any help. Rodrigue -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Good GWT development tools
I ran into this recently and found that if I added the following before the set-property element, I did not receive the error: extend-property name=locale values=en/extend-property -= Gregg =- On Oct 11, 1:15 pm, Greg Dougherty dougherty.greg...@mayo.edu wrote: Reduce the number of compiled locales by adding this line to your *.gwt.xml file set-property name=locale value=en/ So now only english locale is compiled [ERROR]The value en was not previously defined. [ERROR] Line 23: Unexpected exception while processing element 'set- property' So, what else do I need to add? Greg On Oct 11, 8:20 am, Georg Sendt georg.se...@googlemail.com wrote: Do you really need to compile your project every time you do a change? Does hosted mode not work for you? You can reduce the compilation time by reducing the list of supported browsers: add set-property name=user.agent value=gecko/ to your *.gwt.xml file to only support Firefox during your development. For integration tests you can remove the line and test your application with all browsers. Reduce the number of compiled locales by adding this line to your *.gwt.xml file set-property name=locale value=en/ So now only english locale is compiled Regards, Georg On 11 Okt., 11:36, lalit lalit.bh...@gmail.com wrote: Our project with time has become bigger. We are finding that the change-compile-run cycle is becoming bigger and bigger, especially if we change the server side code. We are using Spring, Hibernate and Gilead (for taking Entities to the front layer). Do any one knows about better tools or processes where we can reduce the change-compile-run cycle. thanks in advance, -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Communication with the Server + MVP
Thanks for the reply David, but what I want to know is how to pass values from the screen to the server and the server to the screen in the old way of MVP in the following page 'http://code.google.com/intl/pt-BR/webtoolkit/articles/mvp-architecture-2.html' shows an example of how to communicate, but not in the new mode. What I wanted was an example of how to pass values from the screen to the server. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: List editing with Editor/RequestFactory + GAE/Objectify
Thanks David, I now used the same pattern for retrieving the collection and implemented my getIngredients() method in a similar way. However I am still stuck on how to add an element to the list, so that the Editor framework notices it and appends a table row. On my page I basically have a CellTable that's wrapped with a HasDataEditor, and an Add elem button, which is supposed to add new (blank) entries to the CellTable. I found that the HasDataEditor uses a ListEditorWrapper. This wrapper's purpose seems to synchronize the data list with the editor display, in my case the CellTable. But how to I add elements to the data list? I tried using the RequestFactory to add ingredients on the server, but this does not trigger any refresh on the Editor, the new ingredients do not show up until the next page refresh. Ok, that's kinda obvious since the RequestFactory can't know that this changed the Recipe and therefore the RecipeProxy needs an update. So my next try was to get a new valid IngredientProxy object as a response from appending a new Ingredient in the server and adding it to the RecipeProxy like this recipeProxy.getIngredients().add(addedIngredient); No exceptions, but also there does not seem to be any magic that would cause a refresh of the editors in this case either. I finally had some success by using the RequestContext to create a new ingredient on the server and directly adding the returned proxy to the observed ListEditorWrapper like this: requests.recipeRequest().addIngredient().using(recipe) .fire(new ReceiverIngredientProxy() { @Override public void onSuccess(IngredientProxy response) { view.ingredientsEditor().getList().add(response); } }); I doubt that this is the way to go, since it introduces some tight coupling and also, I cannot edit list entries that I created this way, it gets me a java.lang.IllegalStateException: The AutoBean has been frozen. I guess I must make the new proxy somehow part of the Request that the Driver works on? I guess I am not really getting how the Editor-framework works. I've worked with a couple of databinding solutions before, mostly JFace, but I am stuck on this one. I find it particularly hard to figure things out because of the rebinding that's going on. Thanks in advance, Tobias On Nov 1, 5:26 pm, David Chandler drfibona...@google.com wrote: Hi Tobias, The RequestFactory sample apps in GWT 2.1 use JDO and JPA because these are the Java persistence APIs offered by App Engine; however, RequestFactory has no dependency on them, and you can use Objectify instead. RequestFactory won't be able to serialize the Objectify Key object so you should expose only convenience methods like getParent() below that know how to map the key to the actual entity. Here's an example that exposes only RequestFactory-safe methods: @ProxyFor(ListItem.class) public interface ListItemProxy extends EntityProxy { Long getId(); String getItemText(); void setItemText(String itemText); void setParent(ItemListProxy editList); ItemListProxy getParent(); } @Entity public class ListItem { @Id private Long id; private String itemText; @Version private Integer version; // Dummy field due to JsonRequestProcessor:1543 transient private ItemList parent; // Real parent key used by Objectify @Parent private KeyItemList parentKey; public ListItem() { // No-arg constructor required } public void setParent(ItemList parent) { this.parentKey = new ItemListDao().key(parent); } public ItemList getParent() { try { return new ItemListDao().get(parentKey); } catch (EntityNotFoundException e) { e.printStackTrace(); } return null; } } HTH, /dmc On Mon, Nov 1, 2010 at 10:14 AM, Tobias thaberm...@gmail.com wrote: Hi, to get accustomed to GAE as well as GWT 2.1, I am working on a pet project for managing Recipes. A Recipe has multiple Ingredients, which I want to display in a CellTable, each Ingredient having (editable) columns for Amount and Type. New Ingredient lines in the table can be added with a button, existing ingredients can be removed and reordered by buttons (or DnD later). So now I am trying to figure out how to wire this up with the Editor framework and RequestFactory on the Client-side and the GAE datastore and Objectify (or JDO, if that makes it any easier). I created some dummy Recipe object with a getIngredients()-list with some dummy Ingredients and managed to get the CellTable populated with these by the Editor driver automatically. What I do not understand however is how far this databinding goes? How would I
composite headers in celltable
Hey, Has anyone done composite headers with the new CellTable? I'd like to use CompositeCell, but I'm having a hard time turning my list of individual Headers into a ListHasCell specifically because Header's valueUpdater is private. If you look at HasCell, it exposes the it's FieldUpdater for the composite cell to grab in it's on onBrowserEvent handling. I'd like to make a fake FieldUpdater for a header, but I cannot access it's valueUpdater. (My use case is having a header with text + a checkbox. I can use CheckboxCell semi-successfully, but without being able to provide CompositeCell with a dummy FieldUpdater, I'm unable to react to any changes to the checkbox.) Thanks, Stephen -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Sporadic ClassCastException
Have you tried setting an uncaught exception handler? You can use gwt-log (http://code.google.com/p/gwt-log/) to do this: public void onModuleLoad() { Log.setUncaughtExceptionHandler(); DeferredCommand.addCommand(new Command() { public void execute() { onModuleLoad2(); } }); } private void onModuleLoad2() { // Your client code goes here } Or, you can use this rudimentary approach: public void onModuleLoad() { // set uncaught exception handler GWT.setUncaughtExceptionHandler(new GWT.UncaughtExceptionHandler() { public void onUncaughtException(Throwable throwable) { String text = Uncaught exception: ; while (throwable != null) { StackTraceElement[] stackTraceElements = throwable.getStackTrace(); text += throwable.toString() + \n; for (int i = 0; i stackTraceElements.length; i++) { text += at + stackTraceElements[i] + \n; } throwable = throwable.getCause(); if (throwable != null) { text += Caused by: ; } } DialogBox dialogBox = new DialogBox(true, false); DOM.setStyleAttribute(dialogBox.getElement(), backgroundColor, #ABCDEF); System.err.print(text); text = text.replaceAll( , nbsp;); dialogBox.setHTML(pre + text + /pre); dialogBox.center(); } }); // use a deferred command so that the handler catches onModuleLoad2() exceptions DeferredCommand.addCommand(new Command() { public void execute() { onModuleLoad2(); } }); } private void onModuleLoad2() { // . } Fred On Mon, Oct 25, 2010 at 2:14 AM, Carl c...@rahmstrom.com wrote: Hi, I sporadically receive the exception shown below or simular. This is in development mode. I'm not sure about production mode. Is there a way to catch all exceptions in GWT? I don't see any of my lines in the exception and wonder what I can do to avoid this in the future. I use GWT 2.0.4, OS X 10.6.4 and Safari 5.0.2. java.lang.ClassCastException: null at java.lang.Class.cast(Class.java:2990) at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:166) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:57) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java: 1714) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 165) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 264) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java: 91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188) at sun.reflect.GeneratedMethodAccessor95.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java: 1669) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 401) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 222) at java.lang.Thread.run(Thread.java:680) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Role based Security in GWT: how to implement ?
Hi Zixzigma, I'm facing exactly the same problem like you with the difference, that the solution you found doesn't work by me. That is why, I would like to know if you you call the methods #refresh() or #flush() after you added the new element to the DataProvider. Thanks for your answer. Rodrigue On Oct 30, 10:35 am, zixzigma zixzi...@gmail.com wrote: Hello everyone, I have some questions regarding implementing security in GWT. It's a typical use case: let's say in your app, users can have different roles, and you want to show only the relevant part of the UI, based on their role. and I am talking about more than 3 roles. eg:(Customer, BranchManager, Teller, CEO, System Admin) (after all GWT is for larger apps, right ? ) on the back-end, i am planning to use Spring, and i'm going to use Spring Security, for authentication, fine-grained authorization, (method level, ACL), it is a very mature framework and annotation based. however, when it comes to the front-end UI, I don't know what is the recommended practice to incorporate role-based security in MVP. (i don't want the security checks get scattered across all methods on the client, bloated code, if statements everywhere, security is a cross- cutting concern, right? should i put it in the Activity/Presenter ?) I see GWT 2.1 release addresses security concerns, for cross-site scripting, and introducing SafeHtml. but nothing related to authorization. I would appreciate your insights and any feedback from google team, perhaps a tutorial addressing this aspect of application security is really needed ! is it possible for GWT team to introduce annotation-based support for addressing security ? does it make sense at all, or i'm missing something. what have been your experiences in implementing security in GWT ? Thank You -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: change parent of a node in a CellTree
There is a bug associated with inserting a value into the tree, but calling refresh() on the ListDataProvider should workaround the issue. Do you have any more info that might help debug it? And I would also like to know, if there is a way to tell to a CellTree to redraw itself because the backed data have changed. Not currently. You have to call refresh() on all the ListDataProviders. Thanks, John LaBanca jlaba...@google.com On Mon, Nov 1, 2010 at 12:46 PM, Rodrigue rlag...@googlemail.com wrote: Hi! did someone already modify successful a celltree's structure programmatically? I want to change the parent of a node programmatically and see the changes displayed on the screen. What I do now is the following: • remove the considered node's value from the old parent's ListDataProvider using ListDataProvider#getList()#remove (). • add the considered node's value to the new parent's ListDataProvider using ListDataProvider#getList()#add() • call ListDataProvider#refresh on both old and new parent ListDataProviders. I expected to see the old node move from the old to the new parent. But what occurs instead, is that the node I wanted to move just disappear from the tree. What can be the problem? And I would also like to know, if there is a way to tell to a CellTree to redraw itself because the backed data have changed. Thanks for any help. Rodrigue -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Image Update Memory Leak
Hello, I have written a simple application which fills a FlexTable with a set of images. There is a timer which updates the URL of each image every second. The URL points to a Servlet which in turn generates a random PNG image on its doGet() method and writes it to the response output stream. The servlet sets the Cache-Control header to No-Cache. When I run the webapp in IE7 / 8 the memory gradually increases. Leaving it overnight can get it close to 1Gb. Here is the client code: # public class LeakyApp implements EntryPoint { public static final String IMAGE_SERVLET_NAME = imageServlet; public void onModuleLoad() { leak(); } private void leak() { UrlBuilder urlBuilder = createUrlBuilder(); final FlexTable table = new FlexTable(); final ListImage lstImages = createAndAddImages(5,10 ,table ); final String strURL = urlBuilder.buildString(); final Timer timer = new Timer(){ int nCounter = 0; @Override public void run() { for (Image img : lstImages) { img.setUrl( strURL + ? + nCounter++) ; } } }; final Button btnStartLeak = new Button(Leak); btnStartLeak.addClickHandler( new ClickHandler() { @Override public void onClick(ClickEvent event) { RootPanel.get().remove( btnStartLeak ); RootPanel.get().add( table ); timer.scheduleRepeating( 1000 ); } }); RootPanel.get().add( btnStartLeak ); } private ListImage createAndAddImages(int rowCount, int colCount, FlexTable table) { ListImage lstImages = new ArrayListImage(); for(int row = 0; rowrowCount; row++) { for(int col = 0; colcolCount; col++) { Image image = new Image(); lstImages.add( image ); table.setWidget(row, col, image); } } return lstImages; } private UrlBuilder createUrlBuilder() { UrlBuilder urlBuilder = null; if( GWT.isScript() ) { urlBuilder = new UrlBuilder(); urlBuilder.setHost( Window.Location.getHost() ); urlBuilder.setPath( Window.Location.getPath() + IMAGE_SERVLET_NAME ); } else { urlBuilder = Window.Location.createUrlBuilder(); urlBuilder.setPath( IMAGE_SERVLET_NAME ); } return urlBuilder; } } Here is the servlet code: public class ImageServlet extends HttpServlet { private int nCounter = 0; private Font font = new Font(Tahoma, Font.BOLD, 10); private static Color getRandomColor() { int r = (int)(Math.random()* 255); int g = (int)(Math.random()* 255); int b = (int)(Math.random()* 255); return new Color(r,g,b); } @Override protected void doGet ( HttpServletRequest request, HttpServletResponse response ) throws IOException { OutputStream out = response.getOutputStream(); response.setContentType(image/png); response.addHeader(Pragma, no-cache); response.addHeader(Cache-Control, no-cache); ImageIO.write( generateRandomImage(), png, out ); out.close(); } private BufferedImage generateRandomImage() { return generateRandomImage(80, 80); } private BufferedImage generateRandomImage(int width, int height) { BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB); Graphics2D g2d = image.createGraphics(); g2d.setFont( font ); g2d.setColor( getRandomColor() ); g2d.fillRect(0, 0, width, height); g2d.setColor( Color.WHITE ); g2d.drawString( + nCounter, 20, 20); System.err.println( img + nCounter ); nCounter++; if( nCounter == Integer.MAX_VALUE ) nCounter = 0; return image; } } Is there a programming error, or is it the nature of what the
RE: change parent of a node in a CellTree
Hi John, I already call refresh after any data changes. Rodrigue From: google-web-toolkit@googlegroups.com [mailto:google-web-tool...@googlegroups.com] On Behalf Of John LaBanca Sent: Monday, November 01, 2010 6:58 PM To: google-web-toolkit@googlegroups.com Subject: Re: change parent of a node in a CellTree There is a bug associated with inserting a value into the tree, but calling refresh() on the ListDataProvider should workaround the issue. Do you have any more info that might help debug it? And I would also like to know, if there is a way to tell to a CellTree to redraw itself because the backed data have changed. Not currently. You have to call refresh() on all the ListDataProviders. Thanks, John LaBanca jlaba...@google.com On Mon, Nov 1, 2010 at 12:46 PM, Rodrigue rlag...@googlemail.com wrote: Hi! did someone already modify successful a celltree's structure programmatically? I want to change the parent of a node programmatically and see the changes displayed on the screen. What I do now is the following: . remove the considered node's value from the old parent's ListDataProvider using ListDataProvider#getList()#remove (). . add the considered node's value to the new parent's ListDataProvider using ListDataProvider#getList()#add() . call ListDataProvider#refresh on both old and new parent ListDataProviders. I expected to see the old node move from the old to the new parent. But what occurs instead, is that the node I wanted to move just disappear from the tree. What can be the problem? And I would also like to know, if there is a way to tell to a CellTree to redraw itself because the backed data have changed. Thanks for any help. Rodrigue -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com mailto:google-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
RE: change parent of a node in a CellTree
Hi John! here the infos you need for debugging have been send directly to your mailbox. Rodrigue From: google-web-toolkit@googlegroups.com [mailto:google-web-tool...@googlegroups.com] On Behalf Of John LaBanca Sent: Monday, November 01, 2010 6:58 PM To: google-web-toolkit@googlegroups.com Subject: Re: change parent of a node in a CellTree There is a bug associated with inserting a value into the tree, but calling refresh() on the ListDataProvider should workaround the issue. Do you have any more info that might help debug it? And I would also like to know, if there is a way to tell to a CellTree to redraw itself because the backed data have changed. Not currently. You have to call refresh() on all the ListDataProviders. Thanks, John LaBanca jlaba...@google.com On Mon, Nov 1, 2010 at 12:46 PM, Rodrigue rlag...@googlemail.com wrote: Hi! did someone already modify successful a celltree's structure programmatically? I want to change the parent of a node programmatically and see the changes displayed on the screen. What I do now is the following: . remove the considered node's value from the old parent's ListDataProvider using ListDataProvider#getList()#remove (). . add the considered node's value to the new parent's ListDataProvider using ListDataProvider#getList()#add() . call ListDataProvider#refresh on both old and new parent ListDataProviders. I expected to see the old node move from the old to the new parent. But what occurs instead, is that the node I wanted to move just disappear from the tree. What can be the problem? And I would also like to know, if there is a way to tell to a CellTree to redraw itself because the backed data have changed. Thanks for any help. Rodrigue -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com mailto:google-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: turn off auto-completion suggestion box on uibinder ui.xml in eclipse
We put a fix into the final version of GPE 1.4.0 to resolve this issue. If you wouldn't mind, can you grab the latest version, and try re-enabling auto-completions to see if things have sped up for you? On Thu, Oct 21, 2010 at 2:00 AM, Yau kvle...@gmail.com wrote: I found it. Preferences-XML-Editor-Automatically make suggestions. On Oct 21, 1:16 pm, Kevin (Yau) Leung kvle...@gmail.com wrote: I wonder if it's only me having this problem. Whenever I edit the ui.xml in eclipse, the auto-completion box comes up and it's extraordinary slow. Is there any method to turn it off? Kevin -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Communication with the Server + MVP
Bruno, I'm not sure I understand. You can use an RPC service just as in the article you linked. We're working on updating the Contacts sample app, but in the mean time, I think you can just make ContactsPresenter extend AbstractActivity and wire it as shown in http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html Does that help? /dmc On Mon, Nov 1, 2010 at 1:31 PM, Bruno Santos bruegosan...@gmail.com wrote: Thanks for the reply David, but what I want to know is how to pass values from the screen to the server and the server to the screen in the old way of MVP in the following page 'http://code.google.com/intl/pt-BR/webtoolkit/articles/mvp-architecture-2.html' shows an example of how to communicate, but not in the new mode. What I wanted was an example of how to pass values from the screen to the server. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkit http://googlewebtoolkit.blogspot.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Serializing Enum with Marker Interface
If I move the interface into the Enum's package, the GWT compiler appears happy. Opened an issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=5520 Thanks! Mike On Oct 30, 2:59 am, Didier DURAND durand.did...@gmail.com wrote: Hi Mike, Probably an issue in the location of the various classes: can you tell us the packages that they belong to ? didier On Oct 29, 11:23 pm, Mike mikem2...@gmail.com wrote: I tried changing the line to: public enum Color implements IsConfigurable, Serializable and I'm still getting the same compile error. Thanks! Mike On Oct 29, 3:57 pm, Patrick Tucker tucker...@gmail.com wrote: The enum itself can implement Serializable On Oct 29, 2:41 pm, Mike mikem2...@gmail.com wrote: How can I make an enum that implements a marker interface serializable in GWT 2.0? The below example: public interface IsConfigurable { } public enum Color implements IsConfigurable { BLUE, RED; } Results in the following: [java] Compiling module com.colors [java] Validating newly compiled units [java] [ERROR] Errors in 'file:...Color.java' [java] [ERROR] Line 7: The import ...IsConfigurable cannot be resolved [java] [ERROR] Line 12: IsConfigurable cannot be resolved to a type [java] Compiling 6 permutations ... Thanks! Mike -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Injecting EventBus with GIN
1.) You should use EventBus instead of SimpleEventBus in your I18NLabel. 2.) Is your MyWidgetGinjector really empty? If so, there should be at least one method that gets called during app initialization (onModuleLoad). So for example: @GinModules(MyWidgetClientModule.class) public interface MyWidgetGinjector extends Ginjector { public MyAppMainPanel getApplicationPanel(); } Also GIN will only inject the EventBus to your I18NLabel if the I18NLabel itself has been injected into some other class that is already managed by GIN (for example into MyAppMainPanel). If you do so, then you may want to add a bind(I18NLabel.class) to your GinModule. Currently your GinModule does not know I18NLabel and when you try to inject that label into another class, then GIN will try to create it with GWT.create(I18NLabel.class). But this will require a no- arg default constructor in your I18NLabel...I guess thats why you got the exception. I hope that helps. On 1 Nov., 15:31, xworker blomqvist.andr...@gmail.com wrote: Hi all Trying to inject the eventbus into a component but I'm getting the has no default (zero args) constructor. error. Any clues what I'm doing wrong? Very new to GIN, so it might be trivial.. Here is my code: module: public class MyWidgetClientModule extends AbstractGinModule { protected void configure() { bind(EventBus.class).to(SimpleEventBus.class).in(Singleton.class); } } injector: @GinModules(MyWidgetClientModule.class) public interface MyWidgetGinjector extends Ginjector { } and the component I trying to inject: public class I18NLabel extends Label implements ChangeLanguageEventHandler{ private final SimpleEventBus eventBus; private String key; @Inject public I18NLabel(SimpleEventBus eventBus) { this.eventBus = eventBus; } ... ... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Announcing gwt4air 1.0
How would it be different from using say Mozilla Prism? Prism does not require anything special. Rakesh Wagh On Oct 31, 4:30 pm, nino ekambi jazzmatad...@googlemail.com wrote: Hello community, It s been a long way but i m proud to annouce the release of Gwt4Air 1.0 Gwt4Air will give you the the ability to turn your GWT apps in to desktop apps using adobe air. You can download the jar herehttp://code.google.com/p/gwt4air/. The first release is compatible with gxt 2.2, gwt 2.0 and adobe air 2. It includes the following features: 1) Access to the core AIR APi from GWT, you basically can do anything you would do in actionscript or javascript. 2) An adapter to make GXT(Ext-GWT) works inside the air application sandbox 3) A pdf module to read and write pdf files. 4) A google maps module, so you can produce maps even when your web client is offline 5) An adapter to male RPC and RequestBuilder calls possible with AIR. 6) A sample app with source code that shows some examples. One of the example is how you can export an GXT chart to pdf using gwt4air. The next releases will add more and more features(check out the roadmap) To get started you can check out the wiki page. I hope you guys are going to like this and provide some good feedbacks. For any question please feel free to contact me. best regards, Alain -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Role based Security in GWT: how to implement ?
The only thing we do is some cross-site scripting prevention and hiding user interface components if a user does not have the permission for that component. So for example we only show the menu items a user in a given role can access. Other menu items wont be added to the menu widget. This is done in our presenters. Each time a presenter gets active it asks the server for the permissions the current user have. But you can never trust the client and we have to make sure that a user with a given role will get an exception if he asks the server for information he has no permission for because an attacker can ask for such information even if he does not have the corresponding menu item in the client UI. So each time we got a server request, the server retrieves the user account with its assigned roles and permissions and checks them against a set of server-side defined permissions that are required to do the request. If they don't match we throw an exception. On 30 Okt., 10:35, zixzigma zixzi...@gmail.com wrote: Hello everyone, I have some questions regarding implementing security in GWT. It's a typical use case: let's say in your app, users can have different roles, and you want to show only the relevant part of the UI, based on their role. and I am talking about more than 3 roles. eg:(Customer, BranchManager, Teller, CEO, System Admin) (after all GWT is for larger apps, right ? ) on the back-end, i am planning to use Spring, and i'm going to use Spring Security, for authentication, fine-grained authorization, (method level, ACL), it is a very mature framework and annotation based. however, when it comes to the front-end UI, I don't know what is the recommended practice to incorporate role-based security in MVP. (i don't want the security checks get scattered across all methods on the client, bloated code, if statements everywhere, security is a cross- cutting concern, right? should i put it in the Activity/Presenter ?) I see GWT 2.1 release addresses security concerns, for cross-site scripting, and introducing SafeHtml. but nothing related to authorization. I would appreciate your insights and any feedback from google team, perhaps a tutorial addressing this aspect of application security is really needed ! is it possible for GWT team to introduce annotation-based support for addressing security ? does it make sense at all, or i'm missing something. what have been your experiences in implementing security in GWT ? Thank You -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT module 'applicationScaffold' may need to be (re)compiled -- Spring Roo
I've just installed STS 2.5.0 with spring roo 1.1.0 on an Ubuntu 9.10 machine I've installed the gwt and datanucleus extensions. I ran the expenses.roo script and it ran smoothly. When i try to create a new spring roo project with persistence setup --provider DATANUCLEUS --database GOOGLE_APP_ENGINE The roo shell doesn't give any errors but when I debug as webapplication and open it in firefox/chrome, I get the following popup: GWT module 'applicationScaffold' may need to be (re)compiled I've tried to do update maven dependencies and google-gwt compile but that doesn't help I've tried this on another machine running ubuntu 10.04 and the same problem occurs so it is reproducible. Can anyone help me fix this? Thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to use i18n plural forms with UiBinder?
The plural forms feature is pretty nice. But I'm struggling to find an example on how to use it with the UiBinder. Any pointers / examples would be nice. Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT module 'applicationScaffold' may need to be (re)compiled -- Spring Roo
What is the URL that you're entering into your browser (after the Debug As) step? On Mon, Nov 1, 2010 at 3:18 PM, hifimusic akshat.k...@gmail.com wrote: I've just installed STS 2.5.0 with spring roo 1.1.0 on an Ubuntu 9.10 machine I've installed the gwt and datanucleus extensions. I ran the expenses.roo script and it ran smoothly. When i try to create a new spring roo project with persistence setup --provider DATANUCLEUS --database GOOGLE_APP_ENGINE The roo shell doesn't give any errors but when I debug as webapplication and open it in firefox/chrome, I get the following popup: GWT module 'applicationScaffold' may need to be (re)compiled I've tried to do update maven dependencies and google-gwt compile but that doesn't help I've tried this on another machine running ubuntu 10.04 and the same problem occurs so it is reproducible. Can anyone help me fix this? Thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Announcing gwt4air 1.0
I think imho that air provides more functionality then prism when it comes to desktop integration. AIR provides some desktop-like functionality like local file access, SQL storage, communication with other programms on the users machine etc. As a result, AIR supports web apps that can be used offline and Prism does not Prism resembles bookmarks more than anything else. Except that the bookmark is an icon on your computer and when you click on it, the browser doesn’t have any toolbars. For me Prism provides nothing more than what any web browser provides. And like i said i m not trying to convince people to use AIR instead of any other runtime out there.It comes down to your requirements. We had customers who wanted to be able to work offline, generate pdf or excel even when offline, export/import files to/from others tools. Those are the things we could not do with Prism. Silverlight may have been an option but we allready had a huge code base in GWT and were not willing to rewrite everything. We decided to go with AIR and it was good for us. And for those out there wo hav the same requirements gwt4air can be a good help. Greets, Alain 2010/11/1 rakesh wagh rake...@gmail.com How would it be different from using say Mozilla Prism? Prism does not require anything special. Rakesh Wagh On Oct 31, 4:30 pm, nino ekambi jazzmatad...@googlemail.com wrote: Hello community, It s been a long way but i m proud to annouce the release of Gwt4Air 1.0 Gwt4Air will give you the the ability to turn your GWT apps in to desktop apps using adobe air. You can download the jar herehttp://code.google.com/p/gwt4air/. The first release is compatible with gxt 2.2, gwt 2.0 and adobe air 2. It includes the following features: 1) Access to the core AIR APi from GWT, you basically can do anything you would do in actionscript or javascript. 2) An adapter to make GXT(Ext-GWT) works inside the air application sandbox 3) A pdf module to read and write pdf files. 4) A google maps module, so you can produce maps even when your web client is offline 5) An adapter to male RPC and RequestBuilder calls possible with AIR. 6) A sample app with source code that shows some examples. One of the example is how you can export an GXT chart to pdf using gwt4air. The next releases will add more and more features(check out the roadmap) To get started you can check out the wiki page. I hope you guys are going to like this and provide some good feedbacks. For any question please feel free to contact me. best regards, Alain -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: composite headers in celltable
I'd like to use CompositeCell, but I'm having a hard time turning my list of individual Headers into a ListHasCell specifically because Header's valueUpdater is private. I ended up with a workable CompositeHeader: http://github.com/stephenh/gwt-mpv/blob/master/user/src/main/java/org/gwtmpv/widgets/cellview/CompositeHeader.java By hacking together an ExposedUpdaterHeader subclass: http://github.com/stephenh/gwt-mpv/blob/master/user/src/main/java/org/gwtmpv/widgets/cellview/ExposedUpdaterHeader.java I still find using cells within headers a little awkward because headers aren't really flyweights--there is just 1 header row. Especially when HasCell comes into play (because of CompositeCell), which assumes you have a FieldUpdater/row type. - Stephen -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT.runAsync issue
Hi, I had an application which worked fine. Then i went for optimisation and added GWT.runAsync() to possible places. It fragmented the code well. It still runs well in development mode but fails to invoke some of the rpc in production running on tomcat 5.5 I observe it on firebug which shows, After i click the button to make rpc call, it shows getting some *.js file from defered js but soon after it is supposed to make rpc but it does not and call stops there. However it works fine in development mode. Any solution pls. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: java.lang.NoClassDefFoundError: com/google/gdata/util/ServiceException
I got it to work by moving the Analytics jars directly under WEB-INF/ lib. They were in a subfolder and apparently GWT can't handle that. On Nov 1, 7:13 pm, Eyal twoworldsf...@gmail.com wrote: OK, I narrowed it down a bit. My DataFeedManager has some Analytics code in it. When I removed it, everything was fine. So I guess this is an issue of integrating GWT and Analytics? How do I get my GWT to feel comfortable with Analytics code in the business layer? Thanks, Eyal On Nov 1, 6:31 pm, Eyal twoworldsf...@gmail.com wrote: Hi All, I'm new to this, and I'm trying to use my Manager class in a GWT module. I'm using Eclipse 3.6 with the latest GWT plugin and generating a project from it. In my GreetingServiceImpl I have a method, public String getDataFeed() throws IllegalArgumentException, that tries to instantiate my DataFeedManager class through a default constructor. That default constructor is currently doing nothing at all -- it's just there for my testing. But when I'm attempting to do DataFeedManager dfm = new DataFeedManager() I'm getting the following: Service method 'public abstract java.lang.String com.eyes.client.GreetingService.getDataFeed() throws java.lang.IllegalArgumentException' threw an unexpected exception: java.lang.NoClassDefFoundError: com/google/gdata/util/ServiceException What am I doing wrong? Researching this I saw that people were helped by adding google-collect-1.0-rc1.jar to the build path and I added it but I still get the above error. Any help will be greatly appreciated. Eyal -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
mvn gwt:run for projects with external dependencies?
Hi all, I've solved the issue with using external library in GWT maven project: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/cd297accfad7c98 but I found that mvn gwt:run is not working. When I launch application by using mvn gwt:run it seems that external library is not loaded by GWT Development Mode utility. The following errors are listed in the Application console: 00:00:01.753 [ERROR] Line 16: No source code is available for type com.mysite.generic.traits.Constants; did you forget to inherit a required module? By the way, there is no problems with the deployed war, there is no problems with Intellij Idea's GWT integration either. It looks like I forgot to include subtle configuration parameter to make gwt:run work, but I can't figure out which one. I use GWT 2.0.4 and maven-gwt-plugin ver 1.3.1.google. P.S.: The sample application that reproduces the listed behavior is available on google code: svn co http://webkit-jspf.googlecode.com/svn/branches/gwt-external-lib-working1/tmp/maven/gwt-external-lib gwt-external-lib -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: CellList row data - possible bug?
Thank you Chris and John. Yes, that was somewhat counterintuitive ;), but now I get the idea. Best regards! On 28 Paź, 15:46, Chris Conroy con...@google.com wrote: setRowData deals with the visible display of data. What you really want to do in this case is use a ListDataProvider. You can call setList on your ListDataProvider and it will handle the updating for you. Somewhat counter-intuitively, you add the display to the list provider--not the other way around. So... ListDataProvderFoo provider = new ListDataProviderFoo(); provider.addDataDisplay(myCellList); provider.setList(list_with_5_elements); provider.setList(list_with_2_elements); On Thu, Oct 28, 2010 at 6:07 AM, Rafi rafal.fi...@gmail.com wrote: Hi! Either I do not get the idea or there is a little bug in CellList. Calling: setRowData(0, list_with_5_elements); Will show cell list with 5 elements. Then calling on the same CellList: setRowData(0, list_with_2_elements); Will show cell list containing 5(!) elements. First two items will be new one, other 3 items will be from old list. And I do not see any method to clear existing list. Setting an empty list as rowData of course does not do anything. Anyone knows is it designed behaviour or bug? Best regards, Rafal -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT module 'applicationScaffold' may need to be (re)compiled -- Spring Roo
localhost: On Nov 1, 3:18 pm, hifimusic akshat.k...@gmail.com wrote: I've just installed STS 2.5.0 with spring roo 1.1.0 on an Ubuntu 9.10 machine I've installed the gwt and datanucleus extensions. I ran the expenses.roo script and it ran smoothly. When i try to create a new spring roo project with persistence setup --provider DATANUCLEUS --database GOOGLE_APP_ENGINE The roo shell doesn't give any errors but when I debug as webapplication and open it in firefox/chrome, I get the following popup: GWT module 'applicationScaffold' may need to be (re)compiled I've tried to do update maven dependencies and google-gwt compile but that doesn't help I've tried this on another machine running ubuntu 10.04 and the same problem occurs so it is reproducible. Can anyone help me fix this? Thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Role based Security in GWT: how to implement ?
Thank you for your feedback. Yes, i was very worried about the security on client-side. However, as Jack pointed out, what if you want to show certain features to certain users (based on their role). for example, if a user has admin privileges, show DELETEand UPDATE button on the panel. or if you have a StackPanel, you want to show the parts relevant to user's role/access level. can also be applied to Tabs, Trees, etc. when the request gets to the server, server can decide whether to perform an operation or not, based on the user access privileges. and rightly so, i agree. however when it comes to showing relevant widgets on the client based on user's access level, i dont think there is anything server can do about it. this is what im thinking in pseudo code: if(user.canEdit() user.canDelete()) mainPanel.add(deleteButton); mainPanel.add(editButton); or if(user.isClerk) mainPanel.add(clerkWorkspace) else if (user.isBranchManager()) mainPanel.add(branchManagerWorkspace) am i wrong in my apoproach ? how do you handle such scenarios based on your experience ? thank you for your insights. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT module 'applicationScaffold' may need to be (re)compiled -- Spring Roo
@Rajeev: After I read your reply, I tried using http://127.0.0.1:/ApplicationScaffold.html?gwt.codesvr=127.0.0.1:9997 and it worked. I am still curious, however, why localhost: doesn't work On Nov 1, 6:16 pm, hifimusic akshat.k...@gmail.com wrote: localhost: On Nov 1, 3:18 pm, hifimusic akshat.k...@gmail.com wrote: I've just installed STS 2.5.0 with spring roo 1.1.0 on an Ubuntu 9.10 machine I've installed the gwt and datanucleus extensions. I ran the expenses.roo script and it ran smoothly. When i try to create a new spring roo project with persistence setup --provider DATANUCLEUS --database GOOGLE_APP_ENGINE The roo shell doesn't give any errors but when I debug as webapplication and open it in firefox/chrome, I get the following popup: GWT module 'applicationScaffold' may need to be (re)compiled I've tried to do update maven dependencies and google-gwt compile but that doesn't help I've tried this on another machine running ubuntu 10.04 and the same problem occurs so it is reproducible. Can anyone help me fix this? Thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
how to recognizing idle activity to fetch more data ?
Hello everyone, How can Server talk to Client, silently in the background, without user noticing ? to load more data ? is this COMET/Ajax Push ? or can we see it from the other end: how can client notify server that user is idle, and time to fetch data , data which user is probably going to access soon. lets say you have a tree widget, which loads data asynchronously. (could be any widget, lists (similar to google reader, or email's in gmail) in normal asynchronous fashion, everytime users click on a node, they have to wait, for the child nodes to get populated with data coming from server. user might continue playing around with some nodes to find what they're looking for, but they have to wait for child nodes to get populated. (or in gmail's case, content of un-read email to get fetched). one might want to fetch all data at once, but causes longer initial wait time. imagine, while user is reading an email, your app can silently fetch the content of next 5 unread emails, this has the benefit that, probably after user is done reading a new email, might continue reading next, and instead of keeping him waiting, you remain couple of steps ahead. is there a way to detect idle user activity, and use it as an opportunity to fetch more data while user is inactive ? i've seen in one of google-developer's video, that google does such thing to gather usage information. have you implemented this in GWT ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT docs update needed
Hi, Please update the link at http://code.google.com/webtoolkit/doc/latest/RefGWTClassAPI.html to GWT 2.1 API docs. Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Announcing gwt4air 1.0
Hi Alain, On 1 nov, 00:30, nino ekambi jazzmatad...@googlemail.com wrote: Hello community, It s been a long way but i m proud to annouce the release of Gwt4Air 1.0 Gwt4Air will give you the the ability to turn your GWT apps in to desktop apps using adobe air. You can download the jar here http://code.google.com/p/gwt4air/. Er, RAR?! The first release is compatible with gxt 2.2, gwt 2.0 and adobe air 2. It includes the following features: 1) Access to the core AIR APi from GWT, you basically can do anything you would do in actionscript or javascript. 2) An adapter to make GXT(Ext-GWT) works inside the air application sandbox 3) A pdf module to read and write pdf files. 4) A google maps module, so you can produce maps even when your web client is offline 5) An adapter to male RPC and RequestBuilder calls possible with AIR. 6) A sample app with source code that shows some examples. One of the example is how you can export an GXT chart to pdf using gwt4air. The next releases will add more and more features(check out the roadmap) To get started you can check out the wiki page. I hope you guys are going to like this and provide some good feedbacks. For any question please feel free to contact me. I don't really mind that you copied code from http://gwt-in-the-air.googlecode.com as I've been bad at maintaining it and answering your concerns (I've both lost interest in the project and don't really believe in AIR any more actually, HTML5 is the way forward IMO); what I don't quite like is that you're relicensing it under GPL without first asking me (interestingly, you included Apache 2.0 COPYING files but added GPL headers to the Java files). I'd have happily accepted patches, and even given you the project if you asked for it and somehow showed interest in maintaining (both fixing and enhancing) it. I won't enter in a battle: I'm not a lawyer and I don't have time or money to spend for it. In the end, I'd rather see my code used by someone (even stolen that way) than not at all. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Are there any examples how to use @UiChild ?
On 1 nov, 18:19, Paul Stockley pstockl...@gmail.com wrote: I can't find much documentation of the use of @UiChild. Does anyone have any examples? com.google.gwt.editor.ui.client.ValueBoxEditorDecorator does use @UiChild. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: CellTree reordering nodes?
Thanks John. Would another work-around be to call the ListDataProvider's setList method for each change to the tree? On Nov 2, 2:23 am, John LaBanca jlaba...@google.com wrote: There is a bug in CellTreeNodeView where it always assumes new data starts at index 0, which of course is not true if the data is being appended. That explains why it works when you insert at index 0. Another workaround is to populate the ListDataProvider before creating the CellTree (if that is an option for your app). I'm working on a fix that will be in the next GWT release. Thanks, John LaBanca jlaba...@google.com On Mon, Nov 1, 2010 at 5:17 AM, rahul vijay shinde shinderah...@rediffmail.com wrote: These mail are been wrongly marked to me Please avoid. Regards Rahul Shinde On Mon, 01 Nov 2010 13:53:51 +0530 David Pinn wrote I don't know you you've screwed up; but if you have, so have I. I too have been seeing very strange event-handling behaviour, with values being passed to getNodeInfo that are not for the node clicked on. Using your trick with .add(0, Object) made my problem go away too. Right now I'm really happy because it is just that little bit less likely that we are both stupid. maybe. On Nov 1, 3:04 am, decitrig rws...@gmail.com wrote: This problem is a bit tricky to describe; forgive me. I have a cell tree where nodes are added programmatically by doing a getList().add() on a ListDataProvider field. However, I found that using the .add(Object) method would do strange things to the ordering, i.e. the node *rendered* as Item 1 would be passed as *value* Item 2 to getNodeInfo(), and thus it looked like Item 1 got Item 2's children. The really strange thing is that if I do .add(0, Object), then everything works fine. The actual code can be found here: http://bitbucket.org/slide_rule/umd-code-review/src/tip/src/edu/umd/r... I just want to have list operations reflected in the tree, is this a bug or have I just screwed this up somehow? -- rwsims -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.co... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Announcing gwt4air 1.0
Hello Thomas, First thank you for your reply. I just realised my mistake after i released the library yesterday that i should nt hav remove your headers. My knowledge in software licensing is not really that big. But i think i gave you all the credit for the main idea of this project in one my post here. The intention was not definilty to steal anything from you since i m not trying to make money and hav any credits out of this. I m changing the source code right now the puting your copyrights back. Once again sorry for the inconvience. Like i said in one of the post i just saw that u were not interested to work on the project anymore so i started my own. I wrote you a couple of times but u were not really answering me(i guess u are a busy man). HTML5 is great but i think some things will npt work in the normal browser event with html5(offline pdf or excel generation for example). If i put the library under gpl is because a friend told me that the best way the keep improvment in the community. Once again i did nt ment to harm you in any way. Regards, Alain 2010/11/2 Thomas Broyer t.bro...@gmail.com Hi Alain, On 1 nov, 00:30, nino ekambi jazzmatad...@googlemail.com wrote: Hello community, Igt s been a long way but i m proud to annouce the release of Gwt4Air 1.0 Gwt4Air will give you the the ability to turn your GWT apps in to desktop apps using adobe air. You can download the jar here http://code.google.com/p/gwt4air/. Er, RAR?! The first release is compatible with gxt 2.2, gwt 2.0 and adobe air 2. It includes the following features: 1) Access to the core AIR APi from GWT, you basically can do anything you would do in actionscript or javascript. 2) An adapter to make GXT(Ext-GWT) works inside the air application sandbox 3) A pdf module to read and write pdf files. 4) A google maps module, so you can produce maps even when your web client is offline 5) An adapter to male RPC and RequestBuilder calls possible with AIR. 6) A sample app with source code that shows some examples. One of the example is how you can export an GXT chart to pdf using gwt4air. The next releases will add more and more features(check out the roadmap) To get started you can check out the wiki page. I hope you guys are going to like this and provide some good feedbacks. For any question please feel free to contact me. I don't really mind that you copied code from http://gwt-in-the-air.googlecode.com as I've been bad at maintaining it and answering your concerns (I've both lost interest in the project and don't really believe in AIR any more actually, HTML5 is the way forward IMO); what I don't quite like is that you're relicensing it under GPL without first asking me (interestingly, you included Apache 2.0 COPYING files but added GPL headers to the Java files). I'd have happily accepted patches, and even given you the project if you asked for it and somehow showed interest in maintaining (both fixing and enhancing) it. I won't enter in a battle: I'm not a lawyer and I don't have time or money to spend for it. In the end, I'd rather see my code used by someone (even stolen that way) than not at all. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.