Re: Any JSON library that works in both GWT and non-GWT environments?

2016-02-04 Thread Vassilis Virvilis
I am using Resty-gwt in client side and cxf in server side. I don't' know about IOS but in theory it should be able to consume valid REST, jax-rs json. On Feb 5, 2016 04:50, "Slava Pankov" wrote: > If your server side is going to be implemented on Java, then just use > Errai JAX-RS (it supports J

Re: JSNI Question

2016-02-04 Thread Stepan Koltsov
Except there are lots of things that are not possible via jsinterop. (Or maybe possible, but hard to find how to do it). For example: * JsArray still requires type parameter to extend JavaScriptObject, so you cannot work with cannot work with arrays of @JsType * you cannot do index without JSN

Re: Any JSON library that works in both GWT and non-GWT environments?

2016-02-04 Thread Slava Pankov
If your server side is going to be implemented on Java, then just use Errai JAX-RS (it supports Jackson provider, so can be consumed from any client side language). That way you have your domain classes in shared folder, and they are used both server and client side, so you don't have to seriali

Getting Unexpected internal compiler error

2016-02-04 Thread Jay Shukla
Hi All, I am new to GWT and I imported existing Web GWT project to Eclipse and when i try to compile it through "GWT Compile" option of Eclipse it is throwing below error. Project looks to be properly set up in Eclipse Workspace. I am using GWT 2.7.0. Can anyone please help in resolving below

Any JSON library that works in both GWT and non-GWT environments?

2016-02-04 Thread Matt Campbell
Hello: I want to develop an application that shares code between the browser (via GWT), ANdroid, and iOS (via JJ2ObjC), like Inbox. My application will access JSON-based web APIs, so it needs to be able to parse and serialize JSON. So does anyone know if there's a Java JSON library that works

Getting Unexcepted Complilation Error

2016-02-04 Thread Jay Shukla
Hi All, I am New to GWT and trying to find solution on below exception on internet but no luck. I imported existing GWT Web Project to eclipse and it was set up correctly in eclipse but when i try Compile it with "GWT Compile" option in Eclipse it is throwing below exception. I am using GWT 2

Re: GWT and DefinitelyTyped

2016-02-04 Thread Satguru Srivastava
I think that is a great idea. Look at what JSweet (http://www.jsweet.org ) has done with DefinitelyTyped. They have automated the process of generating java interfaces from .d.ts file and thus, in one stroke, made available the thousands of java script libraries to java programmers. Typescript

accessing list of objects in javascript with JsInterop

2016-02-04 Thread suneel varma
when a class with JsType annotation has a method that returns list of objects, how can we access that list in JavaScript as an array or in any other way. Returned list seems to be a wrapped object. Same java code: @JsType public class Test { List pojoList; public List getPojoList(){

How to invoke native handler

2016-02-04 Thread David
I have the following html code: TEST and GWT code: Element divElement = Document.get().getElementById("first_div"); Event.sinkEvents(divElement , Event.ONCLICK); Event.setEventListener(divElement , new EventListener() { Window.alert("I Got"); } The problem is on