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
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
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
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
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
.
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
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.
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 (
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
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
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
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
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
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
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
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
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
-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
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
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
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
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
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
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
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
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,
)
}
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
- 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
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
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
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
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
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
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
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
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
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
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
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
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
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
55 matches
Mail list logo