Re: Deploying symbolMaps in a production build

2017-11-15 Thread Thomas Broyer
The gwt-site-webapp also has such configuration; it's used for the menu/navigation at http://www.gwtproject.org https://gwt.googlesource.com/gwt-site-webapp (see pom.xml and *.gwt.xml files) -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsu

Re: Deploying symbolMaps in a production build

2017-11-15 Thread Ignacio Baca Moreno-Torres
https://github.com/ibaca/rxcanvas-gwt 😅 On Thursday, November 16, 2017 at 12:08:44 AM UTC+1, Ignacio Baca Moreno-Torres wrote: > > FYI this project is a working example of deploying a gwt app with source > maps. The pom is configured to included both the source map and the java > sources. I use

Re: Deploying symbolMaps in a production build

2017-11-15 Thread Ignacio Baca Moreno-Torres
FYI this project is a working example of deploying a gwt app with source maps. The pom is configured to included both the source map and the java sources. I use site.sh to deploy as a github page. On Wednesday, November 15, 2017 at 9:40:26 PM UTC+1, AJ wrote: > > Thanks Colin. > That look like e

Re: Deploying symbolMaps in a production build

2017-11-15 Thread AJ
Thanks Colin. That look like exactly what I need. This will be a 'production' url we use to debug the issue and then re-deploy the 'real' build once we have stepped the code and found the offending null point. Nice to know about the stack trace. Thank you very much for the very detailed reply.

Re: Deploying symbolMaps in a production build

2017-11-15 Thread Colin Alworth
Symbol maps are distinct from source maps, the serve different purposes. Sourcemaps, when deployed with your actual source, allow the browser to ask the server for your Java source, so you can see if when you debug - this may not be something most production applications want their customers to

Re: Dynamic values in json parsing with GWT

2017-11-15 Thread Thomas Broyer
On Wednesday, November 15, 2017 at 11:19:56 AM UTC+1, Jens wrote: > > > Thanks for the early response. Can you give an example of getData(String >> key) method. >> > > Sure, assuming your values are only strings you can do > > public native String getData(String key) /*-{ > return this.data[ke

Re: Dynamic values in json parsing with GWT

2017-11-15 Thread Kirill Prazdnikov
JSNI is not recommended. If you can assign types, go with JsInterop, if not -> then you have a map String->? -- 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 email to goog

Re: Dynamic values in json parsing with GWT

2017-11-15 Thread Abhishek Banerjee
Thanks a bunch!! On Wednesday, 15 November 2017 15:49:56 UTC+5:30, Jens wrote: > > > Thanks for the early response. Can you give an example of getData(String >> key) method. >> > > Sure, assuming your values are only strings you can do > > public native String getData(String key) /*-{ > return

Re: Dynamic values in json parsing with GWT

2017-11-15 Thread Jens
> Thanks for the early response. Can you give an example of getData(String > key) method. > Sure, assuming your values are only strings you can do public native String getData(String key) /*-{ return this.data[key]; }-*/; If your values can also be number, boolean, JS Object you need additi

Re: Dynamic values in json parsing with GWT

2017-11-15 Thread Abhishek Banerjee
Thanks for the early response. Can you give an example of getData(String key) method. On Wednesday, 15 November 2017 14:49:56 UTC+5:30, Jens wrote: > > You can use JSONObject, a custom JavaScriptObject with JSNI getColumns() > and getData(String key) methods or use JsPropertyMap from jsinterop.b

Re: Dynamic values in json parsing with GWT

2017-11-15 Thread Jens
You can use JSONObject, a custom JavaScriptObject with JSNI getColumns() and getData(String key) methods or use JsPropertyMap from jsinterop.base library. -- J. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and s

Dynamic values in json parsing with GWT

2017-11-15 Thread Abhishek Banerjee
I have a json response like this {"columns": ["a", "b", "c"], "data": {"a": "some value", "b": "some value", "c": "some value"}} Now here whatever values columns have the same values are used as keys in data object. I have to parse this json in GWT client side. As far as I know JSNI requires