Best Practice for JSON object recreation on client

2016-08-18 Thread Luke Last
I use jackson/gson on the server to serialize and then gwt-jackson on the client to deserialize a shared pojo. I'm interested in finding out if JsInterop gives better performance though. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To

Slowness / Hangs on GWT 2.7 with Chrome 50.0 Release

2016-08-18 Thread Niraj Salot
Dear Group, We are using GWT 2.7 with Chrome 50.0 Release. We upgraded from Chrome 44.0 to 50.0 since last couple of weeks. Since the Upgrade , The application hangs , It becomes unresponsive & all sorts of slowness started. is this a known issue with Chrome 50.0 ? Do we need to perform any

Re: live edit/chnage a gwt-lib as dependency with gwt-maven-archetypes possible ?

2016-08-18 Thread Thomas Broyer
"no corresponding project reference" means that the corresponding project is not part of the reactor (multi-module) build. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an

Re: Problems connecting to Super Dev Mode server with 2.8 / multi-module project

2016-08-18 Thread Jens
SDM generates a special module.nocache.js file which contains the "recompile on reload" feature. You have to make sure that you have deployed that generated file. If you start the DevMode class the file is placed into the directory your DevMode -war parameter is pointing to. If you start

Re: Problems connecting to Super Dev Mode server with 2.8 / multi-module project

2016-08-18 Thread Drew Spencer
And that doesn't work :( On Thursday, 18 August 2016 19:15:09 UTC+1, Drew Spencer wrote: > > Hmm, it seems app engine is fine - tried it again after clearing cache and > it runs fine. SDM seems to work, but it's not recompiling when I make a > change to a page and refresh. Very odd. trying with

Re: Problems connecting to Super Dev Mode server with 2.8 / multi-module project

2016-08-18 Thread Drew Spencer
Hmm, it seems app engine is fine - tried it again after clearing cache and it runs fine. SDM seems to work, but it's not recompiling when I make a change to a page and refresh. Very odd. trying with incremental=true now... On Thursday, 18 August 2016 19:01:11 UTC+1, Drew Spencer wrote: > > I

Re: Problems connecting to Super Dev Mode server with 2.8 / multi-module project

2016-08-18 Thread Drew Spencer
I was just posting that I think I found the culprit... appengine-gcs-client seems to have a dependency on servlet-api:2.5: I have just added the exclusion in my

Re: Problems connecting to Super Dev Mode server with 2.8 / multi-module project

2016-08-18 Thread JonL
I don't use maven, so not 100% familiar with it. It appears that there is a dependency report that should tell you where it is coming from: https://maven.apache.org/plugins/maven-project-info-reports-plugin/ Then you should just exclude it:

Re: Problems connecting to Super Dev Mode server with 2.8 / multi-module project

2016-08-18 Thread Drew Spencer
Thanks for the help. I'm not sure why, but I still have servlet-api:2.5 in my dependencies, as well as javax.servlet-api:3.1.0. I read somewhere that javax.servlet-api replaced servlet-api... I removed it manually but it's being brough in from somewhere and I can't work out where. For the first

Re: Problems connecting to Super Dev Mode server with 2.8 / multi-module project

2016-08-18 Thread JonL
Besides possibly switching to the gwt-maven-archetypes as Frank suggested, I just added a comment to my answer. The problem is that you don't need servlet-api jars on your classpath at all. GWT provides the appropriate classes for compile time in gwt-user and gwt-dev. On Thursday, August 18,

Re: jsinterop method overloading

2016-08-18 Thread Vassilis Virvilis
Ok that makes sense - but only for the @JsType(isNative = false) case. For the isNative = true JS already knows how to call JS. Correct? Right now jsniterop gives an error in both cases. On Thu, Aug 18, 2016 at 6:30 PM, Jens wrote: > I think simply calling from Java

Re: jsinterop method overloading

2016-08-18 Thread Jens
I think simply calling from Java into JS using @JsType(isNative = true) as in your example is not an issue. GWT would simply assume that the JS function $ can handle the parameter. However when JS calls into a Java object that implements a @JsType, its not clear which method implementation to

Re: Problems connecting to Super Dev Mode server with 2.8 / multi-module project

2016-08-18 Thread Frank Taffelt
if your are restructuring your project setup. maybe you should consider switching to: https://github.com/tbroyer/gwt-maven-archetypes you will get a clean separation of your code and a working development environment. On Thursday, August 18, 2016 at 2:54:12 PM UTC+2, Drew Spencer wrote: > >

Re: live edit/chnage a gwt-lib as dependency with gwt-maven-archetypes possible ?

2016-08-18 Thread Frank Taffelt
[DEBUG] Adding sources for de.myproject:webutil-client:gwt-app:5.4.0- SNAPSHOT [DEBUG] Ignoring de.myproject:webutil-lib:gwt-lib:5.4.0-SNAPSHOT; no corresponding project reference. first i thought the issue is solved after changing from classifier to type. but i don't see any changes when i

Re: Best Practice for JSON object recreation on client

2016-08-18 Thread Paul Stockley
I wrote a set of utilities using the new JsInterop capability in 2.8 that provides one way of handling JSON. Take a look at the documentation here https://github.com/GWTReact/gwt-interop-utils/blob/master/DOCUMENTATION.md We use Jackson on the server for handling the translation from JSON to

Problems connecting to Super Dev Mode server with 2.8 / multi-module project

2016-08-18 Thread Drew Spencer
Hey all, I have recently changed the structure of my project to separate client, server and shared code into their own maven projects (modules). I am getting a HTTP Error 500 related to the Servlet API: *java.lang.NoSuchMethodError:

jsinterop method overloading

2016-08-18 Thread Vassilis Virvilis
Hello, I know that is not currently possible to overload a js native interface like this but I wonder why. Is there a technical reason that can be overcome or is it a conceptual issued that I just don't get? @JsType(isNative = true) > public class JQuery { > @JsType(isNative = true) >

Re: Best Practice for JSON object recreation on client

2016-08-18 Thread Jens
> Why would it? You may want to use JsInterop to call JSON.parse() instead > of using JsonUtils and casts from JavaScriptObject, but I believe it'd just > work otherwise (can't try it ATM though) You can not use a Java Collection as field so you would need some conversion to JsArray that

Re: Best Practice for JSON object recreation on client

2016-08-18 Thread Vassilis Virvilis
Generally the GWT guys are careful and I am sure they will provide a way to migrate. If I understand correctly the mechanism that will replace generators (GWT.create()) is called APT and is based on annotations. In my codebase I don't have the need and so I don't really know but I am using

Re: Best Practice for JSON object recreation on client

2016-08-18 Thread Thomas Broyer
Why would it? You may want to use JsInterop to call JSON.parse() instead of using JsonUtils and casts from JavaScriptObject, but I believe it'd just work otherwise (can't try it ATM though) -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To

Re: Best Practice for JSON object recreation on client

2016-08-18 Thread Max Fromberger
Hi Thomas, wouldn't that still require MyObj to extend JavaScriptObject in order to be deserialized on the client? Thanks for your participation. Kind regards, max Am Donnerstag, 18. August 2016 10:41:28 UTC+2 schrieb Thomas Broyer: > > Have you tried something like: > >

Best Practice for JSON object recreation on client

2016-08-18 Thread Thomas Broyer
Have you tried something like: @JsType(isNative=true,namespace=GLOBAL,name="Object") class MyObj { String str; int num; } -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an

Re: Best Practice for JSON object recreation on client

2016-08-18 Thread Max Fromberger
Hello Vassilis, thanks for this contribution. This raises another question: is there a way to solve the above described tasks that is GWT 3 proof and already feasible in GWT 2.8? kind regards, max Am Donnerstag, 18. August 2016 09:45:08 UTC+2 schrieb Vassilis Virvilis: > > Hi, > > I am using

Re: Best Practice for JSON object recreation on client

2016-08-18 Thread Vassilis Virvilis
Hi, I am using resty-gwt. Resty-gwt had his own (forked from jackson I believe) json serialization classes. But now Rest-gwt is switching to gwt-jackson. I haven't managed to get gwt-jackson to work with my setup (yet) but looks like a valid path forward. In the server I am using CXF and the

Best Practice for JSON object recreation on client

2016-08-18 Thread Max Fromberger
Hello everybody, First of all a big THANKS to everyone involved in developing and supporting GWT. please correct me wherever I am wrong: In the past you used JsonUtils.safeEval() to create a JavaScriptObject from a JSON String. As i understand it, jsinterop annotations on classes not