Re: CellTable - ListDataProvider - Table not updating on subsequent calls
Hi: Apologize for the delayed response. That sounds different to the issue I was running into. In my case I do recall the update working (server side) as well as the actual response over the wire. For me It was purely an issue of how the Store/List Provider was populated and shown in the UI widget with the latest response received from the server. Best regards. Alfredo On Sun, Dec 22, 2013 at 1:14 PM, Javed javed.su...@specsavers.com wrote: I actually found the underlying cause. Basically on the second update I am getting an optimistic locking error. But I am convinced I am using my JPA correctly. Does that ring any bells or jog your memory? On 21 December 2013 15:54, Alfredo Quiroga laww...@gmail.com wrote: Ufff it's been so long I can't remember :( sorry and on top of it I deleted the project. I just read my own email again to see if I could tell what I was doing wrong and even now can't really tell. Sent from my iPhone On Dec 21, 2013, at 8:40 AM, Javed Sumra javed.su...@specsavers.com wrote: Hello Alfredo. I am having a similar issue. Did you get to the bottom of this? Thanks On Saturday, August 4, 2012 3:10:46 PM UTC+1, Alfredo Quiroga-Villamil wrote: I am still investigating here on my side, but I have a feeling I might be missing the obvious so if someone knows what I am missing or potentially doing wrong please let me know. Elements: - A CellTable - A ListDataProvider - RequestFactory - A refresh button Scenario: - The CellTable is populated via RequestFactory. - On the first load, all data is shown in the table (all rows are populated) - I have a button (refresh). - The Table can be edited, so as an example I edit the first row, first cell and simply change the text to something else. - I click on the refresh button and load a brand new list of proxies from the server using request factory. - I clear my provider's list and add the new proxies. - The new list doesn't replace the old values (previously edited). Curiosity: I've noticed that after I click refresh, although at first glance the edited cell didn't change, if I click on it once or twice, it'll correctly display the last value loaded from the server. This is very unusual behavior. I've also tried to invoke refresh and flush on the provider itself after adding the new set of proxies. Presenter's code that is invoked for the first load and subsequent ones is shown below: @Override public void readAll() { destinationContext = factory.getRequestFactory().createDestinationContext(); destinationContext.findAll().with(cards, cards.trunks, daysOfWeek, daysOfWeek.hourlySchedule, holidays) .fire(new ReceiverListDestinationProxy() { @Override public void onSuccess(ListDestinationProxy proxies) { view. getDestinationCellTable().getProvider().getList().clear(); view. getDestinationCellTable().getProvider().getList().addAll(proxies); if (proxies != null proxies.size() 0) { view.getDestinationCellTable().getCellTable().getSelectionModel().setSelected(proxies.get(0), true); } } }); } I am still investigating here, but as I previously said if you see that I am simply missing the obvious I would appreciate it if you can let me know. Thank you in advance, Alfredo -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out. -- Specsavers Forum 6, Whitely DD: +44 1489 862310 -- NOTICE: This message contains privileged and confidential information intended only for the addressee. If you have received this message in error you must not disseminate, copy or take action
Re: Need Editor Framework help
specify the content. I've read the details on gwtproject.org, code.google.com, and various blogs plus the DynaTableRf example. But while trying to implement this stuff today, it just feels wrong, like it isn't going to fit/work/etc with what I'm doing. So I'm trying to figure out if I should just not use Editor Framework at all. Thank you, Michael Prentice GDG Space Coast -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: I'm enhancing GWT to provide Java stack traces for clientside exceptions in production
I just finished reading the paper presented at: http://www.indiegogo.com/projects/enable-gwt-to-preserve-java-debugging-info-in-production depicting some of the areas/improvements he has made to what I personally consider a vital area and a great addition to gwt-core namely logging and proper mapping to java sources in production. Looking at the donations made so far and obviously at first glance it doesn't look like this work has the significance to many that one might expect. I really feel like the amount of work, complexity of the issue at hand and the overall contribution of the work made by +Alex* *Epsthteyn is important enough so that we shouldn't let it go unnoticed. By unnoticed I mean how do we find a way to work with him so that his changes are ported and integrated into gwt core. Are there any plans or conversations regarding this topic among the core GWT developers? Any way to bring, help Alex so he can incorporate/merge a lot of the changes he has made so everyone benefits from it? I apologize before hand if there are conversations about this somewhere else and I have missed them. Alfredo On Fri, Jul 19, 2013 at 12:56 AM, Alex Epshteyn alexander.epsht...@gmail.com wrote: In response to some of the concerns expressed in this thread, I'd like to clarify that by using my patch, you will not be making any trade-offs versus what you previously had with GWT's old implementation: my patch will give you all pros and no cons. Here's why: There are two ways to get perfect stack traces in production: 1) via a compiler-generated source map file in a browser that provides JS stack traces with column numbers (only Chrome right now) and 2) via stack emulation for all other browsers. My project implements both solutions, along with lots of improvements to their existing implementations in GWT. So if anyone is already using any of the following: stack emulation, symbol maps, source maps, StackTraceDeobfuscator, etc., my patch will make those things better for you without requiring you to use other pieces that you don't need. For example, you could configure it to only use solution #1: which gives you perfect stack traces for Chrome and doesn't increase the size of your code. Or you could additionally enable solution #2, which will cover all the other browsers, with only 45% overhead in code size for those other browsers. Personally, I think that 45% is totally worth it (especially compared to the 100% overhead incurred in the original solution), and I'm using it in my app, but if you don't want any overhead, you can just take the freebie for Chrome and leave the rest as before. By the way, who wants to try it? Please get it touch with me (alex at typeracer.com), and I will email you my patch so you can see for yourself how awesome it is. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Application architecture question
@Timea RequestBuilder or RequestFactory. If you plan on creating a Mobile Web App you can def. look at GWT-RPC. However, if you plan on packaging the App to Native as part of the dual mode (web-native), then avoid if possible GWT-RPC. Regards, Alfredo On Tue, Jun 11, 2013 at 3:41 PM, Imy timea.turd...@gmail.com wrote: Thank you for the so far posted replies. For maybe further clarify: - I need this to work only at the start up of the application, to wait till my model has all the data and then update the GUI. - I am using mGWT, still the architecture is GWT related. I am using mGWT to get it cross-device and GWT to get it cross-browser. (of course with its limitations) - let's say I can control the RPC calls, what do I do with all the events? Can I control my application only to move on when all the necessary events are done? @Alfredo - if not gwt-rpc, then what? Cheers, Timea On 11 June 2013 21:30, Alfredo Quiroga laww...@gmail.com wrote: And since the last sentence of the original post if my memory serves me right mentions is for a mobile app I would strongly recommend not to use gwt-rpc in this case. Sent from my iPhone On Jun 11, 2013, at 3:24 PM, Jens jens.nehlme...@gmail.com wrote: If you have multiple independent RPC requests and you want to update the GUI after all these RPC requests are done, then you could check a number of boolean variables (one per RPC request) to see if all of them are true ( = RPC is done), e.g. server.rpcMethod1(Callback() { onSuccess() { rpcMethod1Done = true; maybeUpdateUI(); } }); server.rpcMethod2(Callback() { onSuccess() { rpcMethod2Done = true; maybeUpdateUI(); } }); private void maybeUpdateUI() { if(allRpcDone()) { //check all boolean variables. //... update ui } } But as you have a mobile application its probably better to batch your requests, so that your app, as a rule of thumb, only does one request per screen. This saves a lot of network overhead. In this case a command pattern might be useful, as it allows for easy BatchCommands, e.g. BatchCommand bc = new BatchCommand(); bc.add(new DoStuff1Command()); bc.add(new DoStuff2Command()); server.execute(bc, CalllbackBatchCommandResult() { //in onSuccess iterate over all individual command results contained in the BatchCommandResult and finally update your UI. } Otherwise, if you just have a single RPC request somewhere and you make that RPC request because of an event you probably just need an XyzLoadedEvent, e.g. ScoreBoardRequestEvent and ScoreBoardLoadedEvent, just like Joseph has already explained. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to a topic in the Google Groups Google Web Toolkit group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/eZLxnlpixL0/unsubscribe?hl=en . To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Lienzo is now GA and it's Pixel Perfect!
Hi David: https://emitrom.atlassian.net/svn/LK/trunk Regards, Alfredo On Wed, Jan 2, 2013 at 2:42 PM, David levy...@gmail.com wrote: This is wonderful! Do you know where I can find the bits of the demo source that are not visible in the Lienzo Explorer? i.e. com.emitrom.lienzo.demo.client.common.WidgetLayer thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/JHM6p_WtUwgJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Hit detection for GWT canvas - which strategy for drawings?
In Lienzo, we opted for a Color Map approach. Detecting bounding boxes as previously suggested in the thread is not a trivial task, more so for non geometrical shapes. http://wiki.emitrom.com/wiki/index.php/Picking Lienzo is only 4 months old and already surpasses in functionality and efficiency all the JS based frameworks we've seen out there, that includes Kinetic. An example is, in Kinetic you have to handle dragging yourself to make it efficient. In Lienzo, you simply call setDraggable on the shape and we do the rest for you. My suggestion would be to save you lots of time, coding and go with a GWT only based solution that has an incredible number of features already. While you are at it you can also provide us with feedback and help us make it better. It's Apache 2 and we are using it to build a few things. A ton more of features are in the pipeline. We are as we speak for example in the process of adding zoom support. Via different mediators you'll be able to zoom in/out your entire viewport. Take a look at the explorer here: http://www.emitrom-lienzo.appspot.com/ Regards, Alfredo On Thu, Dec 20, 2012 at 6:14 AM, membersound kodyreco...@gmail.com wrote: I'm creating some kind of drawings/flowchart/UML-diagram like tool with GWT Canvas (Java). For hit-detection of my drawings I could imagine 3 different strategies, but I do not know which would work best for my goal. - Just keep track of all Shape coordinates and iterate all objects on mouseclick - draw all objects on a ghost-canvas on mouseclick, and use isPointInPath() after every object drawing - using a ghost-canvas and draw each object with its own color (like #01, #02), and keep reference of them in a MapColor, Shape. Then just detecting the mouseclick on the ghost-canvas and get the object belonging to the pixelcolor under mouse What would you prefer, and why? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/tPJuPlAJED4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Hit detection for GWT canvas - which strategy for drawings?
to you there were 4 checks and not 2... Also, he is not making a 3d engine here and is very unlikely to need anything more than AABB bounding boxes. You don't need a minimum bounding box for this, just a general one. He is making flowcharts/UML diagrams, and is unlikely to have more than a few hundred shapes - which performs exceptionally well on AABB bounding boxes and simple polygon checks. If he is implementing this himself, then spending the next year developing a perfect object selection engine feels a bit overkill for his needs? Alfredo has the right idea though - nearly always best to go with a library that has already had all of this done for him - provided he can fit his flowchart/UML code into the Lienzo scene graph. :) On Thursday, December 20, 2012 6:28:54 PM UTC+2, Dean S. Jones wrote: A bounding box check isn't O(1), it's O(n) for n shapes, THEN you have to run edge detection, and only then if all your shapes are Polygons. The issue with bounding boxes is that, in all but the most trivial cases, they are expensive to compute. If you add in any Affine Transforms ( rotate, scale, shear ) the task becomes even worse, and worse still is the bounding boxes of Quadratic or Bezier curves. With a large number of shapes, you can gain some speed using Quadtree's http://en.**wikipedia.org/wiki/Quadtreehttp://en.wikipedia.org/wiki/Quadtreeand other types of spatial indexing. But you have 4 checks per primitive, not 2 (x box.left x box.right y box.top y box.bottom), so you need to keep 4 coordinates. For a large number of shapes, this uses memory, more memory if you choose to use a Quadtree or similar spatial indexing. So, I have found the color indexing option the best, it's not quite O(1), as it's performance depends on the hashmap lookup time. The downside is you only have 167772316 possible color keys, I feel this is acceptable limitation. This could be helped by having multiple layers with each layer having it's own full colorspace. Hashmap lookup time should be near optimal since an analysis of collisions with out keys yeilds about 1100 out of 167772316, which is pretty good. As a side note, HashMap in GWT is not an optimal implementation for this case. The other downside is you have to draw also in the ghost canvas, but we found our drawing time so fast it was not a concern. isPointInPath only works while the Path is CURRENT in the Canvas context 2d, which you lose after drawing another shape or context.restore(), so it's only possible to test IMMEDIATELY after you draw the shape, before you do any context.restore(), which means you have to be drawing somewhere while your doing hit testing, probably another ghost canvas. This also only works for closed shapes, not something like a PolyLine or Arc. On Thursday, December 20, 2012 8:29:40 AM UTC-5, RyanZA wrote: First option is definitely best, but you need to expand it slightly: Use a bounding box around every shape, so you can do an O(1) check if the click is inside the bounding box (click.x box.left, click.x box.right, etc) If the click is inside the bounding box, then you can run normal edge detect O(number of lines per poly) -- (drop a line to the axis, count number of line intersections - check stackoverflow or similar for code) If you have Z index on your shapes, then start from the biggest Z index and take the first match. If you are drawing in a list, then start from the bottom of the list and work upwards and take the first match. On Thursday, December 20, 2012 1:14:43 PM UTC+2, membersound wrote: I'm creating some kind of drawings/flowchart/UML-diagram like tool with GWT Canvas (Java). For hit-detection of my drawings I could imagine 3 different strategies, but I do not know which would work best for my goal. - Just keep track of all Shape coordinates and iterate all objects on mouseclick - draw all objects on a ghost-canvas on mouseclick, and use isPointInPath() after every object drawing - using a ghost-canvas and draw each object with its own color (like #01, #02), and keep reference of them in a MapColor, Shape. Then just detecting the mouseclick on the ghost-canvas and get the object belonging to the pixelcolor under mouse What would you prefer, and why? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/O9Foj0GE6z4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send
Re: GWT Whiteboard (freehand drawing)
Hi James, I am unfortunately not familiar with GWT Visualization. I've seen threads about it though. But to answer your question, yes, it would be fairly straight forward to create a slick charting library. That doesn't mean it would be simple. The devil is usually as people say in the details. However, because the core things are there all implemented in Lienzo, I don't personally think it would be that hard either and it would be crazy slick. What's even better it would run on anything that supports the HTML5 canvas spec. Now days that's a lot of devices out there, mobile, desktop. The charts could have some crazy animations also. http://www.emitrom-lienzo.appspot.com/#ExplorerPlaceImpl:transform_3_points Move the three red dots around the screen and hit animate. This is just one line of code for the user of the Lienzo API. The transform and all the details are worked out for the user behind the scenes. Just to play around, for fun really, we created this pie chart. We didn't make it pretty or anything. Just made it draggable, no animation, shadows, cool gradients, nothing, a crud pie chart and it was just a few lines of code: http://www.emitrom-lienzo.appspot.com/#ExplorerPlaceImpl:pie_chart Hope that helps. Regards. Alfredo On Tue, Dec 18, 2012 at 9:55 AM, James jim.p...@gmail.com wrote: Is it promising to use this library for reporting to replace other third party chart libraries such as GWT Visualization? On Monday, December 17, 2012 5:34:17 PM UTC-5, Alfredo Quiroga-Villamil wrote: Forgot to mention ... You can also add a touch end handler and apply the same concept. This way it will work on mobile devices as well. Sent from my iPhone On Dec 17, 2012, at 4:58 PM, Zach zjz...@gmail.com wrote: Rather than create a new shape, I found I'm able to simply create a LienzoPanel that has a Layer in it. This Layer will be the canvas: on mouse events I can draw a PolyLine and add points to it. After any mouseUp event I can then JSONify the Layer and send that, which will have all shapes within it. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/** msg/google-web-toolkit/-/**eY8mcIzdLn4Jhttps://groups.google.com/d/msg/google-web-toolkit/-/eY8mcIzdLn4J . To post to this group, send email to google-we...@**googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+** unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/** group/google-web-toolkit?hl=enhttp://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 view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ec4JGx0RqasJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Whiteboard (freehand drawing)
Very interesting question and use case. Assuming you need a bit more than just simple hand - mouse drawing, my recommendation would be to start with Lienzo (www.emitrom.com/lienzo) as a base. A couple of reasons why: - It will support both mouse and touch events. - It will give you support not only for hand/mouse drawn objects but also access to a pretty big list of already built in geometrical shapes. All draggable, transformable, etc... - Say you wanted more than just the hand drawn things as previously mentioned, after you are done with the user's view or on demand, every x number of seconds or whichever way you like to implement the server push synchronization mechanism for all your clients, you can then call: .toJson() and you'll get a JSON representation of your entire viewport. See an example here, click the save button. http://www.emitrom-lienzo.appspot.com/#ExplorerPlaceImpl:json The only thing we don't have implemented is a hand-drawn shape. In other words, you'll need to implement the hand drawn part and hook into our serialization mechanism. Essentially you'll create a Custom Shape. But we have all this documented so it should be fairly straight forward. See how to extend Lienzo here: http://wiki.emitrom.com/wiki/index.php/Extending_Lienzo Our community is here if you have questions and decide to go with this approach. https://plus.google.com/u/0/communities/111441257302891144143 Best regards, Alfredo On Mon, Dec 17, 2012 at 2:55 AM, Zach zjz...@gmail.com wrote: Hey I'm trying to have a client draw freely (like MSPaint) onto a canvas, and have that data then be sent to another client where they can view and also draw. The project I'm working in is in GWT, so I'm looking for a way to accomplish this using Google's WebToolkit. The *perfect* example I have of this is found at: http://drawboard.appspot.com only I have absolutely no clue where to begin. If you can point me towards any google searches (I've been doing many with nothing but failure) that'd be awesome! Or if you happen to know exactly how the above website implements this, that'd be perfect as well. Let me know! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ofG1FddHUfkJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Lienzo is now GA and it's Pixel Perfect!
Hi Oliver: We think is very practical for Mobile Devices. One thing that is of particular interest to us is for the most part the universality of a widget created based on canvas. You are more or less guaranteed it'll look the same in any desktop/mobile or any device for that matter implementing the canvas spec. Something that was once a dream for many using webkit but due to the current fragmentation, it has become harder to achieve. In this case for static views, a canvas it's nothing but a bunch of pixels drawn on the screen which is out of the box resolution independent. So compare that to building complex DOM structures in the browser and there is already a gained benefit. When it comes to animations for example, the way things are done is pretty efficient I have to say. An animation is typically wrapped in a requestAnimationFrame ( http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/animation/client/AnimationScheduler.html). This is a rather efficient operation since it allows the browser to realize the animation in the most efficient way. Very important since it allows the browser to trigger the next animation step when it needs to. Something interesting in this area is how the actual implementation works. If you go to a different tab, navigate away from the view, etc... all the animations are suspended. That by itself will automatically save CPU cycles, battery and resources. Also the sort of animations that we can now create are not bound the the ones provided by browsers. We can animate anything we want to in previously unimaginable ways. Lienzo 1.0 supports most the core functionality that will be needed to build things on top for Mobile or Desktop. That is, we support dragging in a mobile device, events, etc... Things such as scrolling, scaling and others are likely to be created and added as another library that will seat on top of it. More of a widget library at that point. Hard to draw the line but as of now that's the idea. Doesn't mean they won't get added to Lienzo directly in the near future. Help is something that we really, really need. More so when it comes to creating test cases, analyzing performance, battery on mobile devices, CPU utilization, you name it. We have made Lienzo very extensible so creating widgets or modules on top of it should be very easy. Creating a chart library, widgets and other cool things. We have created some examples for possible widgets such as Sliders, Progress Bars, Toggle Buttons and we were ourselves surprised to realize how simple it was to do so. And they are slick. Since you have total control over shadows, gradients, I mean you can pretty much do whatever you want. So yes, please by all means if you have some time and can give it a try and see if you can come up with some tests, etc... it would be really, really cool. Man sorry for the long email :( didn't mean for it to be this long. Really appreciate the feedback/questions/ideas and we look forward to a lot more so we can improve things and make them better for all. On Sat, Dec 15, 2012 at 4:01 PM, Oliver Krylow okry...@gmail.com wrote: Hi, this looks very interesting. Do you think this is practical for mobile devices? What do you think the battery drain would be compared to normal gwt widgets and css animations especially? The explorer showcase unfortunately does not behave well on my mobile phone ( galaxy sII android 4.2). The canvas is not scrollable and does not scale. I assume you focused on targeting the desktop first, which makes sense :-) In case you plan to target mobile I am the future I would be lost interested to help in any performance related tests, especially animations. - Oliver On 15 Dec 2012 21:33, Alfredo Quiroga laww...@gmail.com wrote: Thank you much appreciated. Sent from my iPhone On Dec 15, 2012, at 11:53 AM, darkflame darkfl...@gmail.com wrote: Just had a quick look at the Explorer examples, some really nifty stuff there! Too late for us to implement into our current project, but fantastic work! On Dec 14, 7:11 pm, Alfredo Quiroga-Villamil laww...@gmail.com wrote: All: Just a quick announcement letting everyone know that Lienzo is now GA! If you are looking to do anything canvas based, games, animations, new unthinkable widgets for either mobile or web based apps, I think you will find that Lienzo covers in this, its 1.0 version the vast majority of the things you will need. We have invested a great deal of time to make sure the library is as solid as it can be. However, nothing beats community feedback and new ideas. There are a handful of things that we plan on adding to the toolkit in the next release, but if you have any suggestions, please feel free to drop us a line. Lienzo is an Apache 2 library and its creation is the result of our own needs so we are not only producers but also consumers of the package. As part of this release we put a lot of effort
Lienzo is now GA and it's Pixel Perfect!
All: Just a quick announcement letting everyone know that Lienzo is now GA! If you are looking to do anything canvas based, games, animations, new unthinkable widgets for either mobile or web based apps, I think you will find that Lienzo covers in this, its 1.0 version the vast majority of the things you will need. We have invested a great deal of time to make sure the library is as solid as it can be. However, nothing beats community feedback and new ideas. There are a handful of things that we plan on adding to the toolkit in the next release, but if you have any suggestions, please feel free to drop us a line. Lienzo is an Apache 2 library and its creation is the result of our own needs so we are not only producers but also consumers of the package. As part of this release we put a lot of effort into creating not only the software itself but also good resources to help you in your journey to create literally anything you can think of. That's how powerful canvas and GWT together we think can be. As usual, none, none of this would have been possible without GWT. We extend our gratitude to those that continue to make GWT better and hope that this latest addition helps others create things that were only possible in our imagination before, at least creating them in a much easier fashion. *Community: * https://plus.google.com/u/0/communities/111441257302891144143 *Lienzo User Guide:* http://wiki.emitrom.com/wiki/index.php/Lienzo_User_Manual *Lienzo Explorer:* http://www.emitrom-lienzo.appspot.com/ *Lienzo Download:* http://www.emitrom.com/lienzo/download The Emitrom Team -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. attachment: lienzo_banner.png
Re: Canvas drawn objects mouse events
I don't want to discourage you from trying your own implementation but you might want to take a look at Lienzo and see if it works for what you need. It's 100% built on GWT and lighting fast. It should do all the things you will need and likely more. It's released under Apache. Explorer: http://www.emitrom-lienzo.appspot.com/ Download: http://www.emitrom.com/lienzo/download Best regards, Alfredo On Thu, Nov 29, 2012 at 1:29 PM, Matt Fair matt.f...@gmail.com wrote: I have the following code: public void draw(Context2d context) { context.beginPath(); context.rect(x, y, width, height); context.fill(); context.closePath(); context.stroke(); } I would like to add a mouse event for when the mouse moves over the rectangle. What's the best way to do this? I was able to do it if I in the mouse move event for the canvas and with an if statement I checked to see if the mouse moved within the coordinates of the rectangle. canvas.addMouseMoveHandler(new MouseMoveHandler() { public void onMouseMove(MouseMoveEvent event) { mouseX = event.getRelativeX(canvas.getElement()); mouseY = event.getRelativeY(canvas.getElement()); if(insideRectangle(mouseX, mouseY)) { // fire mouse event for rectangle } } }); However, I am worry about working with a bunch of objects and speed doing it this way. Is there a way to add a mouseMoveHandler directly to the rectangle? Thanks, Matt -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ZcJTa9KelVEJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Canvas drawn objects mouse events
We are just a couple of weeks from having GA by the way and some of the things we are adding are just amazing. Take a look for instance at this transform. http://www.emitrom-lienzo.appspot.com/#ExplorerPlaceImpl:transform_3_points For the user of our API ... one line of code for that complicated transform. Behind the scenes ... a lot of stuff going on. - All shapes are grouped. - All shapes are draggable. The level of sophistication you'll find it's simply amazing and we are just finishing off 1.0 GA. The package is very light and has no dependencies. On Thu, Nov 29, 2012 at 5:13 PM, Alfredo Quiroga-Villamil laww...@gmail.com wrote: I don't want to discourage you from trying your own implementation but you might want to take a look at Lienzo and see if it works for what you need. It's 100% built on GWT and lighting fast. It should do all the things you will need and likely more. It's released under Apache. Explorer: http://www.emitrom-lienzo.appspot.com/ Download: http://www.emitrom.com/lienzo/download Best regards, Alfredo On Thu, Nov 29, 2012 at 1:29 PM, Matt Fair matt.f...@gmail.com wrote: I have the following code: public void draw(Context2d context) { context.beginPath(); context.rect(x, y, width, height); context.fill(); context.closePath(); context.stroke(); } I would like to add a mouse event for when the mouse moves over the rectangle. What's the best way to do this? I was able to do it if I in the mouse move event for the canvas and with an if statement I checked to see if the mouse moved within the coordinates of the rectangle. canvas.addMouseMoveHandler(new MouseMoveHandler() { public void onMouseMove(MouseMoveEvent event) { mouseX = event.getRelativeX(canvas.getElement()); mouseY = event.getRelativeY(canvas.getElement()); if(insideRectangle(mouseX, mouseY)) { // fire mouse event for rectangle } } }); However, I am worry about working with a bunch of objects and speed doing it this way. Is there a way to add a mouseMoveHandler directly to the rectangle? Thanks, Matt -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ZcJTa9KelVEJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Meet GWT's new sexy cousin: Lienzo!
It's the weekend so I thought I would send out something fun. We are continuing to make progress towards the beta release of Lienzo. This week animation, transforms and shear functionality went in. Be sure to check out: - Drag the rectangle around. All events for Mobile and Desktop are now in. http://www.emitrom-lienzo.appspot.com/#ExplorerPlaceImpl:mouse_event - Want to be hypnotized? http://www.emitrom-lienzo.appspot.com/#ExplorerPlaceImpl:animation_frame - Let's *shear it* for: http://www.emitrom-lienzo.appspot.com/#ExplorerPlaceImpl:simple_shear - *Tween it, tween it!* http://www.emitrom-lienzo.appspot.com/#ExplorerPlaceImpl:tweener Good weekend everyone. On Wednesday, October 31, 2012 11:53:01 PM UTC-4, Alfredo Quiroga-Villamil wrote: *Meet GWT's new sexy cousin: Lienzo!* Today we are extremely happy to announce the alpha release of our latest product, called Lienzo. Lienzo is a Structured Graphics Toolkit that extends Canvas and is completely built from the ground up using GWT. This is not a wrapper of any sort, it is a pure GWT implementation of Canvas. Lienzo is released under the Apache 2 license and can be used in both open source as well as commercial applications free of charge. For years we have been constrained to the functionality and specifications provided by HTML elements. The time has come where you can finally let your imagination go wild. Grab your digital brush, get a hold of your Canvas and paint your Mona Lisa! The limit is now really just your imagination. Lienzo brings to your fingertips the full power and flexibility needed to create the next generation of slick, previously unimaginable widgets, games and animations needed to build your dream suite of development products. This alpha release features: - Lightning fast shape detection algorithm. - Supports for multiple Layers. - z-index reordering: moveUp, moveDown(), moveToTop(), moveToBottom() - Transforms, rotation, offset, scale for all Shapes. - Web and Mobile shape events support. - Support for shadows. - Support for linear and radial gradients as well as patterns. - Direct support for shape stroke and filling. - Support for shape colors and transparency. - List of implemented shapes: * Rectangle * Rounded Corner Rectangle * Lines * Dashed Lines * Support for Line Caps * Support for Line Joins * Arcs * Circle * Ellipse * Quadratic Curve * Polygons * Stars * BezierCurve * Parallelogram * Slice * RegularPolygon - Support for Groups and Groups of Groups. * Group as many shapes as you want and even Groups of Groups and treat them as a single entity. - Direct Dragging Support for Web and Mobile. - Text support with Horizontal and Vertical Alignment. - Text measure support for both width and height. - Scaled Text - Image support based on URL and even ImageResource. - Image Dragging support. - Built-In Image Filters - Drag constraint (bounds, vertical and horizontal) - Video support - Built in JSON serialization for the entire viewport of elements. * Serialize your Lienzo View and persist it locally or over the wire via JSON. There is a lot more coming in Lienzo. Just to name a few things: animations, transformations, collision detection, and more! Lienzo is revolutionizing the way we write software in Java; it truly embraces Java's Write Once, Run Anywhere motto. The same code can be run in a mobile, web, or desktop environment. Say hello to a specification-bound API. The future for Java is now. The future of Java is here, with Lienzo and the undeniable power of canvas. An explorer with some examples and source code can be found at: - http://www.emitrom-lienzo.appspot.com/ * *In most of the views all shapes are draggable!* Lienzo Forum: - http://www.emitrom.com/forum/lienzo Download Lienzo 0.1.0: - http://www.emitrom.com/lienzo/download Sincerely, The Emitrom Team -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/cE8lYeAgwtwJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Probably using ClientBundle wrong but can't figure out what is wrong?
Interesting, I was on my cell phone before, couldn't check to see but could have sworn that it would take an Element. In any case, if it all fails I guess try then: ImageElement element = ImageElement.as(image.getElement()); element.setWidth(image.getWidth()); element.setHeight(image.getHeight()); Depending on how involved you need to get with canvas stuff, you might also want to take a look at: http://www.emitrom.com/announcements/lienzo/alpha Regards, Alfredo On Sat, Nov 10, 2012 at 3:47 PM, markww mar...@gmail.com wrote: Hi, Context2d.drawImage() wants an ImageElement, but orange.getElement() only produces an Element instance. This is why in the example I had: ImageElement.as(orange.**getElement()); Thanks On Saturday, 10 November 2012 14:07:27 UTC-5, Alfredo Quiroga-Villamil wrote: When you go to draw try passing orange.getElement() Sent from my iPhone Hi, I'm trying to use ClientBundle with an image. My interface: public interface MyImages extends ClientBundle { @Source(orange.png) ImageResource orange(); } The image orange.png is in the same package as the above class. Now I try to use it: public void drawCanvas() { MyImages resources = GWT.create(MyImages.class); Image orange = new Image(resources.orange()); System.out.println(size: + orange.getWidth() + , + orange.getHeight(); // prints 500x500 ImageElement ie = ImageElement.as(orange.**getElement()); System.out.println(size: + ie.getWidth() + , + ie.getHeight(); // prints 1x1 canvasContext.drawImage(ie, 0, 0); } The Image instance prints its width/height, correct at 500x500 pixels. I try to convert it to an ImageElement so I can draw it to a canvas, it prints its width as 1x1 pixels. Which is incorrect. So of course, nothing gets drawn to the canvas. Am I using ClientBundle wrong? I have other methods for loading/drawing the image which work fine. I just wanted to try this interface out, Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/** msg/google-web-toolkit/-/**xAgxozt0YKkJhttps://groups.google.com/d/msg/google-web-toolkit/-/xAgxozt0YKkJ . To post to this group, send email to google-we...@**googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+** unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/** group/google-web-toolkit?hl=enhttp://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 view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/xn1JzkTnHvQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT vs SmartGWT
I've seen in the past many comments and different opinions about Vaadin, GXT, SmartGWT and GWT-only apps. I think the fundamental thing to remember here is resources. If you work for a company where you can afford to have the designer/s, a CSS savy person/s and the time to build and enhance more than anything pure GWT widgets then by all means go with the GWT only approach. Do that also if you know the app is being built and will be there to stay for a loog time. However, in many cases we all seem to think that those frameworks only provide cosmetic things and they really don't. They actually provide a whole lot more than just style. Not all GWT-only widgets, but many actually need a lot of work in both how they look as well as how they are used programmatically. Not too long ago I set out to build a pure GWT app (one man app only and being built by someone, me in this case that have been building GWT for quite some time) and I was the one that almost jumped off the building in this case. I found myself, styling things, some of the widgets needed a lot of extra boiler plate (take Cell Table for instance), just to do basic stuff that using some of the other frameworks mentioned would just be one or a few lines of code. So if you have to make a decision, think about one thing and one thing only. Do you truly have the resources/time, both design and coding wise to enhance the existing GWT widgets? The answer to that will likely tell you what to use and it's likely the reason why those companies are such value-add to the existing GWT code base. As far as performance goes, unless you are building an App for something extremely, and I emphasize extremely demanding, there is little to none chance that using GXT, Vaadin or SmartGWT will have an actual impact on your app. Alfredo On Mon, Oct 29, 2012 at 8:01 PM, Joseph Lust lifeofl...@gmail.com wrote: Folks in my company were just asking me this the other day. If you want an app that looks like the GXT or SmartGWT showcase, and absolutely nothing more, then use them. But you'll have to bend to their paradigms and extend their frameworks if you want more than they do. Further, these frameworks are heavy weight, so doing just what you need in GWT will be much faster performance wise. This is why we stick with pure GWT on my team and why another dev team in our company wanted to jump off a cliff after building a 400 screen app in GXT. Sincerely, Joseph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/yKJ3UnRqsMMJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: AnimationScheduler.requestAnimationFrame example
Something along the lines of ... Notice the line under Call it again. animation = AnimationScheduler.get().requestAnimationFrame(new AnimationCallback() { @Override public void execute(double timestamp) { // Do some stuff here // Call it again. AnimationScheduler.get().requestAnimationFrame(this); } } }); Regards, Alfredo On Fri, Oct 26, 2012 at 8:43 AM, Arun arunk.siluv...@gmail.com wrote: Hi Everyone, I am beginning to learn WebGL development using GWT using gwtgl. I am not able to get the requestAnimationFrame working to render my scene regularly. Could someone please take a look at it and offer some advice? Code: Mygwtgl.java public class Mygwtgl implements EntryPoint, AnimationScheduler.AnimationCallback { ... private Redraw redraw; private void start() { ... redraw = new Redraw(); redraw.requestAnimationFrame(this); } public void execute(double timestamp) { drawScene(); } } Redraw.java public class Redraw extends AnimationScheduler { private AnimationScheduler.AnimationHandle hAnimScheduler; public Redraw() { hAnimScheduler = new AnimationScheduler.AnimationHandle() { @Override public void cancel() { // TODO Auto-generated method stub } }; } public AnimationScheduler.AnimationHandle requestAnimationFrame(AnimationScheduler.AnimationCallback cb, Element e) { // cb.execute() works here but only once, not getting scheduled regularly // return hAnimScheduler; } } I do not have much programming experience with java and I am not sure whether this is the correct way to use requestAnimationFrame(). The callback doesn't seem to be scheduled, I really appreciate any advice in this regard. -br Arun -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/-y4hkIDt5BUJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: AnimationScheduler.requestAnimationFrame example
I should probably mention that should you have the need to stop the animation, you might have to implement your own logic. A couple of lines of code would suffice in this case, but still. I haven't tested 2.5 GA nor looked at the release notes for it yet but if I am not mistaken even 2.4 had an issue where the animation doesn't stop with the cancel method I think it was. So just keep that in mind. Regards, Alfredo On Fri, Oct 26, 2012 at 12:36 PM, Alfredo Quiroga-Villamil laww...@gmail.com wrote: Something along the lines of ... Notice the line under Call it again. animation = AnimationScheduler.get().requestAnimationFrame(new AnimationCallback() { @Override public void execute(double timestamp) { // Do some stuff here // Call it again. AnimationScheduler.get().requestAnimationFrame(this); } } }); Regards, Alfredo On Fri, Oct 26, 2012 at 8:43 AM, Arun arunk.siluv...@gmail.com wrote: Hi Everyone, I am beginning to learn WebGL development using GWT using gwtgl. I am not able to get the requestAnimationFrame working to render my scene regularly. Could someone please take a look at it and offer some advice? Code: Mygwtgl.java public class Mygwtgl implements EntryPoint, AnimationScheduler.AnimationCallback { ... private Redraw redraw; private void start() { ... redraw = new Redraw(); redraw.requestAnimationFrame(this); } public void execute(double timestamp) { drawScene(); } } Redraw.java public class Redraw extends AnimationScheduler { private AnimationScheduler.AnimationHandle hAnimScheduler; public Redraw() { hAnimScheduler = new AnimationScheduler.AnimationHandle() { @Override public void cancel() { // TODO Auto-generated method stub } }; } public AnimationScheduler.AnimationHandle requestAnimationFrame(AnimationScheduler.AnimationCallback cb, Element e) { // cb.execute() works here but only once, not getting scheduled regularly // return hAnimScheduler; } } I do not have much programming experience with java and I am not sure whether this is the correct way to use requestAnimationFrame(). The callback doesn't seem to be scheduled, I really appreciate any advice in this regard. -br Arun -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/-y4hkIDt5BUJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Mobile App in Same WAR File
Dont have a pc here to send links, but look for the gwt sample mobile app. More specifically look for the MobileFactor.gwt.xml, that I think is the file name if my memory serves me right. You will essentially sprinkle some js code in your x.gwt.xml. The js will setup some variables that you can then use in conjunction with defferred binding to load the appropriate view/implementation. This all gets derived from the user agent. In your case, since your mobile view will be jquery based, you upon calling via defferred binding the right implementation can inject the JS for your jquery mobile app programmatically. Best regards, Alfredo On Sep 3, 2012 3:37 PM, jduffy jdu...@vorpalware.com wrote: Hi All, We are developing a GWT application for desktop browsers that is deployed to a Tomcat 7 container as a WAR file. We are also developing a companion mobile application that is written in JavaScript and JQuery. We would now like to embed both applications into the same WAR file so that the appropriate version is served based on the user-agent property of the browser. For example, if a user hits 'ourapp.com' from a desktop browser, they should be served the GWT application and if they hit it from mobile Safari on an iPhone, they should get the JavaScript/JQuery application. Can anyone shed some light on how we might be able to accomplish this? We're fairly new to GWT and web programming so I apologize if the question is a bit vague or non GWT specific. Jim -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/-gZqRrc-EmkJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Best practices waiting for DOM parsing
Hi Joseph: Not as familiar with SVG as I am with Canvas, but I am thinking that you can likely (assuming I interpreted the documentation correctly) hook into the SVG load event. Do investigate this, as I am not sure, but below are a couple of sources. Take a look at SVGLoad, perhaps you can use something like that instead of you doing the checking, leverage if it's valid the callback that's native there. http://www.w3.org/TR/SVG/interact.html Then something like: http://stackoverflow.com/questions/3883257/loading-svg-into-svgweb-dynamically-with-jquery svg.addEventListener('SVGLoad', function() { svg = this; // this will correctly refer to your SVG root alert('loaded!'); }, false); // also supported: svg.onsvgload = function() { alert('loaded!'); } Best regards, Alfredo On Tue, Aug 28, 2012 at 9:33 AM, Joseph Lust lifeofl...@gmail.com wrote: I wanted to ask the community's opinion on the best practice for waiting for a DOM resource to become available. Use Case: You make an elaborate component via UiBinder or injecting some HTML/SVG into the DOM and upon executing the following statement trying to access an element that was injected, the DOM does not see it (i.e. inject 2MB of SVG) due to DOM parsing lag. Work Arounds: Schedule recurring timer to check if the element is available and then continue the program flow (now that the element's accessible in the DOM). OR Schedule a deferred timer and then continue (less robust, does not always work). So, curious what other folks have been using in this case where the GWT code must wait to wait for DOM parsing lag time. It seems to me like this is something there should be an official GWT function for doing as other frameworks do have functions to wait until an object becomes available in the DOM. Sincerely, Joseph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/JpBdhNvNWbIJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: CellTable - Synchronization problem with AsyncDataProvider
I have a similar post. I was trying to do something as simple as when I click on a refresh button to completely clear my provider and display the freshly received entities from the server. I haven't had time to go back and look at it, but I would also be interested in getting a definitive idea as to what the right approach for reloading a CellTable should be. I not only want to get say 1000 rows and change what gets displayed by manipulating the visible range. I am talking about completely clearing my provider and repopulating it with freshly received objects. I would think a simple clear() and add() in the provider would do, but it doesn't seem to be that simple. The provider clears and adds the new list of objects but the display never updates it. I tried a handful of things to force a resync of the display and nothing. I read a whole lot of stuff online and there seems to be many people confused in this area. I started to dive in also and investigate in the code, but never finished it. There are a handful of methods that all look similar but do different things. My post can be found at: https://groups.google.com/forum/?fromgroups=#!topic/google-web-toolkit/Qbkgk03-cTs Any help will be greatly appreciated. Alfredo On Sun, Aug 26, 2012 at 10:55 AM, Magnus alpineblas...@googlemail.com wrote: Hi Thomas, I tried to modify the reload method like this, but without success: public void reload () { pvd.updateRowCount (0,true); // avoid to many visible rows Range r = tbl.getVisibleRange(); tbl.setVisibleRangeAndClearData (r,true); loadRecordCount (); // asynchronously load the real record count } Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/fgp4CJThaXcJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Spring and gwt (request factory)
In addition to declaring the base package where Spring will start to search for your Beans, you have to also annotate the class with @Component. Best regards, Alfredo On Thu, Aug 23, 2012 at 5:02 PM, pierre leagault pierrelegault...@gmail.com wrote: hi i use spring and gwt (request factory). in my applicationContext, i use context component-scan but my bean is not retrieved. i need to declare it manually. why component scan don't work? my web.xml context-param param-namecontextConfigLocation/param-name param-value/WEB-INF/applicationContext.xml/param-value /context-param listener listener-classorg.springframework.web.context.ContextLoaderListener/listener-class /listener servlet servlet-namerequestFactoryServlet/servlet-name servlet-classcom.google.web.bindery.requestfactory.server.RequestFactoryServlet/servlet-class /servlet servlet-mapping servlet-namerequestFactoryServlet/servlet-name url-pattern/gwtRequest/url-pattern /servlet-mapping welcome-file-list welcome-filewelcomeGWT.html/welcome-file /welcome-file-list thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/4QrWjBivh5YJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Spring and gwt (request factory)
This might not directly answer your question but it'll hopefully help. You will find all the moving pieces you need there. In my DAO, I am injecting via @Autowired some beans (not shown in the example). Proxy: === @ProxyFor(value = Card.class, locator = CardLocator.class) public interface CardProxy extends EntityProxy { . === Entity: === @Table(name = cards) @Entity public class Card { public class CardLocator extends LocatorCard, Integer{ @Override public Card create(Class? extends Card clazz) { return new Card(); } @Override public Card find(Class? extends Card clazz, Integer id) { return ((CardDAO) BeanContextUtil.getBean(CardDAO.class)).find(id); } . === RequestContext: === @Service(value = CardDAO.class, locator = CardServiceLocator.class) public interface CardRequestContext extends RequestContext { === DAO: === @Component public class CardDAO { === Service Locator: === public class CardServiceLocator implements ServiceLocator { @Override public Object getInstance(Class? clazz) { return BeanContextUtil.getBean(CardDAO.class); } } === Bean Util: === public class BeanContextUtil { public BeanContextUtil() { } public static Object getBean(Class? clazz) { HttpServletRequest request = RequestFactoryServlet.getThreadLocalRequest(); ServletContext servletCtx = request.getSession().getServletContext(); ApplicationContext springCtx = WebApplicationContextUtils.getWebApplicationContext(servletCtx); return springCtx.getBean(clazz); } } === Best regards, Alfredo On Sat, Aug 25, 2012 at 10:35 AM, pierre leagault pierrelegault...@gmail.com wrote: my service class is annoted with service and my dao with repository Le jeudi 23 août 2012 23:02:38 UTC+2, pierre leagault a écrit : hi i use spring and gwt (request factory). in my applicationContext, i use context component-scan but my bean is not retrieved. i need to declare it manually. why component scan don't work? my web.xml context-param param-namecontextConfigLocation/param-name param-value/WEB-INF/applicationContext.xml/param-value /context-param listener listener-classorg.springframework.web.context.ContextLoaderListener/listener-class /listener servlet servlet-namerequestFactoryServlet/servlet-name servlet-classcom.google.web.bindery.requestfactory.server.RequestFactoryServlet/servlet-class /servlet servlet-mapping servlet-namerequestFactoryServlet/servlet-name url-pattern/gwtRequest/url-pattern /servlet-mapping welcome-file-list welcome-filewelcomeGWT.html/welcome-file /welcome-file-list thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/xLI56yX5k3MJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: FlowPanel problem.
This should be of help: https://developers.google.com/web-toolkit/doc/latest/DevGuideUiPanels#LayoutPanels HorizontalPanel is a bit trickier. In some cases, you can simply replace it with a DockLayoutPanel, but that requires that you specify its childrens' widths explicitly. The most common alternative is to use FlowPanel, and to use the float: left; CSS property on its children. And of course, you can continue to use HorizontalPanel itself, as long as you take the caveats above into account. Best regards, Alfredo On Thu, Aug 23, 2012 at 11:16 AM, Antoine Lever antoine.e.le...@gmail.com wrote: I want to add a number of DecoratorPanels horizontally until there's no more room and then move onto another row. I'm therefore trying to use a FlowPanel. No matter what I do, the DecoratorPanels appear vertically and not horizontally. What am I doing wrong? Please help! Thank you public void onModuleLoad() { FlowPanel fp = new FlowPanel(); AbsolutePanel ap1 = new AbsolutePanel(); AbsolutePanel ap2 = new AbsolutePanel(); AbsolutePanel ap3 = new AbsolutePanel(); DecoratorPanel dp1 = new DecoratorPanel(); DecoratorPanel dp2 = new DecoratorPanel(); DecoratorPanel dp3 = new DecoratorPanel(); ap1.setSize(50px, 100px); ap2.setSize(50px, 100px); ap3.setSize(50px, 100px); dp1.add(ap1); dp2.add(ap2); dp3.add(ap3); fp.add(dp1); fp.add(dp2); fp.add(dp3); RootPanel.get().add(fp); } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/uYjm10JAoH8J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: JSNI troubles (TypeError)
Decorate your JSNI with some console.log( statements. Open up in your browser your Dev Tools (depends on the browser you are using), look at the console and narrow down the issue there. If you provide a simple concise example that allows the issue to be easily duplicated, I'll be happy to take a look at it here as well. Best regards, Alfredo On Wed, Aug 22, 2012 at 4:36 PM, dhoffer dhoff...@gmail.com wrote: I'm trying to write a little JNSI but am having trouble, I get an exception with this this message (TypeError): Object expected When I run this code: public static native void init(String id) /*-{ var elem = $doc.getElementById(id); addEvent(elem, 'drop', droppedHandler); addEvent(elem, 'dragover', allowDrop); function allowDrop(event) { if (event.stopPropagation)event.stopPropagation(); if (event.preventDefault)event.preventDefault(); return false; } function droppedHandler(event) { if (event.preventDefault)event.preventDefault(); return false; } var addEvent = (function () { if (document.addEventListener) { return function (el, type, fn) { if (el el.nodeName || el === window) { el.addEventListener(type, fn, false); } else if (el el.length) { for (var i = 0; i el.length; i++) { addEvent(el[i], type, fn); } } }; } else { return function (el, type, fn) { if (el el.nodeName || el === window) { el.attachEvent('on' + type, function () { return fn.call(el, window.event); }); } else if (el el.length) { for (var i = 0; i el.length; i++) { addEvent(el[i], type, fn); } } }; } })(); }-*/; Where in my extended RichTextArea I set a unique ID on its element via: private final String id = UUID.uuid(); getElement().setId(id); I don't think the problem is in the body of the method...i think there is something wrong with getting a valid Element to the addEvent() method. Also is there a way to debug this somehow so I can see what is really happening? Thanks, -Dave -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: JSNI and method pointer
This might be useful: http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/animation/client/AnimationScheduler.html Regards, Alfredo On Thu, Aug 16, 2012 at 1:36 PM, Harold Comere harold.com...@gmail.com wrote: Hi all, I have a small JSNI method calling a javascript method. public native void requestAnimFrame() /*-{ window.requestAnimationFrame( ); }-*/; but window.requestAnimationFrame takes a function pointer for parameter as a callback. So i need to give as parameter of the JSNI method a pointer to my JAVA callback function. Basicaly, i want to do : public native void requestAnimFrame( function pointer ?? func) /*-{ window.requestAnimationFrame( func ); }-*/; public void myCallback() { // do things. } public void onModuleLoad() { requestAnimFrame(myCallback); } Any way to do it ? Thanks for your attention ! Regards, Harold -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: OSGi Application nested submodule messaging
Assuming the amount of JS to export is not a lot, I also see exporting JS and exposing it as a very viable alternative as Jen previously pointed out. Something else that comes to mind, a lot more involved I must admit is to use a server-push approach. The header/footer module keeps an open connection with the backend. The backend receives a notification that something changed and pushes back to the UI where the header/footer module makes the appropriate changes. This eliminates the need to poll. I think the exported JS exposed via JSNI it's the simplest and probably one of the cleanest ways to get this done but wanted to throw this other approach out there. Best regards, Alfredo On Mon, Aug 6, 2012 at 12:37 PM, Joseph Lust lifeofl...@gmail.com wrote: Thanks Jen's, I'll give the JSNI and postMessage() methods a try. Sincerely, Joseph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/4tNAb73e9P8J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Random-seeming Uncaught exception escaped with no reference to my code
Chrome has been known to randomly throw those exceptions. That is assuming you are running chrome. See: http://code.google.com/p/google-web-toolkit/issues/detail?id=5778#c65, it might be related to the issue you are experiencing. Best regards, Alfredo On Sat, Aug 4, 2012 at 4:41 AM, Richard richard.wat...@gmail.com wrote: Every so often, while running in Dev Mode, I'll get this exception (or something like it). Is this some under the hood local-only issue I don't need to worry about, or does it hint as something I should fix? Is there anything I can do about it? Uncaught exception escaped com.google.gwt.dev.shell.HostedModeException: Something other than an int was returned from JSNI method '@com.google.gwt.query.client.js.JsCache::length()': JS value of type boolean, expected int at com.google.gwt.dev.shell.JsValueGlue.getIntRange(JsValueGlue.java:266) at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:144) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeInt(ModuleSpace.java:247) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeInt(JavaScriptHost.java:75) at com.google.gwt.query.client.js.JsCache$.length$(JsCache.java) at com.google.gwt.query.client.js.JsObjectArray$.length$(JsObjectArray.java:52) at com.google.gwt.query.client.plugins.events.EventsListener.dispatchEvent(EventsListener.java:372) at com.google.gwt.query.client.plugins.events.EventsListener.onBrowserEvent(EventsListener.java:435) at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1351) at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1307) at sun.reflect.GeneratedMethodAccessor65.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:172) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269) 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:213) at sun.reflect.GeneratedMethodAccessor60.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:172) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363) at java.lang.Thread.run(Thread.java:662) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Af7k-0f7aU4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
CellTable - ListDataProvider - Table not updating on subsequent calls
I am still investigating here on my side, but I have a feeling I might be missing the obvious so if someone knows what I am missing or potentially doing wrong please let me know. Elements: - A CellTable - A ListDataProvider - RequestFactory - A refresh button Scenario: - The CellTable is populated via RequestFactory. - On the first load, all data is shown in the table (all rows are populated) - I have a button (refresh). - The Table can be edited, so as an example I edit the first row, first cell and simply change the text to something else. - I click on the refresh button and load a brand new list of proxies from the server using request factory. - I clear my provider's list and add the new proxies. - The new list doesn't replace the old values (previously edited). Curiosity: I've noticed that after I click refresh, although at first glance the edited cell didn't change, if I click on it once or twice, it'll correctly display the last value loaded from the server. This is very unusual behavior. I've also tried to invoke refresh and flush on the provider itself after adding the new set of proxies. Presenter's code that is invoked for the first load and subsequent ones is shown below: @Override public void readAll() { destinationContext = factory.getRequestFactory().createDestinationContext(); destinationContext.findAll().with(cards, cards.trunks, daysOfWeek, daysOfWeek.hourlySchedule, holidays) .fire(new ReceiverListDestinationProxy() { @Override public void onSuccess(ListDestinationProxy proxies) { view.getDestinationCellTable().getProvider().getList().clear(); view.getDestinationCellTable().getProvider().getList().addAll(proxies); if (proxies != null proxies.size() 0) { view.getDestinationCellTable().getCellTable().getSelectionModel().setSelected(proxies.get(0), true); } } }); } I am still investigating here, but as I previously said if you see that I am simply missing the obvious I would appreciate it if you can let me know. Thank you in advance, Alfredo -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Need list of companies who integrated GWT with their own softwares
http://www.emitrom.com/ All products there use GWT. Regards, Alfredo On Tue, Jul 31, 2012 at 10:43 AM, Venkat reddy.pven...@gmail.com wrote: Hi, can anybody provide me with the list of companies who has implemented GWT with their own apis. Like Vaadin, Sencha, Smart GWT (Isomorphic). Do you know any other. Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/kYNH2Nxq8wIJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: SimplePager within FlowPanel
A few ways I am sure to accomplish this. One possible way that might work for you it's to perhaps employ: LayoutPanel lp = new LayoutPanel(); ListBox list = new ListBox(); list.addItem(Foo); SimplePager sp = new SimplePager(); lp.add(list); lp.add(sp); lp.setWidgetLeftWidth(list, 0, Unit.PCT, 20, Unit.PCT); lp.setWidgetRightWidth(sp, 0, Unit.PCT, 80, Unit.PCT); RootLayoutPanel.get().add(lp); A different approach can be using a HorizontalPanel. Best regards, Alfredo On Sat, Jul 28, 2012 at 8:31 PM, Magnus alpineblas...@googlemail.com wrote: Hi, I have a FlowPanel with two elements: a ListBox and a SimplePager, and I add them in this order. The SimplePager is always below the ListBox, even if there is enough space right beside the ListBox. I want the elements to line up in a row, i. e. that the SimplePager is displayed right beside the ListBox. I have not done something special, just a FlowPanel with two chids. What could be wrong? Thanks Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/leyiI4nFi7UJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Draw graphs using GWT
This might help you. Soon to be released in alpha. See: emitrom-test.com Regards, Alfredo On Jun 19, 2012 8:36 AM, router router route...@gmail.com wrote: Hello, My objective is to draw graph that present the production servers of an IT company. The UI should be something like: ___ __ _ l ServerA l l ServerB l ll -- ll ll ll l___ _ l l_l The company where I work has imposed GWT as a tool to implement the client side. Could you please suggest something like JGraph that I could apply in the client side using GWT. Regards. Regards -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/B0zVEbUt1e4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Draw graphs using GWT
My apologies, I sent the wrong link before :( http://www.emitrom-test.appspot.com/ Regards, Alfredo On Tue, Jun 19, 2012 at 12:02 PM, Alfredo Quiroga-Villamil laww...@gmail.com wrote: This might help you. Soon to be released in alpha. See: emitrom-test.com Regards, Alfredo On Jun 19, 2012 8:36 AM, router router route...@gmail.com wrote: Hello, My objective is to draw graph that present the production servers of an IT company. The UI should be something like: ___ __ _ l ServerA l l ServerB l l l -- l l l l l l l___ _ l l_l The company where I work has imposed GWT as a tool to implement the client side. Could you please suggest something like JGraph that I could apply in the client side using GWT. Regards. Regards -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/B0zVEbUt1e4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
CellTable - Editor Framework - Object deep hierarchy (objects of objects)
I would be interested in any advice/approaches I can get at this point regarding the usage of CellTable in conjunction (if possible) with the Editor Framework. More details below. Hierarchy - Suppose you have a Set of Objects of type A. - A contains a Set of objects of Type B. - B contains a Set of objects of Type C. Say you now wanted to represent the previously described relation via Grids (CellTable). View - A Table in a center panel showing an editable list of objects A. - An East Panel with two regions (North/South). Where the North Region shows the list of editable B object. The South region shows the list of editable C objects. The workflow for this would be something along these lines: - Once the list of A objects is loaded into the CellTable, the associated sub-editors should be all linked together. In other words, something that comes to mind would be upon loading the list of A objects, select the first row in the CellTable. Upon selection, all sub-editors (List B and it's sub-editor C) would then be populated (edit) in the UI. The first row of sub-editor B would also need to be selected to trigger population of the C List. - Since the A Editor along with it's subeditors can all perform add/remove operations, the entire workflow would need to be kept in sync for edit/flush operations. = Driver: = RequestFactory I have some ideas on how to accomplish this, but would really appreciate some feedback since I am not 100% sure on how to best go about it. Thanks in advance for any help. Alfredo -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: CellTable - Editor Framework - Object deep hierarchy (objects of objects)
Really appreciate the response and help. This is definitely saving me a lot of time and confirms my previous suspicions. It really felt like my idea was forcing it to happen. It wasn't flowing and that is usually a good indication for me to hesitate and re-think the approach or look for guidance as I did in this case. I'm really not sure the Editor framework is the best fit here This is the second time I think I see that statement, specifically related to CellTable and Editors. I know this might be kind of a hard question to answer, but here it goes. When should the Editor framework be considered a good fit? In other words, what criteria can be used or what do you recommend to more or less have an idea that the Editor framework might be a good fit? Thanks again for the help. On Thu, Jun 14, 2012 at 12:13 PM, Thomas Broyer t.bro...@gmail.com wrote: On Thursday, June 14, 2012 5:45:01 PM UTC+2, Alfredo Quiroga-Villamil wrote: I would be interested in any advice/approaches I can get at this point regarding the usage of CellTable in conjunction (if possible) with the Editor Framework. More details below. Hierarchy - Suppose you have a Set of Objects of type A. - A contains a Set of objects of Type B. - B contains a Set of objects of Type C. Say you now wanted to represent the previously described relation via Grids (CellTable). View - A Table in a center panel showing an editable list of objects A. I'm really not sure the Editor framework is the best fit here. To begin with, it doesn't play well with CellTable unless you're spending some time building a queue of changes (as in http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellSampler with an explicit commit, which corresponds to the editor's flush()) - An East Panel with two regions (North/South). Where the North Region shows the list of editable B object. The South region shows the list of editable C objects. If all you have are editable lists of objects, you'd probably better manage them by hand, and directly editing the objects, rather than with the Editor framework and its edit/flush flow. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/V7KIzUeTP34J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: CellTable - Editor Framework - Object deep hierarchy (objects of objects)
Makes sense, thanks again for the help. Alfredo On Thu, Jun 14, 2012 at 1:49 PM, Thomas Broyer t.bro...@gmail.com wrote: Basically when the editors fit nicely in the edit/flush flow. This is not the case with CellTwble which notifies you whenever a property changes, vs. waiting for you to flush the changes in batch. This can be worked around quite easily by queueing the changes as in the Showcase, but when you *only* have CellTables it's probably not worth the trouble. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/KqkRkx_CxHEJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Should I use HTML5 canvas just to create my own slideshow reader ?
We are not 100% ready yet, still adding a few more things and improving some areas but this is coming soon to theaters and of course using GWT: Canvas4j See a sneak peek at: http://emitrom-test.appspot.com/ Some of the things you'll be able to do: a) Drag b) Events c) Set all kinds of stuff to the shapes, including animations, opacity, color, you name it. d) Shape editing capabilities. e) We are trying to see if we can get into the first release bounding boxes and a few other goodies for basic shapes. f) Out of the box areas and perimeters for shapes. g) It's obviously all canvas so you won't be limited to the basic set of shapes we'll give you. You can create your own while still being able to animate, drag, etc... A lot of the shapes in the demo are draggable. Do one click on the orange, yellowish rectangle and you'll see a quick animation in action. More to come soon. Alfredo On Mon, Jun 11, 2012 at 11:34 AM, Jens jens.nehlme...@gmail.com wrote: +1 for CSS 3 transitions. Should be easy to implement and browsers that do not support transitions simply switch instant between slides. Small downside: You kick out animations in IE9 (it supports canvas but not transitions). Transition browser support: http://caniuse.com/#search=transition Transition overview: http://css3.bradshawenterprises.com/ A fallback solution for IE could be GWT's Animation class where you could implement your transition by hand. GWT Animation examples: http://fascynacja.wordpress.com/2010/07/01/gwt-animation-small-review/ http://www.giantflyingsaucer.com/blog/?p=1548 As already mentioned the main advantage of using transitions/GWT animations is that your slides can be HTML and thus can contain clickable links, or even animations inside a slide. -- J. Am Freitag, 8. Juni 2012 06:29:00 UTC+2 schrieb regnoult axel: Hello, I am trying to develop my own slideshow reader (you just see the albums fotos in the full screen mode and slide them). I started using HTML5 canvas but just because it was more modern but IE8 does not support HTML5 canvas. So my question is : Should I use HTML5 canvas to do my slideshow (I will need a caroussel and animation between images) ? Could you argue your answer (because maybe HTML5 canvas are more interesting to do more complicated things) ? Thanks you, -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/CY4RZHEbrCAJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Touch4j 2.0 Official GA Release
I believe we've already responded to your question in the forum. See http://www.emitrom.com/node/211 Please post the questions there and one of us or a member of the community will get back to you. Regards, Alfredo On Tue, May 8, 2012 at 12:36 PM, marshall musyimi marshallmusy...@gmail.com wrote: Hey I have just started using touch4j and I want to use it to package it natively mostly for android and iOS... could you link me up to a good guide for doing that. Thank you. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/eSZwcG8icswJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Server detection of client crash
Michael: As Chris pointed out the documentation is actually quite good and for the requirements you have I think this is as good as it gets. By the way, I have no affiliation to RedHat or the errai project. I just happen to know their Product Manager and had a chance to speak to them about it as well as see a demo given to us by the errai Dev lead. Since then, we've tried a few things here with the project and it offers a few things that would be nice for sure to have at some point in GWT itself. From their lead Dev, see below: = Here are some videos demonstrating Errai's performance: The first one shows you the actual load on the Java server process ( 2% CPU broadcasting messages). The second one shows a sustained rate of 1000 messages per second with simple object marshaling. Both of these are running in production mode. Not devmode. http://www.youtube.com/watch?v=ovnclosdzLIfeature=relmfu http://www.youtube.com/watch?v=K5_U2ziucr8 = Let us know how it goes. Best regards, Alfredo On Mon, May 7, 2012 at 8:40 AM, chris chris.ro...@gmail.com wrote: Check out http://www.jboss.org/errai (hope I'm not stating the obvious, as it's pretty easy to locate!) Errai in less than 3 minutes is just a click away. It's gwt integration is very straight forward. I've not done your specific use case, but I could imagine clients registering themselves with the server with a unique message subject, and the server pinging the individual clients, checking they were still operating. On Sunday, 6 May 2012 13:58:54 UTC+10, mmorckos wrote: Hi Alfredo, Thanks for the reply, and no worriea about the delay. Actually, I experimented with a couple of comet packages such as gwt-comet and gwt- websocket, they appeared to be buggy and not quite matching my needs. I certainly have no time to come up with my own mechanism so I guess I'll give Errai a try. I'm wondering if you can point me to to quick start demos and tutorials. I hope it has support for eclipse. Regards, Michael On May 3, 9:28 pm, Alfredo Quiroga-Villamil laww...@gmail.com wrote: Hi Michael: I apologize for the delayed response. If you use GWT and say GWT-RPC for example, this will all be handled for you. Since each client will get its own session. The real challenge is going to be if my memory serves me right according to your initial requirements knowing when your client stopped working for whatever reason, be it that something went south or as you previously mentioned the user simply closed the browser. This is part of the reason why I recommended errai so you would have a nice easy-to-use server push implementation. There are others or you can have your own and rely on Jetty continuations for instance. Again, sorry for the delayed response, had a few emails piled up and missed this one. Alfredo On Tue, May 1, 2012 at 10:54 PM,mmorckosmikey.morc...@gmail.com wrote: Thanks for the prompt reply. I've been experimenting with gwt for a little while and due to time constrains I'd rather not try other tools, but thanks for the suggestion. I have another question (excuse my little experience with web application), I'd like to know how the a Servlet on the server-side can efficiently keep track of all connected clients since in my application, for each connected client the Servlet will instantiate a regular Java object with its own state for each client. Basically each client will interact with its own object through the Servlet. I know this is a bit of an overhead, but as I mentioned before I'm building a web-tier for a back-end platform that's not web oriented. Regards, Michael On Apr 27, 4:59 pm, Alfredo Quiroga-Villamil laww...@gmail.com wrote: Thanks. I think Joseph said it before and I agree with him. If it's something of that nature, I would likely try to stay from web stuff. However, that doesn't mean is not possible or there are no ways to ensure what you want. I recently had the chance to speak with a few guys at RedHat about a project they have been working on based on GWT. I've been meaning to let people know about it because I was really impressed by a couple of things I saw. One of them can truly help you and make your requirement easier or a lot easier to implement. http://www.jboss.org/errai A few things: a) You don't need jboss to use it. b) Take special attention to CDI (crazy cool and useful). c) They've done something really interesting where you truly have a transparent web/server application, blurring completely the lines between server and UI. Via an annotation you have Server Push. Their Dependency Injection I thought was also nicer than GIN for the UI. Although I use GIN and love it! So what you could do, assuming that you truly want to keep
Re: Server detection of client crash
Hi Michael: I apologize for the delayed response. If you use GWT and say GWT-RPC for example, this will all be handled for you. Since each client will get its own session. The real challenge is going to be if my memory serves me right according to your initial requirements knowing when your client stopped working for whatever reason, be it that something went south or as you previously mentioned the user simply closed the browser. This is part of the reason why I recommended errai so you would have a nice easy-to-use server push implementation. There are others or you can have your own and rely on Jetty continuations for instance. Again, sorry for the delayed response, had a few emails piled up and missed this one. Alfredo On Tue, May 1, 2012 at 10:54 PM, mmorckos mikey.morc...@gmail.com wrote: Thanks for the prompt reply. I've been experimenting with gwt for a little while and due to time constrains I'd rather not try other tools, but thanks for the suggestion. I have another question (excuse my little experience with web application), I'd like to know how the a Servlet on the server-side can efficiently keep track of all connected clients since in my application, for each connected client the Servlet will instantiate a regular Java object with its own state for each client. Basically each client will interact with its own object through the Servlet. I know this is a bit of an overhead, but as I mentioned before I'm building a web-tier for a back-end platform that's not web oriented. Regards, Michael On Apr 27, 4:59 pm, Alfredo Quiroga-Villamil laww...@gmail.com wrote: Thanks. I think Joseph said it before and I agree with him. If it's something of that nature, I would likely try to stay from web stuff. However, that doesn't mean is not possible or there are no ways to ensure what you want. I recently had the chance to speak with a few guys at RedHat about a project they have been working on based on GWT. I've been meaning to let people know about it because I was really impressed by a couple of things I saw. One of them can truly help you and make your requirement easier or a lot easier to implement. http://www.jboss.org/errai A few things: a) You don't need jboss to use it. b) Take special attention to CDI (crazy cool and useful). c) They've done something really interesting where you truly have a transparent web/server application, blurring completely the lines between server and UI. Via an annotation you have Server Push. Their Dependency Injection I thought was also nicer than GIN for the UI. Although I use GIN and love it! So what you could do, assuming that you truly want to keep this web based is to have the server contacting the UI every x amount of seconds. If no response is received from the UI, then you know that something is not right. That would be better I think than polling the server. Again, this could be done without errai, but take a look at it if you get a chance. Best regards, Alfredo On Fri, Apr 27, 2012 at 4:44 PM, mmorckos mikey.morc...@gmail.com wrote: What I meant by crash is that the client doesn't cleanly. For instance, the user can simply close the web-page, or the client's machine can lose connection to the server. I'm asking if there is a way that the server can detect that instantly (some sort of a heartbeat ping between the client and the server, unlike a session timeout). On Apr 27, 10:47 am, Alfredo Quiroga-Villamil laww...@gmail.com wrote: Can you please define or explain what you mean by whenever a client crashes? Thank you in advance, Alfredo On Fri, Apr 27, 2012 at 1:49 AM,mmorckosmikey.morc...@gmail.com wrote: Hello, I'm intending to develop a web-based frontend UI for a control system in a research lab. For safety purposes, it's vital that when a client crashes, the server is notified immediately and dispatches a stop signal to all connected machinery. I'm new to gwt and would like to know if there is a way to know whenever a client crashes on the server side, specifically inside a RemoteServiceServlet. Regards, Michael -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group
Re: GWT Mobile App Widgets
Mobile web libraries are based on webkit. Firefox is not. Mobile devices use webkit. To test the app you can try to use a webkit based browser such as chrome or safari. So if you are happy with that library I recommend you continue using it and test it as previously mentioned. Regards, Alfredo On Apr 30, 2012 10:35 AM, AgitoM karel.m...@gmail.com wrote: Does anyone know a decent library that contains GWT Widgets for the development of Mobile Apps in GWT? Over the past few days I've been experimenting with gwt-mobile-gui. Though this library is great, it doesn't appear to be working on all browsers. (or at least I can't get it to work on Firefox). So basically I am looking into other Libraries. Does anyone have any suggestions? Reason I am looking for a mobile widget library is because I am developing a mobile app. I developed a framework for a mobile app myself, and it works fine, but it looks too ugly. If no other library is available, does anyone know any tutorial of guide to how to develop nice looking GUI in GWT? Hope anyone can offer some advice. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Mobile App Widgets
Yes, if you are trying to cover that case, then you must absolutely find a mobile library that can potentially support any of the installable browsers in mobile devices. The important case to always keep in mind I would say is over engineering. Unless it's a requirement from the client, I would ask myself the question, what percentage of the market am I trying to support? Ideally the answer would be 100%, reality it's a different story. This is more the case since mobile web is fairly young. Even the web after all these years would be a nightmare if you removed GWT and libraries like it that have tried to make the developer experience better by hiding the browser differences or better said quirks. About a year and a half ago, perhaps more already, there was a point where the future of mobile web for developers looked bright. It was all going to be based on webkit or at least most of it and the world was going to be a happy place. Fast forward and we find a world where there is an incredible amount of fragmentation in the mobile market place with multiple versions of webkit, many don't exactly behaving consistently. Throw into the mix your request and it's almost starting to feel like we are right back to the web as we know it today where may browsers exists with difference in behavior not only between them but even among versions. Best of luck and wish your project the best. Alfredo On Mon, Apr 30, 2012 at 2:01 PM, AgitoM karel.m...@gmail.com wrote: Well the app runs fine on iPhone Safari, Google Chrome, and the Android Default Browser. However the app does not work on Firefox and Opera installations on the Android platform, so that could be a problem. So still hope someone can make a suggestion. On Apr 30, 10:53 pm, Alfredo Quiroga-Villamil laww...@gmail.com wrote: Mobile web libraries are based on webkit. Firefox is not. Mobile devices use webkit. To test the app you can try to use a webkit based browser such as chrome or safari. So if you are happy with that library I recommend you continue using it and test it as previously mentioned. Regards, Alfredo On Apr 30, 2012 10:35 AM, AgitoM karel.m...@gmail.com wrote: Does anyone know a decent library that contains GWT Widgets for the development of Mobile Apps in GWT? Over the past few days I've been experimenting with gwt-mobile-gui. Though this library is great, it doesn't appear to be working on all browsers. (or at least I can't get it to work on Firefox). So basically I am looking into other Libraries. Does anyone have any suggestions? Reason I am looking for a mobile widget library is because I am developing a mobile app. I developed a framework for a mobile app myself, and it works fine, but it looks too ugly. If no other library is available, does anyone know any tutorial of guide to how to develop nice looking GUI in GWT? Hope anyone can offer some advice. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT RequestBuilder not working in Chrome and FireFox
SOP violation. You seem to be sending a request crossing domains. Look up Same Origin Policy online for more info. Regards, Alfredo On Apr 27, 2012 8:37 AM, the.wizard willy.jui...@gmail.com wrote: Hi everyone, I have a problem with RequestBuilder. When I run my code that using RequestBuilder in IE 8, it's working well, but in Chrome and FireFox, it just keep returning empty string. When I tried to debug it, the response is com.google.gwt.http.client.Request$1@5a7667be, and have no headers, the code is 0. I also get an exception like this : 07:33:50.734 [ERROR] [chameleonmain] Uncaught exception escaped com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: Remote connection lost at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java: 354) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 218) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 136) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 269) 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:213) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.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: 172) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java: 292) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 546) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 363) at java.lang.Thread.run(Thread.java:662) Caused by: java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java: 92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65) at java.io.BufferedOutputStream.flush(BufferedOutputStream.java: 123) at java.io.DataOutputStream.flush(DataOutputStream.java:106) at com.google.gwt.dev.shell.BrowserChannel $ReturnMessage.send(BrowserChannel.java:1310) at com.google.gwt.dev.shell.BrowserChannel $ReturnMessage.send(BrowserChannel.java:1315) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java: 340) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 218) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 136) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 269) 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:213) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.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: 172) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java: 292) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 546) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 363) at java.lang.Thread.run(Thread.java:662) Is there any way to solve this problem? Here is my code : RequestBuilder request = new RequestBuilder(RequestBuilder.GET, url); request.setHeader(Content-Type, text/html); RequestCallback callback = new RequestCallback() { @Override public void onResponseReceived(Request request, Response response) { String userIdentity =
Re: How to stop the move to Place
Hi: I am not 100% sure what you are trying to do, but in your current activity, you can override mayStop(). That would be one possible way to intercept and potentially cancel going to a new place. If that doesn't do what you need, please provide a little example of what the ultimate goal is to see what options are available depending on your use case. Best regards, Alfredo On Fri, Apr 27, 2012 at 8:33 AM, st1ll scofield...@gmail.com wrote: Hello. I need to create model window, which appears, when I try to go from current page via links. I may initiate the creation of window into onPlaceChangeRequest (PlaceChangeRequestEvent.Handler ()). But I dont know, how to interrupt the process of transition. It is 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT SERIALIZATION PROBLEM
Hard to tell without seeing code or stack trace. Please provide: 1. A bit of code illustrating the main players. DTO, Service, ServiceAsync, ServiceImpl method. 2. Stack Trace for the failure. Regards, Alfredo On Wed, Apr 25, 2012 at 6:20 AM, Nitheesh Chandran nithe...@aviamatica.com wrote: Hello Guys , I have a problem ,I want to save an object to the database. I passed the object to the server using a function. Like this http://www.easywayserver.com/blog/how-to-serializable-object-in-java-2/. But my RPC is getting failed every time. What will be the problem ? i used isSerializable marker interface for serialization. Cant we send client object to the server through RPC? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to add External Java Classes to GWT Project?
Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Dynamic CompositeCell
If you have an n number of values that should be represented in one single column, I would go for a tree. Its ability to expand nodes when needed, gives the user a chance to have it expanded or collapsed. So in your case the column would contain: Top Of Tree CheckBox 1 CheckBox 2 CheckBox 3 CheckBox n Regards, Alfredo On Wed, Apr 25, 2012 at 9:16 PM, Aoxiang Cui cuiaoxi...@google.com wrote: The title is too short, let me explain and simplify my situation. Say, I have a dto which contains a list of Booleans. I need a column whose cell looks like below: item_1 checkbox_1 item_2 checkbox_2 ... item_n checkbox_n If n is a fixed number, it is fine to use CompositeCell. The problem is we don't know the size of list and each cell can have different list size. Is there any way to extend CompositeCell so as to make it support my situation. Or maybe I should write a new Cell? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/slhetcYlVBsJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Thoughts on User defined time in the UI
I don't recall seeing a TimePicker in GWT. I do recall seeing one and I found it in the GWT incubator (URL at the end of my response). Options: a) Create something fairly simple now to get the job done. Three SelectionCell's if you want the values to be unmodifiable and save yourself the trouble of validation if you used TextBoxes. This is perhaps one of the simplest ways to go. b) Create something a bit more sophisticated. c) Take a look at the previous incubator implementation. It's GWT only, so you might be able to resuscitate it and use it. http://code.google.com/p/gwt-incubator-lib/source/browse/trunk/GWT-Incubator-TimePicker/src/main/java/com/gwtincubator/widgets/client/timepicker/TimePicker.java Regards, Alfredo On Wed, Apr 25, 2012 at 11:56 AM, GlasgowSteve shsp...@gmail.com wrote: I would like to have a field in my UI which allows the user to pass a 24h time - I will then use the time to do a search on events occuring after that time. There should not be a date asociated with the time on the UI. The time passed should be in the format hh:mm:ss. I'm using plain ol' GWT - extensions or addtional libraries are unavailble here for all intents and purposes (I've seen a few options in gwt-ext and smartGWT but would rather avoid. What would be the best method of allowing users to define time in the UI using core GWT? A textbox which assumes 6 digits (hhmmss) that can then be parsed? Three seperate text boxes for hour minute second which would be easier to validate? Extending a Calander Widgit? Another Widgit I've overlooked that should be considered? Or something I haven't considered at all? Thanks for your help -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Disable the display of values of a ListBox
To better understand the question, why is setEnable(false) not an option? What is the behavior you would like to see? Regards, Alfredo On Fri, Apr 27, 2012 at 5:57 AM, Ali Thabet thabet.al...@gmail.com wrote: Hello, is there a way to disable the display of values of the ListBox after the user click? I do not want to use the method setEnable(false). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Entities in GWT 2.4
https://developers.google.com/web-toolkit/doc/latest/DevGuideRequestFactory Look there for ValueProxy. They provide a concise example. Regards, Alfredo On Fri, Apr 27, 2012 at 5:41 AM, Ashu swathi.kambhamp...@gmail.com wrote: Hi, I am using GWT2.4 version. how to use value proxies without entities? If possible please provide me some sample example. Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/VZMr_N4-kSsJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to stop the move to Place
Can you please provide the flow for this particular case. I think it'll help me and others to better understand, sorry if I am not following 100% still :( Something like: 1. I have a view with a table. 2. The user edits and clicks save. 3. I show them a Modal Dialog with three buttons. 4. The third button triggers navigation to go to a new place... Something like that to get a better idea. Thanks in advance, Alfredo On Fri, Apr 27, 2012 at 10:28 AM, st1ll scofield...@gmail.com wrote: Thanks for the answer. This method (mayStop()) is not suitable to me for one reason - I need to get to the window, except for OK and Cancel buttons were also a button Save at the touch of which happened to save the data into the database. I have not found a way to make non-standard window, caused by this method On Friday, April 27, 2012 4:41:51 PM UTC+3, Alfredo Quiroga-Villamil wrote: Hi: I am not 100% sure what you are trying to do, but in your current activity, you can override mayStop(). That would be one possible way to intercept and potentially cancel going to a new place. If that doesn't do what you need, please provide a little example of what the ultimate goal is to see what options are available depending on your use case. Best regards, Alfredo On Fri, Apr 27, 2012 at 8:33 AM, st1ll scofield...@gmail.com wrote: Hello. I need to create model window, which appears, when I try to go from current page via links. I may initiate the creation of window into onPlaceChangeRequest (PlaceChangeRequestEvent.Handler ()). But I dont know, how to interrupt the process of transition. It is 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/-xYLh1GQF1sJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Server detection of client crash
Can you please define or explain what you mean by whenever a client crashes? Thank you in advance, Alfredo On Fri, Apr 27, 2012 at 1:49 AM, mmorckos mikey.morc...@gmail.com wrote: Hello, I'm intending to develop a web-based frontend UI for a control system in a research lab. For safety purposes, it's vital that when a client crashes, the server is notified immediately and dispatches a stop signal to all connected machinery. I'm new to gwt and would like to know if there is a way to know whenever a client crashes on the server side, specifically inside a RemoteServiceServlet. Regards, Michael -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to stop the move to Place
Interestingly enough, have to admit, I don't see at a glance unless I am missing something an easy way to accomplish what you need. We need something to completely halt execution and act upon the result of the action/handler (ok or cancel result for example), which is ultimately what the PlaceController is doing via a DefaultDelegate using a Window.confirm in mayStop. I will try to make some time over the weekend and look into this. Hopefully we are both just missing the obvious and there is an easy solution to it and someone will respond to the thread with it. Regards, Alfredo - 2012/4/27 st1ll scofield...@gmail.com: The situation is the following: 1) There is a table cell which can be edited 2) the user has not saved the changes, and clicks on any item on the navigation menu (try to move to another page) 3) You receive a modal window with the message - There are unsaved changes. Do you want to keep them? There are three buttons - Save, Do not Save, Cancel 4) By clicking the Save button, the data is sent to the server and takes you to a page that the user has selected previously on the menu 5) If the button is pressed, Do not save just takes you to a page that the user has selected previously 6) If you press Cancel modal window just closes, switching to a different page is not carried out I'm sorry to write in English until I get bad, so to understand my speech can be hard :) пятница, 27 апреля 2012 г., 17:36:58 UTC+3 пользователь Alfredo Quiroga-Villamil написал: Can you please provide the flow for this particular case. I think it'll help me and others to better understand, sorry if I am not following 100% still :( Something like: 1. I have a view with a table. 2. The user edits and clicks save. 3. I show them a Modal Dialog with three buttons. 4. The third button triggers navigation to go to a new place... Something like that to get a better idea. Thanks in advance, Alfredo On Fri, Apr 27, 2012 at 10:28 AM, st1ll scofield...@gmail.com wrote: Thanks for the answer. This method (mayStop()) is not suitable to me for one reason - I need to get to the window, except for OK and Cancel buttons were also a button Save at the touch of which happened to save the data into the database. I have not found a way to make non-standard window, caused by this method On Friday, April 27, 2012 4:41:51 PM UTC+3, Alfredo Quiroga-Villamil wrote: Hi: I am not 100% sure what you are trying to do, but in your current activity, you can override mayStop(). That would be one possible way to intercept and potentially cancel going to a new place. If that doesn't do what you need, please provide a little example of what the ultimate goal is to see what options are available depending on your use case. Best regards, Alfredo On Fri, Apr 27, 2012 at 8:33 AM, st1ll scofield...@gmail.com wrote: Hello. I need to create model window, which appears, when I try to go from current page via links. I may initiate the creation of window into onPlaceChangeRequest (PlaceChangeRequestEvent.Handler ()). But I dont know, how to interrupt the process of transition. It is 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/-xYLh1GQF1sJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/WcyEyCnmDZQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received 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
Re: Server detection of client crash
Thanks. I think Joseph said it before and I agree with him. If it's something of that nature, I would likely try to stay from web stuff. However, that doesn't mean is not possible or there are no ways to ensure what you want. I recently had the chance to speak with a few guys at RedHat about a project they have been working on based on GWT. I've been meaning to let people know about it because I was really impressed by a couple of things I saw. One of them can truly help you and make your requirement easier or a lot easier to implement. http://www.jboss.org/errai A few things: a) You don't need jboss to use it. b) Take special attention to CDI (crazy cool and useful). c) They've done something really interesting where you truly have a transparent web/server application, blurring completely the lines between server and UI. Via an annotation you have Server Push. Their Dependency Injection I thought was also nicer than GIN for the UI. Although I use GIN and love it! So what you could do, assuming that you truly want to keep this web based is to have the server contacting the UI every x amount of seconds. If no response is received from the UI, then you know that something is not right. That would be better I think than polling the server. Again, this could be done without errai, but take a look at it if you get a chance. Best regards, Alfredo On Fri, Apr 27, 2012 at 4:44 PM, mmorckos mikey.morc...@gmail.com wrote: What I meant by crash is that the client doesn't cleanly. For instance, the user can simply close the web-page, or the client's machine can lose connection to the server. I'm asking if there is a way that the server can detect that instantly (some sort of a heartbeat ping between the client and the server, unlike a session timeout). On Apr 27, 10:47 am, Alfredo Quiroga-Villamil laww...@gmail.com wrote: Can you please define or explain what you mean by whenever a client crashes? Thank you in advance, Alfredo On Fri, Apr 27, 2012 at 1:49 AM,mmorckosmikey.morc...@gmail.com wrote: Hello, I'm intending to develop a web-based frontend UI for a control system in a research lab. For safety purposes, it's vital that when a client crashes, the server is notified immediately and dispatches a stop signal to all connected machinery. I'm new to gwt and would like to know if there is a way to know whenever a client crashes on the server side, specifically inside a RemoteServiceServlet. Regards, Michael -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Please help with CellTable
Hi Blake: I will try to take a look later at 1 and 2, they are CSS controlled. For now: 4. See below for an example: MultiSelectionModelString multiSelectionModel = new MultiSelectionModelString(); CellTableString cellTable = new CellTableString(); cellTable.setSelectionModel(multiSelectionModel); 3. Handler for the selection model below: // Handler cellTable.getSelectionModel().addSelectionChangeHandler(new SelectionChangeEvent.Handler() { @Override public void onSelectionChange(SelectionChangeEvent event) { SetString selected = ((MultiSelectionModelString) cellTable.getSelectionModel()).getSelectedSet(); if (selected != null) { } } }); Hope it helps. Regards, Alfredo On Fri, Apr 27, 2012 at 5:27 PM, Blake McBride blake1...@gmail.com wrote: Greetings, I need a sort of listbox where each row is made up of several columns. I don't want to edit the data in the listbox. I just want to select one or more rows, click a button, and be able to know which rows were selected. Looking around it seems like CellTable is close. I put it together as described in the various examples. It works as described but not how I want. Specifically: 1. I would rather each row not be shown alternately light blue and white background. I want the rows all displayed with a white background. 2. While I can select individual row (they get highlighted in yellow), it also places a border around the column within the selected row. I am not editing the column within the row. I just want to select the row, not the column within the row. How can I configure it to just highlight the selected row and not add any borders? 3. When a row is selected, how can I tell which one is selected programmatically? 4. How can I control single / multiple row selection? Thanks for the help! Blake McBride -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Please help with CellTable
Also part of 4 is SingleSelectionModel. So you can either use Single or Multiple as the SelectionModel depending on what you need. Regards, Alfredo On Fri, Apr 27, 2012 at 9:36 PM, Alfredo Quiroga-Villamil laww...@gmail.com wrote: Hi Blake: I will try to take a look later at 1 and 2, they are CSS controlled. For now: 4. See below for an example: MultiSelectionModelString multiSelectionModel = new MultiSelectionModelString(); CellTableString cellTable = new CellTableString(); cellTable.setSelectionModel(multiSelectionModel); 3. Handler for the selection model below: // Handler cellTable.getSelectionModel().addSelectionChangeHandler(new SelectionChangeEvent.Handler() { @Override public void onSelectionChange(SelectionChangeEvent event) { SetString selected = ((MultiSelectionModelString) cellTable.getSelectionModel()).getSelectedSet(); if (selected != null) { } } }); Hope it helps. Regards, Alfredo On Fri, Apr 27, 2012 at 5:27 PM, Blake McBride blake1...@gmail.com wrote: Greetings, I need a sort of listbox where each row is made up of several columns. I don't want to edit the data in the listbox. I just want to select one or more rows, click a button, and be able to know which rows were selected. Looking around it seems like CellTable is close. I put it together as described in the various examples. It works as described but not how I want. Specifically: 1. I would rather each row not be shown alternately light blue and white background. I want the rows all displayed with a white background. 2. While I can select individual row (they get highlighted in yellow), it also places a border around the column within the selected row. I am not editing the column within the row. I just want to select the row, not the column within the row. How can I configure it to just highlight the selected row and not add any borders? 3. When a row is selected, how can I tell which one is selected programmatically? 4. How can I control single / multiple row selection? Thanks for the help! Blake McBride -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Disable TreeItem selection in Tree
Syed: Not sure if you ever got around to it. A few strategies can be used here. I wasn't able to find something out of the box to do it. However, a few approaches can be used in this case. I took what I thought would be the easiest/fastest to illustrate how to accomplish it. Essentially, I am wrapping the TreeItem's with a FlowPanel and playing with the CSS properties a bit. You can add the logic that you need and use something similar for only the nodes you want. Tree tree = new Tree(); String items[] = {Uno, Dos, Tres}; for (String item : items) { TreeItem topitem = tree.addItem(item); InlineLabel label = new InlineLabel(Hoja - + item); label.getElement().getStyle().setOpacity(0.5); FlowPanel layer = new FlowPanel(); layer.getElement().getStyle().setCursor(Cursor.AUTO); layer.add(label); topitem.addItem(layer); } Best regards, Alfredo On Mon, Apr 23, 2012 at 11:50 AM, Syed Fazal Ahmad syedfah...@gmail.com wrote: Hi There: I have created a Tree and have added the TreeItems to it. I would like to disable selection of certain nodes depending on my business rules. However, I have not been able disable selection of a given node. If I could even gray-out the node it would be helpful. I will appreciate if someone could provide insight on how to achieve the above. Thanks for your help Syed -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: TabLayoutPanel with custom widget for tabs
There are probably a few ways to accomplish this. I had a few minutes so I hacked something up, in a hurry, so not sure if this is the best way to do it, but see below. I would do something along these lines, create a TabItem that contains an image (the x you suggested for close for example.). A nice to have would be to change the cursor when hovering over the TabItem for example. This would allow me to close tabs for instance and act upon it. I would probably enhance TabPanel to do all this, but you should get an idea. See below to see a TabItem being added to the TabPanel consisting of text and a clickable image with a CloseHandler. TabItem tabItem = new TabItem(Tab 1); TabLayoutPanel tabPanel = new TabLayoutPanel(2.5, Unit.EM); tabPanel.add(new Image(icons.close()), tabItem); dockPanel.addNorth(tabPanel, 25); tabItem.addCloseHandler(new CloseHandlerDestinationViewImpl.TabItem() { @Override public void onClose(CloseEventTabItem event) { System.out.println(Closing here!); event.getTarget().removeFromParent(); } }); private class TabItem extends Composite implements HasCloseHandlersTabItem { private FlowPanel tabItem; private InlineLabel tabItemTittle; private String text; private Image image; public TabItem(String title) { tabItem = new FlowPanel(); initWidget(tabItem); tabItemTittle = new InlineLabel(title); tabItem.add(tabItemTittle); image = new Image(icons.asteriskOrange()); tabItem.add(image); addHandlers(); } /** * @return the text */ public String getText() { return text; } /** * @param text the text to set */ public void setText(String text) { this.text = text; tabItemTittle.setText(text); } @Override public HandlerRegistration addCloseHandler(CloseHandlerTabItem handler) { return addHandler(handler, CloseEvent.getType()); } private void addHandlers() { image.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { CloseEvent.fire(TabItem.this, TabItem.this); } }); } } On Tue, Apr 24, 2012 at 11:12 PM, bryanb webbt...@gmail.com wrote: I'm trying to get custom tabs with a closing X image next to the label. Something like Blah X with the X a clickable image. I cannot get the tab widget to display correctly. Below is a simplified example which shows the problem. The Bad Tab should float the label left and the X right. On Chrome this will cause the tab to be detached from the tab panel. i.e. it display about 4px above the main tab panel. In FF the tab isn't detached, but the floating doesn't seem to work. Has anyone got something similar working ? TabLayoutPanel panel = new TabLayoutPanel(32, Unit.PX); panel.setSize(300px, 300px); HTML hello = new HTML(Bad Tabnbsp); hello.getElement().getStyle().setProperty(float, left); HTML exit = new HTML(X); exit.getElement().getStyle().setProperty(color, red); exit.getElement().getStyle().setProperty(float, right); FlowPanel fp = new FlowPanel(); fp.add(hello); fp.add(exit); panel.add(new Label(Blah), fp); hello = new HTML(Good Tab); exit = new HTML(X); exit.getElement().getStyle().setProperty(color, red); fp = new FlowPanel(); fp.add(hello); fp.add(exit); panel.add(new Label(Blah), fp); RootLayoutPanel root = RootLayoutPanel.get(); root.add(panel); -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Couple CSS questions
If you get a chance send out a screenshot of the computed style and regular style after inspecting the input element in your dev console (firebug or chrome dev tool, to the right of your previous screenshot). There you can also in real time modify the element css property to get a feel for what is going on. A screenshot of that will help in this case to see if your css property was actually added. Regards, Alfredo On Apr 24, 2012 8:03 PM, Mike Dee mdichiapp...@gmail.com wrote: But the question remains, why doesn't changing the gwt-DateBox CSS affect the appearance of the DatabBox? In my case, the standard.css was replaced with my own. So, why aren't my changes having any effect? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/I8Heevutr0EJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Internationlization
See the answer provided by Colin here: http://stackoverflow.com/questions/9062977/gwt-dynamic-internationalization Regards, Alfredo On Sat, Apr 21, 2012 at 3:34 AM, milind bhuktar mkbhuk...@gmail.com wrote: Hello All, I am new guy in gwt,I have did some basic project in GWT, and now I trying to do Internationalization in gwt. everything is fine Internationalization is done but it reload application,now my question is how to Internationalization without reload whole application . Thank ..to read -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: IntegerBox not restricting input to integers in GWT 2.4.0
If I am not mistaken that class is as the description you found says: Not completed. Parent constructor is as follows: protected ValueBox(Element element, RendererT renderer, ParserT parser) { super(element, renderer, parser); // BiDi input is not expected - disable direction estimation. setDirectionEstimator(false); if (LocaleInfo.getCurrentLocale().isRTL()) { setDirection(Direction.LTR); } assert InputElement.as(element).getType().equalsIgnoreCase(text); } The assertion is for text and I don't see any validators for say Integer. So at first glance, didn't look to see if there is more going on behind the scenes, yeah, it's incomplete. Regards, Alfredo On Thu, Apr 19, 2012 at 8:57 AM, Wayne Marsh wayne.ma...@gmail.com wrote: Am I missing something? It just acts like a normal TextBox for me. Here's the simplest example: import com.google.gwt.core.client.EntryPoint; import com.google.gwt.user.client.ui.IntegerBox; import com.google.gwt.user.client.ui.RootPanel; /** * Entry point classes define codeonModuleLoad()/code. */ public class IntegerBoxExample implements EntryPoint { public void onModuleLoad() { IntegerBox box = new IntegerBox(); RootPanel.get().add(box); } } I can type letters into it. Is it just broken (perhaps related to the notice Experimental API: This class is still under rapid development, and is very likely to be deleted. Use it at your own risk. note in the documentation)? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/zGmwodizajMJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: JSNI differences between hosted mode + production
Hi Marklar: The first test I would do, to really validate The JS file is loading correctly is to go to the deployed instance and:d - Fire up the browser. - Open the console (firebug, chrome dev tools, etc..) - Go to the console, attempt to find the function (JS) you are trying to get to from your GWT code and see if it is truly exported and accessible within the window scope. Regards, Alfredo On Thu, Apr 12, 2012 at 9:06 AM, marklar ddil...@gmail.com wrote: Hi, I'm running into an issue with JSNI that I was hoping someone could help me with. I am using an external JS file to generate QR codes and it works great when running from the development server in Eclipse. When I push it to my 'production' server, however, it fails to find the function I am trying to call. The JS file is loading correctly, it just can't refer to that function. The specific error I am getting is: Uncaught ReferenceError: qrcode is not defined I have double checked for typos. I've had trouble finding any documentation about this, any help would be very much appreciated. Thanks, Marklar -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/s6LWpQRCcdcJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: change of projectname.html file name
Change it to something like index.html. Then you have to open up your run configuration and adjust the new name there. Depending on your setup you might also have to edit to be safe your web.xml welcome-file-list. Best regards, Alfredo On Sat, Apr 14, 2012 at 12:19 AM, harish saharan harishksaha...@gmail.comwrote: Dear all, Can anyone tell me that how can i change the name of projectname.html file of any gwt project . And if i change this file name where other place i hv to change . -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Understanding Composite
Things are quite nested there, but if you need the same instance of Action as the one you have in your Frame class, well then you have to either pass it all the way down, or expose it in your Frame class so you can access it. If you need a completely brand new instance, then create one or inject it in your TreeC composite. I have a feeling that your nested approach is complicating a rather simple widget. I would reconsider how you are creating things and change it so that it lends itself better to manipulation and accessibility. Otherwise, you'll likely end up with a super nested widget. I don't know, something just doesn't feel right about the approach, maybe it's just me. Best regards, Alfredo On Fri, Apr 20, 2012 at 4:27 AM, learning coding learning.codin...@gmail.com wrote: Hi I have problem in understanding a composite. In Frame class i have verticalPanel(vp) when vp is loaded , getAction and get Button is visible on vp WHen click on button there is a getTree is executed and there is treeC class initialized where there is customised tree. and treeitem. I want to use action object in class TreeC How to do it. Plz Help. public class Frame{ public frame () { initWidget(getFramePanel()); } Private VerticalalPanel getFramePanel() { if (vp== null) { vp= new VerticalalPanel(); vp.setSize(1442px, 750px); vp.add(getAction());// **are composites** vp.add(getButton) // **are composite** } return vp; private Action getAction() { if (action == null) { action = new Action(); // In action class there are 7 buttons and 2 methods //setDisplayRepository(), and setDisplayFolder() action.setDisplayRepository(); } return action; } } private Button getButton() { if (btn == null) { btn = new Button(Click); btnProperties.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { hp.add(getTree()); } }); btn.setSize(37px, 36px); } return btnProperties; } private TreeCmis getTreeC() { if (treeC == null) { treeC = new TreeC(); treeC.setWidth(360px); } return treeCmis; } } -- public class TreeC extends Composite{ private Tree repo; //constructor public TreeC { createTree() } Void createTree(){ /* here i need to to use the object action declared in frame class For using action.setDisplayfolder*/ } } plz help Thanks In Advance -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: IntegerBox not restricting input to integers in GWT 2.4.0
I respectfully see this slightly different. An IntegerBox should prevent the user from typing non-integers from the start with ways to customize the error message, etc... It's nice that it's generified, but one might expect it to have a validator built-in. Not that it would be terrible to add one as you point out, but it should be built-in since in this case the name is IntegerBox. If it would have been a NumberField or something along those lines, then the same could have been accomplished like GXT does by setting a property editor that could be Integer, Double, etc. So I don't see it doing 100% what it should do. I see this as a potential feature request. An easy one to add, nevertheless, not one that the user should have to implement. Best regards, Alfredo On Fri, Apr 20, 2012 at 11:23 AM, Jens jens.nehlme...@gmail.com wrote: Everything that extends ValueBox (or better ValueBoxBase) like IntegerBox, DoubleBox, etc. allows you type everything you want into that boxes. The difference to an ordinary TextBox is that ValueBoxBase has a getValue() and getValueOrThrow() method: 1.) getValue(): returns the defined type (e.g. Integer, Double, ...) if the content of the box is parseable to that type (see IntegerParser, DoubleParser, ..). If its not parseable or the box is empty then null is returned. 2.) getValueOrThrow(): does the same as getValue() but if the content is not parseable you can catch the ParseException. So in case of an IntegerBox you can type everything, but once you call getValueOrThrow() you will see if its really an Integer in that box or not. If you want to disallow letters in an IntegerBox you have to implement that yourself. In general I found it easier to just give some visual feedback that the content isn't parseable anymore. Maybe for live feedback something like: integerBox.addKeyUpHandler(new KeyUpHandler() { void onKeyUp(...) { try { getValueOrThrow(); clearErrorCss(integerBox); } catch(ParseException e) { setErrorCss(integerBox); } } }); So these boxes are not broken. They are working as designed but you just expected something different. -- J. Am Donnerstag, 19. April 2012 14:57:06 UTC+2 schrieb W Marsh: Am I missing something? It just acts like a normal TextBox for me. Here's the simplest example: import com.google.gwt.core.client.**EntryPoint; import com.google.gwt.user.client.ui.**IntegerBox; import com.google.gwt.user.client.ui.**RootPanel; /** * Entry point classes define codeonModuleLoad()/code. */ public class IntegerBoxExample implements EntryPoint { public void onModuleLoad() { IntegerBox box = new IntegerBox(); RootPanel.get().add(box); } } I can type letters into it. Is it just broken (perhaps related to the notice Experimental API: This class is still under rapid development, and is very likely to be deleted. Use it at your own risk. note in the documentation)? Am Donnerstag, 19. April 2012 14:57:06 UTC+2 schrieb W Marsh: Am I missing something? It just acts like a normal TextBox for me. Here's the simplest example: import com.google.gwt.core.client.**EntryPoint; import com.google.gwt.user.client.ui.**IntegerBox; import com.google.gwt.user.client.ui.**RootPanel; /** * Entry point classes define codeonModuleLoad()/code. */ public class IntegerBoxExample implements EntryPoint { public void onModuleLoad() { IntegerBox box = new IntegerBox(); RootPanel.get().add(box); } } I can type letters into it. Is it just broken (perhaps related to the notice Experimental API: This class is still under rapid development, and is very likely to be deleted. Use it at your own risk. note in the documentation)? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/kaR928iw2dQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: IntegerBox not restricting input to integers in GWT 2.4.0
I've been using NumberField for years in GXT. I seem to recall it working pretty well if my memory serves me right. There I can specify pretty easily the type as I previously mentioned, Integer, Double, etc.. perhaps I got spoiled, who knows. Recently I've been slowly switching to using a GWT only approach (GWT UI Widgets that is. I've obviously been using GWT for years) I always try to keep in mind that GWT is a tool kit. However, when a class is named IntegerBox, to be used in a UI, yeah I expect it to be type safe and also do what its name implies in the UI as well as programmatically. In this case only allow Integers to be typed in. In any case, I'll hang on to this email and instead of talking more, perhaps when I have some free time I'll just get to it and see if I can add the implementation for it, test it across browsers and submit it for a patch review. No promises since I am really busy these days, but we'll see. Appreciate the responses. Alfredo On Fri, Apr 20, 2012 at 12:28 PM, Jens jens.nehlme...@gmail.com wrote: I respectfully see this slightly different. An IntegerBox should prevent the user from typing non-integers from the start with ways to customize the error message, etc... It's nice that it's generified, but one might expect it to have a validator built-in. Not that it would be terrible to add one as you point out, but it should be built-in since in this case the name is IntegerBox. If it would have been a NumberField or something along those lines, then the same could have been accomplished like GXT does by setting a property editor that could be Integer, Double, etc. So I don't see it doing 100% what it should do. Beside the fact that its not that easy to implement this behavior in a cross browser fashion as Thomas said, you should also keep in mind that GWT is a Toolkit and in my opinion a Toolkit should give developers a more general solution which can be further specified by developers and their requirements (validation behavior) instead of providing a too specific solution that you maybe can't modify well. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/RLtrB5vaIJQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: IntegerBox not restricting input to integers in GWT 2.4.0
@Jen: Your code and something along the lines to what you proposed would certainly work and be flexible enough. @Andrei: When a user presses a button and nothing happens, many users would assume that your app is broken (they did press a letter for some reason!) You always know when/what the user typed. The app would not look broken if upon the keydown and read of the key you know that it doesn't meet the specification and right away let the user know that You can only type here Alfredo On Fri, Apr 20, 2012 at 2:38 PM, Jens jens.nehlme...@gmail.com wrote: I always try to keep in mind that GWT is a tool kit. However, when a class is named IntegerBox, to be used in a UI, yeah I expect it to be type safe and also do what its name implies in the UI as well as programmatically. In this case only allow Integers to be typed in. Some years ago when doing ordinary desktop applications I would probably expect the same. But today developing web applications my mind shifted and I found it more important to be liberal on the user input but tell the user if they have done something wrong. This just feels more like things work on the web and I want to preserve this feeling even in web applications because thats what people are used to when using the web. Also inexperienced users may think their keyboard is somehow broken if nothing happens when typing a letter into an input box because its just so uncommon on the web to swallow user input. In any case, I'll hang on to this email and instead of talking more, perhaps when I have some free time I'll just get to it and see if I can add the implementation for it, test it across browsers and submit it for a patch review. No promises since I am really busy these days, but we'll see. Maybe it can be as easy as: IntegerBox() { this(false); //makes sure that, by default, you get the same behavior as of today } IntegerBox(bolean strictMode) { super(Document.get().createInputElement(), IntegerRenderer.instance(), IntegerParser.instance(), strictMode ? IntegerInputValidator.instance() : null); } along with an additional constructor in ValueBox - ValueBoxBase taking the input validator. If an input validator is present, ValueBoxBase attaches a key handler and routes key events through the validator (which can decide to swallow the key). That way you can opt-in to your desired behavior (you dont change behavior of existing apps) and you pretty much only have to implement input validators. Appreciate the responses. You are welcome -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/PG8WHFAnWBEJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Avoiding DTOs in RPC
Additional thoughts below: My approach has been to create DTOs for each case. I was now thinking of using the JPA relationships and lazy loading instead I would recommend to go the lazy loading route in this case. I think having a unique DTO will make things easier to maintain instead of creating specific DTOs for each case. If you are using GWT-RPC and you are in this case populating the DTO's yourself, you can check the user's role for example and based on that, lazy or eagerly fetch what you need. If you are using hibernate, this can be accomplished in a few different ways. Your default configurations are typically lazy there. In the UI, you will always receive the same DTO. There you should at that point either know the user's role or check based on the response you received. The fields that do not apply to the user based on role should then be null and you should check for that. On Thu, Apr 19, 2012 at 12:05 PM, Thomas Broyer t.bro...@gmail.com wrote: On Thursday, April 19, 2012 5:46:07 PM UTC+2, Thomas Lefort wrote: I want to avoid having to use DTOs for transferring my Users with RPC. Basically I have a number of rpc calls for my users, and based on the configuration and the user rights, etc... there is a number of fields I want to hide. My approach has been to create DTOs for each case. I was now thinking of using the JPA relationships and lazy loading instead. For instance I store additional information (bio, etc...) in an Additional object, with a onetoone relationship and lazy loading. So I guess based on the call I just need to load the field or not, instead of filling up a dedicated DTO each time I send a User with holes. Does that make sense? any one has cons on this idea? will RPC send empty fields or will it be more clever and just not add the fields that are null? I don't know JPA very well, but I think lazy-loading will get in your way here. What you need is to conditionally load the Additional object, and in the case you don't, you want the field to be 'null'. AFAIK, this is pretty easy with JPA. That being said, maybe detaching your object from the session would be enough to have a 'null' in the field, and more importantly have the getter not throw any exception but return simply return the null; but that doesn't really change the fact that you'd better ask JPA to load the Additional object if you need it (so it could use a JOIN instead of 2 SELECTs for instance) than use lazy-loading (and calling the getter as a trigger to load the Additional object) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/chqJD0S9QZMJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: CellTable - How to programmatically start editing a cell.
Ralf: Appreciate the response. It sure looks better than what I was going to do, which was copy/paste the whole class, etc... just to get to the member I need. I wonder if I should open an enhancement or something along those lines for this. One should be able to easily and programmatically start editing a CellTable. Something similar happens with SelectionCell where options is private and final. The SellectionCell at that point becomes very static since I can't seem to find a way to add/remove a new option to it. Thank you again for the response. I think I am going to open cases for both of these today. It shouldn't be that hard to patch I think. Best regards, Alfredo On Sat, Apr 14, 2012 at 10:09 AM, R.K.P. Pisters r.k.p.pist...@gmail.comwrote: I remember facing the same problem some time ago. In the end I just dispatched a click event on the cell, like so: Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() { @Override public void execute() { int i = getRowIndex(); int j = getColumnIndex(); NativeEvent clickEvent = Document.get().createClickEvent(1, 0, 0, 0, 0, false, false, false, false); cellTable.getRowElement(i).getCells().getItem(j).dispatchEvent(clickEvent); } }); I realize this is not a very elegant solution, all the more so since dispatching the event will fail in case you're using a SelectionCell instead of an EditTextCell (see my question herehttps://groups.google.com/forum/?fromgroups#!topic/google-web-toolkit/nLfM8nrJ9UQ). So if anybody has a better idea, please share it with us. Ralf -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/KjzapcBdCtAJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to programmatically access the value of this widget
In CompositePanel expose a getter for your texbox and then invoke getValue() on it? Best regards, Alfredo On Sat, Apr 14, 2012 at 10:17 AM, tong123123 tong123...@gmail.com wrote: as shown in the attached image, if I want to access the value of the textbox with value value2 (the textbox in the second row after the add button), how to do it as seem there is no a specific name to access it. the code is as follow: package com.mycompany.project.client; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.FlowPanel; import com.google.gwt.user.client.ui.Widget; public class HATestPanel extends FlowPanel{ Button btnAdd = new Button(Add); Button btnListWidget = new Button(List Widget); public void onLoad(){ this.add(btnAdd); btnAdd.addClickHandler(new ClickHandler(){ @Override public void onClick(ClickEvent event) { // TODO Auto-generated method stub CompositePanel compositePanel = new CompositePanel(); ((HATestPanel)((Button) event.getSource()).getParent()).add(compositePanel); } }); } } and the implementation of CompositePanel is as follow: package com.mycompany.project.client; import com.google.gwt.user.client.ui.FlowPanel; import com.google.gwt.user.client.ui.HorizontalPanel; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.ListBox; import com.google.gwt.user.client.ui.TextBox; public class CompositePanel extends HorizontalPanel{ protected void onLoad(){ ListBox lb = new ListBox(); TextBox txt2 = new TextBox(); lb.addItem(field1); lb.addItem(field2); lb.addItem(field3); this.add(lb); this.add(txt2); } } maybe my design is poor, any better method suggested? in reality, the listbox is used for user select searc field, and the textbox is for user enter search value for that search field. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Rc2QBu_9m6MJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: CellTable - How to programmatically start editing a cell.
Hi Thomas: Thanks for the response. 1. extend the cell to automatically switch to an isEditing() state on some trigger Unless I bypass access by using JSNI, ViewData and isEditing are both package access. I typically avoid doing what you suggested, although, I have to admit, I've had to do it quite a lot in the past due to the significant number of things with package access that I've come across. I think I have sufficient info to use the suggested work arounds. However, I still opened an issue for this as an enhancement/bug. One should be able to say: cellTable.getView().startEdit(row,cell) or better cellTable.startEdit(row,cell) or something along those lines without having to use all these work arounds. Thanks all for your responses/help. Alfredo On Sat, Apr 14, 2012 at 10:54 AM, Thomas Broyer t.bro...@gmail.com wrote: On Friday, April 13, 2012 7:16:10 PM UTC+2, Alfredo Quiroga-Villamil wrote: Scenario is as follows: - CellTable with a column containing an EditTextCell. - Add new record to the ListDataProvider. - I can edit and do all the good stuff by hand to the newly added record in the CellTable. Requirement: - Programmatically call a starttEdit on say the first cell of the newly created row/record. My investigation results: After going through the code and investigating, all roads seem to point to ViewData in EditTextCell. Specifically, ViewData in EditTextCell has setEditing(boolean) which should do the trick. However, ViewData has package access. Before I go and start to override, copy/paste things to be able to access the ViewData member I need, I figured I ask first since this seems like a basic operation when adding new records to a CellTable. I am thinking that I am very likely missing something. IMO, you should: 1. extend the cell to automatically switch to an isEditing() state on some trigger 2. share something from your presenter/view/whatever with the cell to tell it which value/index to auto-edit 3. trigger a redraw of the table, to trigger the auto-edit in the Cell (this will probably be your setRowData that adds the new record) To access the ViewData class, the easiest is to use JSNI, which allows bypassing access checks. For instance, when the auto-edit is triggered in your overridden render() method, to create the ViewData (before calling setViewData(context.getKey(), viewData) and then super.render()), use: private native Object createViewData(String text) /*-{ return @com.google.gwt.cell.client.EditTextCell::new(Ljava/lang/String;)(text); }-*/; -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/BUF4Zk_6K7cJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
CellTable - How to programmatically start editing a cell.
Scenario is as follows: - CellTable with a column containing an EditTextCell. - Add new record to the ListDataProvider. - I can edit and do all the good stuff by hand to the newly added record in the CellTable. Requirement: - Programmatically call a starttEdit on say the first cell of the newly created row/record. My investigation results: After going through the code and investigating, all roads seem to point to ViewData in EditTextCell. Specifically, ViewData in EditTextCell has setEditing(boolean) which should do the trick. However, ViewData has package access. Before I go and start to override, copy/paste things to be able to access the ViewData member I need, I figured I ask first since this seems like a basic operation when adding new records to a CellTable. I am thinking that I am very likely missing something. Any help/pointers are appreciated. Thanks, Alfredo -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Call for action: Time to rethink a road-map and more frequent updates for GWT.
While I think that the GWT community is one of the best ones out there and I have no doubt about our ability to pick this up should it ever be dropped by Google, I have to agree with Joseph. I've already been told a few times that the future of GWT is uncertain. Again, while I know and I am confident in the ability of this community and contributors to run with it, a rough idea for things to come or a list of things that the community would like to see implemented would go a long way in the enterprise world as Joseph mentioned. On Tue, Apr 3, 2012 at 11:34 AM, Joseph Lust lifeofl...@gmail.com wrote: Alan, Thanks as always for your courteous replies. I'm grateful for the efforts the Google developers put into GWT, as any other enterprise building such a framework would most certainly charge the Earth for it while also crippling its functionality in exchange for customer lock-in. Google just makes great software. However, I work in a large enterprise where our GWT Community of Practice group must make a case for why any new application should use GWT. It is important to management to know the future of GWT and a roadmap is how this is commonly done. While I don't personally think GWT will suffer from the recent project pogroms at Google, a roadmap and rough release schedule will lend greater confidence to others in the stability and longevity of the framework needed before a company is willing to build multi-million dollar projects with it. If GWT retains buy-in at Google, I don't understand why such planning would be detrimental to the GWT team. As I see it, such public planning will only drive more companies and startups to join the GWT bandwagon. Sincerely, Joseph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/5rzWGy06oFgJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Touch4j 2.0 Official GA Release
Our official GA release for Touch4j has arrived! Want to see it in action before reading further and see how simple it is to use it? Go to: http://touch4j.appspot.com/ and if you want to see how the code would look, simply click on Source. In this new package you will find support for: - Maps - Hardware/Device - Charts - UI and all of it from within one single code base. Create a web mobile app or simply package it to native if needed, you decide. We've tried very hard to provide a complete kitchen sink demonstrating some of the main features that are found in this release. It can be checked out from: http://svn.emitrom.com/gwt4touch2ks/trunk/kitchensink/ More details as well as the download package itself can be found at: http://www.emitrom.com/touch4j We have had a tremendous amount of help from our community. We like to really thank all our users who provided tons of feedback. Your help is really appreciated and invaluable. We also like to thank as usual the GWT community as well as the GWT team, without you, none of this would be possible. Thank you all and we truly hope that you find the package useful and easy to use. Happy Coding! The Emitrom Team -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Exporting Instance Methods to Hand-Written Javascript
At first glance it seems like: PreviewPane::imageSelected(Ljava/lang/String;Ljava/lang/String;)) takes two arguments, in this case two Strings. The JSNI error seems to indicate that you are not passing the two arguments as per the method signature. I would think that you would end up with something like this: PreviewPane::imageSelected(Ljava/lang/String;Ljava/lang/String;))(string1, string2); Best regards, Alfredo On Mon, Apr 2, 2012 at 4:26 PM, Geoffrey Wiseman geoffrey.wise...@gmail.com wrote: I have a piece of GWT code that I wanted to invoke from outside handwritten JavaScript. There's an example shown here under Calling a Java method from Handwritten JavaScript: https://developers.google.com/web-toolkit/doc/latest/DevGuideCodingBasicsJSNI That example uses a static method; I can make that work, but my first instinct was that i'd rather use an instance, so using the syntax shown under JSNI invocations, I tried: /* package */ native void exportJavascriptMethods( PreviewPane x ) /*-{ $wnd.imageSelected = $entry(this @ca.cpp.spike.gwtapplet.client.PreviewPane::imageSelected (Ljava/lang/String;Ljava/lang/String;)); }-*/; That doesn't work. Eclipse (and the GWT compiler) complain: JavaScript parsing: Missing ) after argument list PreviewPane.java If I replace 'this' with 'x', same problem. If I take 'this' out and leave it binding to the static method: /* package */ native void exportJavascriptMethods( PreviewPane x ) /*-{ $wnd.imageSelected = $entry(@ca.cpp.spike.gwtapplet.client.PreviewPane::imageSelected (Ljava/lang/String;Ljava/lang/String;)); }-*/; All is well in the world. So -- is that just not an option, exporting an instance method like that? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/mC9EADg67lcJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Gwt4Touch, Gwt4Titanium
Feel free to post questions, ask for feedback, etc... also in the forum. http://www.emitrom.com/forum Best regards, Alfredo On Wed, Mar 21, 2012 at 11:02 AM, Lehel sipos.le...@gmail.com wrote: Hi! Does anybody have some experience with Gwt4Touch, Gwt4Titanium? thx, Lehel -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Is multi-level fetch depth with RequestFactory possible?
Rogelio: This is likely in the Roo/Hibernate question, more hibernate than Roo. I replied to you in the Spring forum. We'll come back here if we see that's GWT related. I suspect is not. Best regards, Alfredo On Tue, Mar 20, 2012 at 3:22 PM, Rogelio Flores rogelio.flo...@gmail.comwrote: I have an issue that might be JPA/Hibernate-related, but it could also be related to RequestFactory, so bear with me pls: I have the following JPA @Entity-s: class Profile { @OneToMany(cascade = CascadeType.ALL) ListSetting settings = new ArrayListSetting(); // other properties... } class Setting { @ManyToOne SettingDefinition definition; // other properties... } class SettingDefinition { // some properties - no relationships defined here } When a list of Profiles is displayed on a GWT UI (produced by Spring Roo, which uses RequestFactory), all their properties are displayed fine, except the individual Settings in the List have null SettingDefinitions even if they're not null in the db (I checked). I tried fetching eagerly and forcing it to not be null with: @ManyToOne(fetch=FetchType.EAGER, optional=false) SettingDefinition definition; and also increasing the hibernate.max_fetch_depth to more than three (AFAIK, 3 is the default), but I can't get the Settings to have their corresponding SettingDefinitions when they come from the server. Is there a setting or something that can be done to force these referenced entities so that they are fetched? (I posted this issue on the Roo forum but I've seen no response there: http://forum.springsource.org/showthread.php?124490-Fetching-eagerly-on-Lists-1-n If this can be solved by the RequestFactory framework, this should be the right place to ask). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: hibernate , getting data List from database problem
* package tr.edu.gsu.yds.client.controller.ogrenci; import java.util.List; import tr.edu.gsu.yds.client.remote.YdsRemoteService; import tr.edu.gsu.yds.client.remote.YdsRemoteServiceAsync; import tr.edu.gsu.yds.client.view.ogrenci.sinavislemleri.SinavTarihiGoruntuleme; import tr.edu.gsu.yds.shared.domain.SinavTakvim; import com.google.gwt.core.client.GWT; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.rpc.AsyncCallback; public class OgrenciSinavTarihiGoruntulemeController { private YdsRemoteServiceAsync ydsRemoteServiceAsync = GWT.create( YdsRemoteService.class ); private SinavTarihiGoruntuleme ogrenciSinavTarihiGoruntulemeSayfasi; public OgrenciSinavTarihiGoruntulemeController( SinavTarihiGoruntuleme ogrenciSinavTarihiGoruntulemeSayfasi ) { this.ogrenciSinavTarihiGoruntulemeSayfasi = ogrenciSinavTarihiGoruntulemeSayfasi; } public void send() { ydsRemoteServiceAsync.getSinavTakvimList( new AsyncCallbackListSinavTakvim() { public void onFailure( Throwable caught ) { Window.alert(Failure Error); } //Just Here , result returns the first row 3 times , instead of all the 3 different rows. public void onSuccess( ListSinavTakvim result ) { if( result != null ) { //Put the data in to a celltable ogrenciSinavTarihiGoruntulemeSayfasi.getSinavTakvimCell().refresh( result ); } else { Window.alert( No exam found! ); } } } ); ogrenciSinavTarihiGoruntulemeSayfasi.getOkeyButton().addClickHandler( new ClickHandler() { @Override public void onClick( ClickEvent event ) { String date = ogrenciSinavTarihiGoruntulemeSayfasi.getSinavTarihWidget().getSelectedDate().toString(); Window.alert( date ); } } ); } } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to share an RPC RemoteServiceServlet between apps?
Rob: If I am not mistaken you can override in your ServiceImplementation a couple of methods (your choice which one). In RemoteServiceServlet, you will find: getSerializationPolicy doGetSerializationPolicy Likely the latter will be easier to override. There, moduleBaseURL should help you do what you want. You'll have to set it to the same baseURL regardless of what the client sends. Hope that helps. Regards, Alfredo On Fri, Mar 9, 2012 at 10:10 PM, Rob rob.nikan...@gmail.com wrote: Hi, I want to have a service used by several modules. I put the implementation servlet in a root web app, and connected to it, from the client side, by specifying the endpoint like this... ServiceDefTarget t = (ServiceDefTarget)service; t.setServiceEntryPoint(/commonService); So /commonService is url path that maps to the servlet. But when it connects I get errors on the server side: ERROR: The serialization policy file '/forums/discussions/7B344C69AD493C1EC707EC98FE148AA0.gwt.rpc' was not found; did you forget to include it in this deployment? So it appears that on the server side, in the shared web app, it's looking for an rpc file with a path forums/discussions which is specific to the client module. I can get things to work by copying these files to the shared web app, but that means I'll have to create copies of the .rpc files at different paths for every client that uses the shared service. Is there way way to avoid this by telling the servlet where to find the rpc files, or ... ? thanks, Rob -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/iIzZ0K7XhEgJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How can I run a GWT application in full screen mode
I am not sure if this applies to the question asked here, but there are some cases where it is convenient to hide the address bar for example. This is particularly useful for mobile web apps where you want the app to look and feel like it's native and you want to do it serving it as a webpage, not using the phonegap or other's packaging mechanisms out there. I didn't read the whole thing but Marco you might want to take a look at: https://groups.google.com/group/iscroll/browse_thread/thread/dc84f2f87a459d0?tvc=2pli=1 Best regards, Alfredo On Tue, Mar 6, 2012 at 3:11 PM, JoseM jose.a.marti...@gmail.com wrote: Please don't post the same question on different threads.. But the real answer is that it can't be done anymore with modern browsers -- which is a good thing. I know that Chrome and/or Firefox both allow you to override javascript which tries to hide the address bar and other elements. I personally hate when websites used to do that and I would be more inclined to navigate away from the page and/or block the site if it did. In addition, doing a window.open like that could be interpreted as a popup by some browsers which will trigger a popup blocker and the window would not open at all (unless the user instructed it to do so). If you want full screen you can ASK the user to go into full screen mode (such as by pressing F11), or you can deploy the application to computers which you totally control and turn into kiosks that run the browser in full screen moe. On Tuesday, March 6, 2012 1:55:13 PM UTC-5, Marco wrote: Have you found a solution in the meantime? @Stevko: Good to know but do you have a solution with example anyway? On Tuesday, March 6, 2012 1:55:13 PM UTC-5, Marco wrote: Have you found a solution in the meantime? @Stevko: Good to know but do you have a solution with example anyway? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/bAbkPfc6NUsJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Design question - Multiple step customer registration process
A view with a Card Layout (DeckLayout) should help you there. You are essentially building a wizard like form at that point. In your wizard-like form, you can activate each view and every time you hit next/back you are updating your wizard model which you can then access upon submit or Finish. Best regards, Alfredo On Fri, Mar 2, 2012 at 12:13 PM, Olivier olivier.true...@gmail.com wrote: Hi Everyone, I have been playing around with GWT / GAE for a few weeks now and really appreciate the functionalities offered. The web application I am building is designed around MVC as explained in the various tutorials. However for one type of process (customer registration form), we have to split the process in three steps. Each step should be rendered on a different screen. That is, -- Step 1 : The customer fills-in some information then pushes on the Next button -- Step 2 : The customer fills-in additional information then pushes on the Next button -- Step 3 : The customer provides the final information then pushes on the Register button These three steps can be easily coded using a different view for each screen and pushing on the Next button generates an event in the event bus. However, coding this way would mean that if the user pushes the back button on the web browser, the information in the form would be lost. Do you have any design pattern to code this kind of multiple step process in GWT ? Thanks a lot for your help, Olivier -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MVP event generation
I suspect the call that creates the chart is in your presenter. After you add the widget, you should call it. Best regards, Alfredo On Tue, Feb 21, 2012 at 1:43 AM, Nitheesh Chandran nithe...@dotentreprise.com wrote: Yeah that helped me to display the DialogBox when the user clicks on the cell. i have used like this db.setWidget(new LineView()); Now the DialogBox is displaying but i am creating a chart in the LineView() with database records. That chart is not coming. But when i simply use by passing a token like this in the AppController (not using any click event ,just passing the token chart ) ,it works if (token.equals(chart)) { presenter = new ChartGenericPresenter(rpcService,eventBus,new LineView()); If i use the above code. The chart will come in the DialogBox. But unfortunately i want to display the chart depending on the user event. So like you said i used db.setWidget(new LineView()); And now DialogBox is showing but no chart inside On Feb 21, 11:16 am, Alfredo Quiroga-Villamil laww...@gmail.com wrote: It seems as if the call: *db.setWidget((IsWidget) new ChartGenericPresenter(rpcService,eventBus,new LineView()));* is not accurate. You are passing to a DialogBox, which is ultimately extending SimplePanel, a presenter and not a widget. The flow would be more or less as follows: 1. Instantiate the view. 2. Instantiate your presenter. 3. Set the presenter on your view. 4. Add the view to your widget (DialogBox) in this case. Regards, Alfredo On Tue, Feb 21, 2012 at 12:09 AM, Nitheesh Chandran nithe...@dotentreprise.com wrote: Hello , I am working on a MVP project. I want to generate an event when the user clicks on the FlexTable cell. So using the MVP pattern i have created a event class and its corresponding handler interface in the event package. And the following way i fired the event. I want anyone of you to tell me is this the correct way of generating events and i am getting exceptions when i am implementing some what to do code on the successful event generation The code below shows the event firing when the user clicks on the cell of the FlexTable table.addTableListener(new TableListener() { @Override public void onCellClicked(SourcesTableEvents sender, int row, int cell) { eventBus.fireEvent(new ChartEvent()); } }); Suppose i want to generate a chart when the user clicks on the cell ,i would be writing the code for that like this eventBus.addHandler(ChartEvent.TYPE, new ChartEventHandler() { @Override public void ChartEvent(ChartEvent event) { Window.alert(event created ); DialogBox db=new DialogBox(); db.setWidget( (IsWidget) new ChartGenericPresenter(rpcService,eventBus,new LineView())); db.show(); } }); } Where ChartGenericPresenter is the presenter and LineView() is its view. I am getting the following exception while i am using this com.google.gwt.event.shared.UmbrellaException: One or more exceptions caught, see full set in UmbrellaException#getCauses at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java: 129) at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:124) at com.google.gwt.event.dom.client.DomEvent.fireNativeEvent(DomEvent.java: 116) at com.google.gwt.user.client.ui.Widget.onBrowserEvent(Widget.java: 172) at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1321) at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1277) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) 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.jav a: 167) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingFo rReturn(BrowserChannelServer.java: 326) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann elServer.java: 207) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 132) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 561
Re: Example and source of how I like to build wigets and use unit testing on them
Found the site to be really useful; loved the event binding link. Great work! Thanks, Alfredo On Sun, Feb 19, 2012 at 3:47 PM, Brandon Donnelson branflake2...@gmail.comwrote: I made a small demo of how I like to build units or widgets in GWT. I also show how I test those units. https://sites.google.com/site/mygwtexamples/home/testing/widgets Brandon Donnelson http://c.gwt-examples.com http://www.arcbees.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/oOAgiaqQQeEJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Highlight a div
After you add the style, give it a few seconds and remove it. You can try something like: new Timer() { @Override public void run() { // Remove the CSS that was added after 5 seconds for example. } }.schedule(5000); Regards, Alfredo On Fri, Feb 17, 2012 at 2:41 PM, Deepak Singh deepaksingh...@gmail.comwrote: Hi All, I need to highlight a particular div area after a certain event somewhere else. I can change the background color but i need to achieve it by highlighting the div only for few milliseconds. How can i do this? Thaks Deepak Singh -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: All of a sudden CSS style is missing in the host page
Umm, kind of hard to tell but some questions I would ask myself: - Is this in Dev Mode or it happens both in dev and after the application is built? - Is this when the app is first loaded or the result of going somewhere, making an ajax call, loading a widget etc...? - app stopped showing up properly in a browser. Is it under source control? Do you know the last time it worked as expected? What changed, what was added to that portion of the code? Those are things that I would look into first. More drilling to come after those two questions are answered. Ideally but not easy perhaps would be to narrow it down to a small example that duplicates the issue. Regards, Alfredo On Tue, Feb 7, 2012 at 4:04 PM, jogo stanislav.tvaru...@gmail.com wrote: Hi Guys, my GWT app stopped showing up properly in a browser. The cause, at least what I think, is the missing piece of CSS in a DIV element. But I can't figure out, what is causing this issue. So any help is appreciated. Basically, what I've found out is this: Before the HTML markup for the host page was like this: div style=position: absolute; left: 0px; top: 0px; right: 0px; bottom: 0px; div style=position: absolute; z-index: -32767; top: -20ex; width: 10em; height: 10ex; nbsp;/div div style=position: absolute; overflow-x: hidden; overflow-y: hidden; left: 0px; top: 0px; right: 0px; bottom: 0px; Now it looks like this. div style=position: absolute; left: 0px; top: 0px; right: 0px; bottom: 0px; div style=position: absolute; z-index: -32767; top: -20ex; width: 10em; height: 10ex; nbsp;/div div style=position: absolute; overflow-x: hidden; overflow-y: hidden; 'left: 0px; top: 0px; right: 0px; bottom: 0px;' is missing in the DIV element. The DIV has 0x0 px size and therefore the content (app) wrapped in the DIV is not displayed at all. When I manually apply the missing CSS style in Web Inspector, the app shows up correctly. This stuff is generated by GWT, so I have no idea how to fix it and what could have caused this. Can you direct me in the right direction? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Activity Places - Remove Add of a widget for every new activity - Why?
Tx, appreciate the response. Alfredo On Sun, Feb 5, 2012 at 11:19 AM, Thomas Broyer t.bro...@gmail.com wrote: I don't think adding/removing is any more costly than showing/hiding, but even then, you could make it work that way (show/hide) by simply providing a DeckLayoutPanel (or an AcceptsOneWidget wrarpper around a DeckPanel). The problem with such an approach is when your activities don't reuse their views, you'd absolutely need a way to clean-up the widget cache. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/bvTvUgq93fAJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Activity Places - Remove Add of a widget for every new activity - Why?
Hello All: I had a quick question regarding the implementation of Activity Places. During the implementation of AP, specifically when working with the activity, one overrides a method: public void start(AcceptsOneWidget panel, EventBus eventBus) { As seen above, the interface indicates that the container panel only takes on widget or child. The consequence of this is that every time a new activity is called, the child of the container panel is removed, the widget to be added is also removed from any potential parent and then added to the container panel. Assuming I interpreted the code that handles this correctly, my question is: Why the decision of adding/removing Vs having a Container Panel with a Card Layout that takes widgets activating them when needed. In this case it could be done in the activity start area. I have tried to look around to see if somebody else asked this before and I might even be missing the obvious, but I am particularly interested in the rational behind the add/remove vs card layout approach here. I am thinking it might be related to saving resources perhaps by having less elements added to the DOM, but one would think there is a penalty also to pay when adding/removing these views whenever a new place in the application is reached. Appreciate in advance any explanations/clarifications regarding this. Thanks, Alfredo -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT RPC Problem
This is a limitation superimposed by browsers and it varies depending on which browser you are dealing with. My suggestion if you have a number of requests, each taking an X amount of time is to look into a Server Push approach. Regards, Alfredo On Wed, Jan 25, 2012 at 1:54 PM, permi permi.re...@gmail.com wrote: Hi, I am able to call max 6 RPC calls at a time .how I can increase the calls. Ex: I have a 10 methods ,each method is take 5 min time to complete the task.so when I start to call all methods at a time I can able to call max 6 methods, reaming 4 calls in queue i think,after completion of earlier call reaming 4 calls going to call. help me ,how I can call 10 methods at a time and get the response. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: onFailure in AsyncCallback only called on timeout
Unfortunately, unless I am mistaken, there is no way to tell if a script tag failed to load or not and why it failed in this case. So all you are getting is a timeout exception letting you know that something went wrong. One approach for JSONP, is to ensure on the server side that all exceptions are caught. In the response message to the jsonp request, you can then send the status code or the exception message, but the actual http response code to the jsonp request must be a 200. Hope this helps. Regards, Alfredo On Thu, Jan 26, 2012 at 10:12 AM, Fred fred.dahlb...@gmail.com wrote: Hi, I'm trying to understand when the onFailure method of AsyncCallback is called. Even when I get for example a HTTP 500 response the function is never called. I've added a more specific question to Stackoverflow: http://stackoverflow.com/questions/9019123/in-gwt-when-is-the-asynccallbackonfailure-method-called-in-a-json-p-request-us Kind Regards Fredrik Dahlberg -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Calling instance method from JSNI code
public void setName(String value) { Window.alert(setName); } Needs to be static. Remove the this. reference from the JSNI to call it. Regards, Alfredo On Wed, Jan 25, 2012 at 12:25 PM, Maxim Schäfner maxim.schaef...@ewetel.net wrote: Hi, i'm trying to call an instance java method from a JSNI method like decriped in GWT JSNI documentation. But somehow I'm still getting exceptions: My code: public void bla() { jsni_method(JavaScriptObject event);// event is an dropEvent, but that doesn't matter } public static native void jsni_method(JavaScriptObject event) /*-{ alert('alert1'); var name = @com.company.MyClass::getName(Lcom/google/gwt/core/ client/JavaScriptObject;)(event); alert(name); this.@com.company.MyClass::setName(Ljava/lang/String;)(name +); // doesn't matter if with added quotes alert('alert2'); }-*/; public static native String getName(JavaScriptObject event) /*-{ var n = 'jkkjkjhjjh'; alert(n); return n; }-*/; public void setName(String value) { Window.alert(setName); } - I'm getting the following: alert('alert1'); alert('jkkjkjhjjh'); alert(name); //name = jkkjk.. and then: com.google.gwt.event.shared.UmbrellaException: One or more exceptions caught, see full set in UmbrellaException#getCauses at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java: 129) at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:129) at com.google.gwt.event.dom.client.DomEvent.fireNativeEvent(DomEvent.java: 116) at com.google.gwt.user.client.ui.Widget.onBrowserEvent(Widget.java: 177) at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1351) and Caused by: java.lang.ClassCastException at java.lang.Class.cast(Class.java:2990) at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:169) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java: 57) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 172) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java: 337) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 218) What's the problem? Thanks. Regards, Max -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Using java.util.Collections in GWT application
If the code you have posted is meant to run in the client, the synchronized if I am not mistaken does not apply. There are no threads there. Regards, Alfredo On Dec 27, 2011 9:38 AM, fjarenales fjarena...@gmail.com wrote: Hi folks, I'm trying to use Collections and the method synchronizedList. I have something like this: private ListUserBean myList = Collections.synchronizedList(new ArrayListUserBean()), where UserBean is a java-bean used in my application. When i try to compile this, i get the next error: The method synchronizedList(ListUserBean) is undefined for the type Collections. May i have to configure or, maybe, inherit something in my GWT application. Kind Regards, Javier -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Why GWT HTTP client can't receive HTTP response
Unf. not a whole lot. Easiest might be to: UI - Your server - XML API Between the UI and your server you can use a variety of protocols. From your server, then consume the API you need and expose it to the client. Regards, Alfredo On Dec 27, 2011 12:25 AM, Justin@GWT justi...@gmail.com wrote: Thanks. Is there any workaround about the SOP? I would like to fetch some XML data, but not JSON data. I tried to enable the cross-site host mode, but I was told cross-site hosted mode not yet implemented by GWT. Best Regards, Justin -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/VSJJiQgt088J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Why GWT HTTP client can't receive HTTP response
See: http://code.google.com/webtoolkit/doc/1.6/FAQ_Server.html Look for SOP. Regards, Alfredo On Mon, Dec 26, 2011 at 8:57 PM, Justin@GWT justi...@gmail.com wrote: I follow the example code provided by Google GWT to send a HTTP GET request and receive the response. The GET request was sent out successfully, but can't receive response message. Actually the response message has been sent back, according to Wireshark trace. Does anybody know why? String urlCityList = http://www.abcdeft.com/abc/def;; // Here is just a fake url, but I used real url when trouble shooting. RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, URL.encode(urlCityList)); try { Request request = builder.sendRequest(null, new RequestCallback() { public void onError(Request request, Throwable exception) { } public void onResponseReceived(Request request, Response response) { // Window.alert(Integer.toString(response.getStatusCode())); // I tried to print out the status code.It's 0, means nothing is received. But actually I can see the response message in wireshark tracing. Window.alert(Could not get HTTP response.); // The code goes to this branch. //Window.alert(response.getText()); if (200 == response.getStatusCode()) { text = response.getText(); parseMessage(response.getText()); //text = response.getStatusText(); } else { //Window.alert(response.getStatusText()); //Window.alert(Integer.toString(response.getStatusCode())); } } }); } catch (RequestException e) { } } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Happy Holidays and Happy New Year!
To All: It has been a fantastic year. A year filled with lots of work, huge responsibilities but most of all, 12 months of lots of fun. I wanted to take a second to thank the GWT, associated groups and google for their contributions and allowing us all to do so many crazy cool things. To the GWT community goes a super thank you for your dedication and passion. I am impressed by the amount of collaboration and camaraderie seen in this group. Merry Christmas to all and a Happy New Year! Let 2012 be fantastic for all of you, surrounded by family and loved ones. Alfredo -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Request Factory Security
I find Spring Security to be a viable and simple solution to use while giving you a range of possibilities for both Authentication and Authorization. You get exactly that method to add the check (probably based on some annotation on the method). as one of the options. See: http://static.springsource.org/spring-security/site/docs/3.0.x/reference/ns-config.html 2.4 Method Security Under the hood I believe it gets implemented using AOP as Thomas pointed out. Just in this case you are not implementing it yourself and if tomorrow you decide to support multiple authentication mechanisms, etc ... you just add them. The framework is extremely flexible. Regards, Alfredo On Wed, Dec 21, 2011 at 9:38 AM, Thomas Broyer t.bro...@gmail.com wrote: On Wednesday, December 21, 2011 3:18:25 PM UTC+1, EMan wrote: there have been several posts on RequestFactory security, but I am still not clear. the sample code here: http://code.google.com/p/**google-web-toolkit/source/** browse/trunk/samples/expenses/**src/main/java/com/google/gwt/** sample/gaerequest/#gaerequesthttp://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/expenses/src/main/java/com/google/gwt/sample/gaerequest/#gaerequest uses a filter to determine if a user can access the RequestFactory service. But what happens once a user authenticates? does he have access to all back end request? Yes. ie, if I have a findById method and a findAll (for my admin users) method in my locator, could a user authenticate, then post to either and receive all the data in my table? Yes. How do we authenticate individual types of request? Either do it at the start of each method (use RequestFactoryServlet.getThreadLocalRequest().getUserPrincipal() to get the current user). Or create a ServiceLayerDecorator and override the invoke(Method,Object...) method to add the check (probably based on some annotation on the method). I believe you could also use standard AOP (Spring AOP or Guice AOP, probably also AspectJ or similar) on your services. We use the second approach, it works very well. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/2lD-kfluWgcJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT-RCharts Released (An interactive client side Charting Library with 3D CHARTS)
Like it a lot, neat and seems very simple to use. Good work! On Tue, Dec 20, 2011 at 6:28 AM, saurabh saurabh saurabh.bl...@gmail.comwrote: Oops!! I forgot to mention the links, here they are : http://code.google.com/p/gwt-rcharts/ and http://www.gwt-charts.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Coolness just got cooler! Yes it did!
My apologies, I thought I had. See below response from Sencha dating back to October 5 a couple of days after you asked. From: *Ted Driscoll* Date: Wed, Oct 5, 2011 at 5:53 PM Subject: Re: Sencha: Response to your question To: Alfredo Quiroga-Villamil laww...@gmail.com, Jacob Larsen , Aaron Zallen If you release under GPL V3 there are no issues at all Ted Ted Driscoll Vice President, Worldwide Sales Sencha Inc. 1700 Seaport Blvd, Ste. 120 Redwood City, CA 94063 1.800.212.2802 x501 ted.drisc...@sencha.com On Mon, Dec 19, 2011 at 12:51 PM, Frank Argueta frank.argu...@gmail.comwrote: You never responded to the question of whether what you're doing is legally allowed by the Sencha Touch license when information on their license page indicates that is is not allowed unless you have a Commercial OEM License. -- Forwarded message -- From: Alfredo Quiroga-Villamil Date: Mon, Oct 3, 2011 at 4:15 PM Subject: Re: GWT4Touch Official Release! To: google-web-toolkit@googlegroups.com Hi Frank, in this case we are not selling a commercially licensed SDK but releasing under GPL, but I hear you. We had a meeting with Sencha not too long ago and to make sure in this case we are going to setup another one. Thanks, Alfredo On Mon, Oct 3, 2011 at 3:59 PM, Frank Argueta wrote: Before you invest a whole lot of effort into this you really should tread carefully. Sencha has a long history of license foul play. It's GPL but it's not, it's free but its not, it's a standard GPL license but it’s a proprietary Sencha commercial license! http://www.sencha.com/products/touch/license/ Commercial OEM License (Paid license) This is the appropriate option if you want to use Sencha Touch to create your own commercially licensed SDK, or mobile application builder. Because use cases can vary widely, Commercial OEM licenses are customized for each customer. On Sun, Dec 18, 2011 at 10:58 PM, Alfredo Quiroga-Villamil laww...@gmail.com wrote: Coolness just got cooler! Yes it did! Check out our latest product coming to you via a Developer Preview Edition for our beloved Gwt4Touch 2. In this release, we are not only drastically improving the Java API but making it look and feel way more Javaish. In addition, we are making all of the main components GWT widgets out of the box. We have also demonstrated how easy it is to do PhoneGap integration. We've created a demo using gwt-phonegap, by Daniel Kurka, showing how simple it is to have UI and hardware support from one base code. For our GA release we will have both libraries fully integrated with one another making it even easier for the developer. Demo at: http://www.youtube.com/watch?v=TWbP4GcG8wQ Live Sample (App Engine): http://www.gwt4touch2.appspot.com/ Get it from: http://www.emitrom.com/gwt4touch/downloads As always we welcome feedback and ideas. Happy Coding! The Emitrom Team. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Coolness just got cooler! Yes it did!
Coolness just got cooler! Yes it did! Check out our latest product coming to you via a Developer Preview Edition for our beloved Gwt4Touch 2. In this release, we are not only drastically improving the Java API but making it look and feel way more Javaish. In addition, we are making all of the main components GWT widgets out of the box. We have also demonstrated how easy it is to do PhoneGap integration. We've created a demo using gwt-phonegap, by Daniel Kurka, showing how simple it is to have UI and hardware support from one base code. For our GA release we will have both libraries fully integrated with one another making it even easier for the developer. Demo at: http://www.youtube.com/watch?v=TWbP4GcG8wQ Live Sample (App Engine): http://www.gwt4touch2.appspot.com/ Get it from: http://www.emitrom.com/gwt4touch/downloads As always we welcome feedback and ideas. Happy Coding! The Emitrom Team. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT and Hibernate
, m.getValue(), visitedObjects); map.put (m.getKey(), m.getValue()); } } return (map); } if (obj instanceof HibernateProxy) { clazz = HibernateProxyHelper.getClassWithoutInitializingProxy(obj); } else { clazz = obj.getClass(); } visitedObjectsInClass = visitedObjects.get(clazz); if (visitedObjectsInClass == null) { visitedObjectsInClass = new HashMapObject, Object(); visitedObjects.put(clazz, visitedObjectsInClass); } else if (visitedObjectsInClass.containsKey(obj)) { return visitedObjectsInClass.get(obj); } newObj = clazz.newInstance(); visitedObjectsInClass.put(obj, newObj); if (!Hibernate.isInitialized(obj)) { if (session != null) { clazzMetaData = session.getSessionFactory().getClassMetadata(newObj.getClass()); Serializable id = clazzMetaData.getIdentifier(obj, EntityMode.POJO); clazzMetaData.setIdentifier(newObj, id, EntityMode.POJO); } } else { descriptors = PropertyUtils.getPropertyDescriptors(newObj); length = descriptors.length; for (index = 0; index length; index++) { property = descriptors[index].getName(); if (!property.equals(class)) { try { value = PropertyUtils.getProperty(obj, property); cleanValue = clean(session, value, visitedObjects); PropertyUtils.setProperty(newObj, property, cleanValue); } catch (NoSuchMethodException e) { } catch (Exception e) { if (logger.isInfoEnabled()) logger.info(Error Clean: + obj.getClass() + - + property + - + value.getClass() + - + cleanValue.getClass()); throw(e); } } } } return (newObj); } private static Collection createCollection(Collection obj) throws Exception { Collection newObj = null; if (obj instanceof SortedSet) newObj = new TreeSet (); else if (obj instanceof Set) newObj = new HashSet (); else newObj = new ArrayList (); return (newObj); } private static Map createMap(Map obj) throws Exception { Map newObj = null; if (obj instanceof SortedMap) newObj = new TreeMap (); else newObj = new HashMap (); return (newObj); } } Hope this helps. Regards, Néstor Boscán -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Gwt4Touch2 now in the oven and almost ready to come out!
Hello: A couple of months ago we launched Gwt4Touch based on the Sencha Touch library. Soon after, Sencha announced that they would be releasing a Developer Preview for what they called Sencha Touch 2. We were already making plans to drastically improve our API for the first version of GWT4Touch and make it more Java like, so we completely immersed ourselves in developing a new version for Touch 2 that would look and feel a lot more like Java instead of having to use static methods etc... We are now very close to releasing a Developer Preview for Gwt4Touch 2 and we are liking what we see so far. Take a look at: http://gwt4touch2.appspot.com/ and on the left hand corner click on Source. Yeah, I personally love the way that looks now in comparison to the previous release. As usual we are always looking for feedback and ideas, drop us a comment at: http://www.emitrom.com/forum The Emitrom Team! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.