You really should try to avoid inheritance in your JsInterop DTOs. But,
hehe there are always someplace where you need or are forced to use it, in
that case, this is what we are currently using to get "inheritance" working
in the server side and the client side using DTOs:
As long as you can limit your classes to jstypes - double, arrays, jsDate
...etc- this could be the right choice, but when the classes are shared with
the server you might end up with JsType for each bean in the server, or you can
use a lib that allows you to share the bean between the client
I needed portable code between client/server and polymorphism (through {
'type': 'SomeTypeIdentifier', ...other properties...}). Is there some
straightforward way to do that with jsinterop annotations?
On Monday, May 21, 2018 at 12:43:59 AM UTC+2, Thomas Broyer wrote:
>
> How about "just" using
How about "just" using @JsType classes?
--
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 google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group,
Thank you Nándor Előd Fekete for pointing out to my gwt-jackson-apt lib, i
would like also to add that my lib is using Annotation processors instead
of reflection and generators, and you can also use the same object mapper
for both client side and server side, i would really love to have any
I had great success with https://github.com/nmorel/gwt-jackson, which is a
json library written for gwt that emulates much of jackson's functionality.
But note that it uses gwt generator infrastructure and hence is not
forward-compatible with future GWT3.
There's also
On Saturday, 19 May 2018 14:07:35 UTC-6, richip wrote:
>
> Is there support for JSON-B or any other JSON-object binding API in GWT?
> If not, is it possible to implement this without reflection? I wouldn't
> mind taking a stab at it, but am not sure how I'd do it without Java
> reflection.
Is there support for JSON-B or any other JSON-object binding API in GWT? If
not, is it possible to implement this without reflection? I wouldn't mind
taking a stab at it, but am not sure how I'd do it without Java reflection.
The goal is to call a R
--
You received this message because you