24 plus ones
Shared publicly•View activity
View 5 previous comments
- If you don't have to use JSNI to implement some feature but it is just used for efficiency when compiled to JS, you can use a pure Java implementation in DevMode (which you will need for server-side use in shared code anyway). Some i18n APIs and RPC, for example, take this approach.Jun 11, 2012
- Good to know!
But I fear that this is not possible in my case. I have a processingjs (HTML5 canvas) visualization from which I have to call back to my GWT wrapper (i.e. when I move the mouse) to update some information in another widget. I add the callbacks via JSNI and they are executed quite frequently. I could improve performance in Dev Mode when i switched from Properties to JSO, however it is still very slow. I think Super Dev Mode might help a lot here.Jun 11, 2012
- AutoBeans too (JsoSplittable vs. JsonSplittable), and thus RequestFactory (will only call down to JSNI for the DefaultRequestTransport).Jun 11, 2012
- A question more than a comment...
I love the Super Dev Mode - it's invaluable in helping me get my dnd apps to look good on iPad. As you probably know, iOS is a pain in regard to browser caching. I like to know exactly which version of my app I'm currently running. My solution: each time I invoke my maven/ant scripts to do a build, they increment a Version.java that get compiled as part of the GWT app, so my app can tell me itself what version it is. Only trouble is, when I use the 'dev mode on' link to trigger yet another compilation, my own build scripts are NOT being used - the code server is doing it.
So my question is: is there a way to have the code server run something for me before it starts compiling ? That would be very useful. Thanks.Aug 23, 2013
- deferred-binding with a generator?Aug 23, 2013
- You are absolutely right. Perfect. Much appreciated. But I can't make it compile... I wonder if you could help? I created my interface and dummy impl classes in the client part of my app, and the generator class in my server section. Having them in a shared section didn't help. I initially got compilation errors about the TreeLogger etc missing, and deduced that I needed to add the gwt-dev jar to my server compilation. I then receive a compiler warning that I shouldn't be using gwt-dev, but ignoring that, no matter what I do, I can't get away from compilation errors to the effect that my impl class is missing. I'm using the gwt-maven-plugin 2.5.0 in Eclipse, and I suspect I need to specify something about the generated file or its location somewhere in my pom. Am I on the right track ? Many thanks.Aug 24, 2013
Add a comment...