delayTestFinish() from GWTTestCase not working in pure java tests

2013-10-08 Thread Derek Thurn
I'm trying to verify that some JavaScript code behaves identically to an existing Java library. I've created some tests that subclass GWTTestCase to check this. Unfortunately, when I try and do the pure-java test in development mode (by returning null for the module name, as the documentation

Re: delayTestFinish() from GWTTestCase not working in pure java tests

2013-10-08 Thread Derek Thurn
That sounds promising, got a link to the tests? On Tuesday, October 8, 2013 8:22:18 AM UTC-7, Thomas Broyer wrote: On Tuesday, October 8, 2013 5:08:04 PM UTC+2, Derek Thurn wrote: I'm trying to verify that some JavaScript code behaves identically to an existing Java library. I've created

Re: Web workers

2012-09-13 Thread Derek
kills the app's performance (especially on mobile). Sigh. Apparently I needed to vent... Sorry about that. Derek On Thursday, September 13, 2012 5:15:32 AM UTC-4, Harold wrote: Hi Derek, Thanks for the advice. I tried to put var $wnd= $self but what about var $document ? if you have some

Re: Web workers

2012-09-10 Thread Derek
AM UTC-4, Harold wrote: Hi Derek, As i have a lot of JSNI calls, i do not use the dev mode. Super dev mode is far more suitable ! Btw, i still have issue with my worker because after GWT compilation, the generated script contains window and document variables which are not defined

Re: Web workers

2012-09-09 Thread Derek
I've played around with web workers on GWT, but it's not a lot of fun. You can't use normal GWT devmode on them (though maybe superdevmode would work?). So you essentially have to write the worker, compile it, and then call it from your non-worker code and hope it does what you want. On

Re: Best serverside architecture(framework/stack) to use with GWT for large application...please show me the light

2012-08-28 Thread Derek
. At my work we've got two projects that clock in around 34k and 46k lines of Java (not including XML or other artifacts) as well as smaller projects and they use the methodology I described. Derek On Monday, August 27, 2012 5:18:13 PM UTC-4, GWTter wrote: Hi Derek, Thanks a lot for the reply

Re: Best serverside architecture(framework/stack) to use with GWT for large application...please show me the light

2012-08-27 Thread Derek
I use Guice on the server side and GIN on the client side. I generally use DTOs over GWT-RPC since RequestFactory isn't what I need / want to migrate to. On Saturday, August 25, 2012 7:48:12 PM UTC-4, GWTter wrote: Hi all, I've been doing research on this for the past 2, almost 3 days now.

Re: Elemental in GWT 2.5 is what?

2012-07-10 Thread Derek
On Tuesday, July 10, 2012 9:47:56 AM UTC-4, Thomas Broyer wrote: Not having permutations per UA is not only a compile-time thing, it also means you don't have to sniff the UA at runtime, so there's no risk of false-positives or false-negatives (

Re: Google Web Toolkit : Tree.addTreeListener is deprecated what should I use instead.

2012-07-10 Thread Derek
The API docs are normally pretty good about giving you the alternative: http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/Tree.html#addTreeListener(com.google.gwt.user.client.ui.TreeListener) *Deprecated.* *Use

GWT Web Workers - multiple modules on same page

2012-06-15 Thread Derek
the linker that's refusing to generate a dev mode permutation, or the code server, or dev mode, or what. Has anyone dealt with this problem? Does anyone have any ideas? Thanks, Derek -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group

Re: Firefox 13 DevMode Plugin

2012-06-07 Thread Derek
Alan, Is it possible to build dev mode for Firefox for Android? On Jun 7, 3:29 am, Alan Leung acle...@google.com wrote: http://acleung.com/ff13-linux32.xpi Everything seems to work now. Will post the rest tomorrow. -Alan On Wed, Jun 6, 2012 at 4:29 PM, Alan Leung acle...@google.com

Re: Generate URL to image stored on server

2012-06-07 Thread Derek
to the GWT code. The GWT code then immediately executes a request to a servlet hosted at /mymodule/images/* and uses the path info to get the filename and goes to look it up in the shared directory and relays the data through the servlet. Hope that's all clear enough. Derek On Jun 6, 12:09 pm

Re: convert dom element to widget

2012-06-06 Thread Derek
be able to run this code: Widget w = new Widget(); w.setElement(element); Derek On Jun 6, 6:46 am, Dennis Haupt d.haup...@googlemail.com wrote: i am trying to write a function which generically collections dom elements and adds them to complexpanels. i can get the dom elements, but how do i

Re: Generate URL to image stored on server

2012-06-06 Thread Derek
Not sure what you mean by out-with, but I'll assume you mean you upload it to what would be the war folder in a GWT project. If that's true, use GWT.getHostPageBaseURL()+image.png to get the URL. Derek On Jun 6, 5:09 am, Gary garyker...@googlemail.com wrote: Hi, my application has a mechanism

Re: zero width widgets

2012-05-25 Thread Derek
I suspect this is from mixing layoutpanels with non-layoutpanels. By and large, layoutpanels (anything with LayoutPanel as part of its name) need to form an unbroken chain with a previous layoutpanel all the way back to RootLayoutPanel. If you have an HTMLPanel or simplepanel or other

Re: making Anchor look like a normal link

2012-05-17 Thread Derek
I set href to javascript:;. You could instead use CSS to style the cursor to be a pointer to make it look real, but javascript:; is the quickest and easiest. Derek On May 17, 7:40 am, Matthew Pocock turingatemyhams...@gmail.com wrote: Hi, I have several g:Anchor elements in my UiBinder design

Error with the web application starter project

2012-05-15 Thread Derek Fountain
I'm trying to get the Getting Started guide running from this page: https://developers.google.com/web-toolkit/usingeclipse Running Eclipse on Linux, it works in developer mode. The compile completed successfully too, so I copied the contents of the 'war' directory to the doc root of Apache on

Re: Error with the web application starter project

2012-05-15 Thread Derek
-INF/classes) is there, check the deploy logs. Actually, I notice that you just said Apache. Do you have tomcat (or other Java app server) configured correctly? Apache can't serve servlets without some help. Hope that helps, Another Derek On May 14, 10:31 pm, Derek Fountain de...@scratters.com

Re: Dynamic CompositeCell

2012-04-27 Thread Derek
I personally would just create a new cell, but I'd probably start with CompositeCell for a starting point. On Apr 25, 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

Re: For gin+code splitting,why will how to call injector's method affect splitting result?

2012-04-16 Thread Derek
caught) {} public void onSuccess(Widget1 result) { RootPanel.get().add(result); } }); } })); } } Hope that helps, Derek On Apr 14, 10:52 am, Alex Luya alexander.l...@gmail.com wrote: /Codes //Sub

Re: does any Breedcrumb widget in gwt 2.4?

2012-03-29 Thread Derek
Unfortunately, the code relies on our homegrown MVP framework and GIN, so it's not really designed to be copy and pasted whole. Derek On Mar 28, 10:50 am, tong123123 tong123...@gmail.com wrote: Oh, would you mind to share the code? On Wednesday, March 28, 2012 1:27:35 PM UTC+8, mukarev

Re: does any Breedcrumb widget in gwt 2.4?

2012-03-28 Thread Derek
I used a tablayoutpanel for my breadcrumb bar in a project where i needed breadcrumbs. just style the tabs to be plain text. On Mar 27, 11:11 am, tong123123 tong123...@gmail.com wrote: anyone know? On Friday, March 16, 2012 2:52:30 PM UTC+8, tong123123 wrote: Hi, is there

Re: base64 to image in gwt client

2012-03-16 Thread Derek
When I needed to do that, I just copied and pasted the code out of GWT's ClientBundle image stuff: private String toBase64(byte[] data) { // This is bad, but I am lazy and don't want to write _another_ encoder sun.misc.BASE64Encoder enc = new

Re: loading an image

2012-01-11 Thread Derek
GWT.getHostPageURL()+imageRetriever Javadocs suggest using getModuleBaseURL() instead of getHostPageURL(), so that would be GWT.getModuleBaseURL()+../imageRetriever, but in the absence of cross-site loading, I don't think it makes much difference. Derek On Jan 11, 4:51 am, tanteanni tantea

Re: loading an image

2012-01-10 Thread Derek
errors that might be on the console. Hope that helps, Derek On Jan 10, 3:35 am, tanteanni tantea...@hotmail.com wrote: thx, but my problem is, that it fails outside hosted mode. in hosted mode the image is loading, in real mode the small destroyed image icon appears (that appears in browser

Re: loading an image

2012-01-09 Thread Derek
The loadhandler won't fire until the image is added to the DOM. So for example, you could put view.setImage(image) outside the loadhandler, and GWT.log(loaded!) inside the loadhandler, and then you should see loaded! in your dev console. But a loadhandler is not required for loading an image,

Re: Start GWT App from JavaScript

2011-12-18 Thread Derek
) } This way is the same way jsonp works, so Google jsonp if my code is broken or you need more options. (Forgive me for not testing that code, posting from a tablet.) document.write() clears the entire document before writing, which is why your screen goes white. Derek On Dec 17, 10:33 am, Daniel eklipto

Re: GWT for Eclipse on linux

2011-12-06 Thread Derek
I always just download eclipse separately into my own home directory and run it from its own ~/eclipse directory. Package managers never seem to set things up the way I want them to. I've never had any problems using GWT with Eclipse on Linux. I'm doing it even now. :) Derek On Dec 6, 12:28 am

Re: Drag drop

2011-11-12 Thread Derek
You can do it using some of the drag and drop HTML5 javascript stuff. http://www.html5rocks.com/en/tutorials/dnd/basics/ There aren't any GWT libraries that wrap around the Javascript, but you can make your own using overlays. On Nov 11, 11:59 am, Celinio cel...@gmail.com wrote: 2) Can i easily

Drag and Drop to a RichTextArea / IFrame?

2011-10-26 Thread Derek
I'm trying out some of the fun drag-and-drop stuff in GWT. My current attempt is to drag a file into a richtextarea, but nothing seems to be working correctly. It works fine if I use a FlowPanel or some other GWT widget, but not a RichTextArea despite it have an addDropHandler method. Anyone have

Re: Radiobutton vs checkbox in celltable

2011-09-16 Thread Derek
have cells in multiple columns. Derek On Sep 15, 3:02 pm, Roger Studner rstud...@gmail.com wrote: If I do a single selection model etc.. (canonical).. I get a checkbox. Technically, you'd think, this would render as a radio button.. Anyone experiment/discover how to replace the default check

Re: Strange Request: How do I open a new browser window, run part of the GWT application there, and communicate with it

2011-09-15 Thread Derek
metioned is that GWT doesn't really want you doing inter-window communication. So you have to sling your own JSNI. Derek On Sep 14, 12:34 pm, Néstor Boscán nesto...@gmail.com wrote: Hi I have a strange request. I have an application that needs to run on an iframe as part of another

Re: File download by GWT client

2011-09-15 Thread Derek
JavaScript API available to use in web browser? How have you created your own overlay types for the FileSystem / FileWriter objects - Did you use JSNI for that? On 14 Wrz, 16:59, Derek derekad...@gmail.com wrote: Modern HTML5 should allow something along those lines, but browser

Re: File download by GWT client

2011-09-14 Thread Derek
could do similarly. Or you could just sling some JSNI. Hope that helps, Derek On Sep 14, 8:28 am, Marcin Olejarczyk marcin.xx.olejarc...@softhouse.se wrote: Hi, Is there any possibility to generate *.txt file and give the user the opportunity to download this file locally by typical download web

Re: Detect *only* when browser is closing (WindowCloseListener)

2011-08-13 Thread Derek
your requirements allow you to do something on user return? If so, you could (again) use session storage or a cookie to let you know if you've seen the user before. If you haven't this time, then you can do whatever cleanup necessary (or whatever you're trying to do). Derek On Aug 12, 7:59 pm

Re: Extending/embedding DialogBox

2011-08-02 Thread Derek
I generally create custom Dialogs as their own uibinders and then instantiate them from elsewhere. So I might use the code below, and display it with new MyDialog().center(); Is this best practice? I'm not sure. I think there are some who hold to the idea that you should let your dialog's content

Re: CellTree: Horizontal Scrollbar impossible?

2011-07-15 Thread Derek
The get showcase has horizontal scrolling. http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellSampler On Jul 15, 9:02 am, opn open...@gmx.net wrote: I hope it's not impossible right now to get a horizontal scrollbar with a cellTree growing large in x-direction, but I just can not find

Re: Is it ever possible for an asynchronous service method's callback to get called without yielding to the browser's event loop?

2011-06-18 Thread Derek
The only time I encounter what you describe is when I mock the server side code on the client side. In other words, in your code example, I might have myRemoteService actually be an instance of some MyRemoteServiceAsyncMock, that returns dummy data while I wait for someone else to write the server

Re: how to pass hash map to native java script method

2011-06-10 Thread Derek
Actually I don't think it's as simple as you'd think. Gwt java objects are pretty opaque to JSNI. Depending on what you need, i'd suggest using JSONObject as a replacement for HashMap. That should probably work for you. On Jun 8, 9:19 pm, rsutton rsut...@asteriskit.com.au wrote: I am trying to

Re: Hierachy of autobean for state serialization

2011-06-03 Thread Derek
Thanks for posting this, Panam. I was just starting to consider using AutoBean with LocalStorage, since storing a JSON string seems like the best solution than rolling my own custom serializer. I haven't gotten too far into it beyond some simple test cases. For 2), I seem to recall seeing that

Re: Mixing Autobean with JSONP

2011-05-29 Thread Derek
T needs to extend JavaScriptObject. It is part of GWT's overlay types, which is a little bit different from AutoBean. See http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOverlay.html for more information. On May 29, 1:36 am, karthik reddy karthik.ele...@gmail.com wrote: Can

Re: User GWT to develop android apps that are not browser based?

2011-05-20 Thread Derek
- This is a really cool talk that I wish I had attended. It shows how, using GPE, you can create an app that does reuse a lot of code between GWT and Android with an AppEngine backend. Hope that helps, Derek On May 19, 3:55 pm, cri chuck.irvine...@gmail.com wrote: I just skimmed through the Google IO talk

Re: GWT Google/io meeting on Monday night

2011-05-06 Thread Derek
I'll be in SF for Google I/O. I'm arriving with a friend (who also does GWT work), but I'm not sure what our plans are for Monday night. We might be interested in a get together. On May 5, 1:56 pm, Jeff Larsen larse...@gmail.com wrote: Hey was wondering if there is any interest in a gwt get

Setting extra information on provided Cells?

2011-04-11 Thread Derek
extension points in the above cells that make subclassing easy. Is there a better way to create these Cells without the ugly? Thanks, Derek -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web

Re: GWT Google IO 2011 Challenge Winners?

2011-04-05 Thread Derek
I won! But not the GWT challenge, the commerce challenge. But I used GWT for commerce so that counts for something, right? And since I'm tooting my own horn, here are my submissions: (only can guarantee they look right in linux chrome (even win chrome displays the doodle and countdown differently

Re: How to restore previous value of EditTextCell in Cell Table

2011-04-05 Thread Derek
I only know a bad way to do this, so I'd like someone else to show me a better way to do this. As with most GWT Cells, as soon as I want to do something different, I have to create my own. So I suggest you look up the code for EditTextCell, copy and paste it into a new MyEditTextCell and then

Re: Events: One handler many sources

2011-03-08 Thread Derek
model is what you want to use, you can pass around a common EventBus with which you can fire() events. in module load or wherever appropriate: myEventBus.addHandler(FooEvent.TYPE, new FooHandler()); and in your sources myEventBus.fire(new FooEvent()); Hope that helps, Derek On Mar 5, 3:38 pm

Re: SelectionCell

2011-03-01 Thread Derek
will be the row object (which is what I do). Cast the object to what you know it will be and then call the methods on that object you need to get the key for your options map. Now you have your list of options per row object. Not the prettiest code, but it got the job done. Derek On Feb 28, 8:47 am, Ani

Re: GPE auto-complete only partially working for UiBinder tags

2011-02-26 Thread Derek
the process for that and every other *.ui.xml file I have. I would like to make the change once, and then any time I open a *.ui.xml, it automatically opens in the UiBinder Template Editor. Thanks, Derek On Feb 25, 10:07 am, Sekhar Ravinutala sek...@allurefx.com wrote: If you want to make UiBinder

Re: GPE auto-complete only partially working for UiBinder tags

2011-02-21 Thread Derek
I can't make it default and filed a bug. http://code.google.com/p/google-web-toolkit/issues/detail?id=6039 You should be able to go to Window Preferences General Editors File Associations and in the list on the right, choose *.ui.xml and choose between UiBinder Template Editor and

Re: development mode rpc call is an http OPTIONS instead of POST

2010-01-05 Thread Derek
I'm having a very similar problem, but don't have an answer yet. I'm using the RequestBuilder to do an HTTP POST to our IIS server. Everything seems fine when I'm in the Java debugger in hosted mode, but when I compile to Javascript, my POST is changed to OPTIONS in FF and Chrome, but it works

Re: development mode rpc call is an http OPTIONS instead of POST

2010-01-05 Thread Derek
the following: new RequestBuilder(RequestBuilder.POST, /appdir/somefile.aspx); On Jan 5, 7:49 am, Derek dealy...@hotmail.com wrote: I'm having a very similar problem, but don't have an answer yet. I'm using the RequestBuilder to do an HTTP POST to our IIS server. Everything seems fine when I'm

RequestBuilder.sendRequest() failing in firefox but not IE

2009-12-18 Thread Derek
Hi I recently upgraded to GWT 2.0 along with GXT 2.1. My application was working properly back at GWT 1.7, and now it mostly works fine with 2.0. But there is a problem with web requests and responses I can't figure out. When run in hosted mode and debugging in Java with Eclipse everything is

1.7-2.0 hosted mode no longer working

2009-12-15 Thread Derek
2.0? Any idea how to configure this so I can debug my application again? Thanks, Derek -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group

TextBox.setFocus() not working as expected in Firefox

2008-08-25 Thread Derek Battams
package sample.test.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.user.client.ui.FocusListenerAdapter; import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.user.client.ui.TextBox; import com.google.gwt.user.client.ui.VerticalPanel; import