Hi, a side note. IMO you should not start using request factory. It is a pretty awesome lib which solves a lot of problem which probably you don't have with the cost of a complexity which will make you ask a lot of doubt's like this one for a long time. IMO if you want a API focused in your model, with type inheritance, generics, etc. you should use GWT RPC. If you want a more message payloads focused API, you should use some REST lib like RestyGWT (mature, full java type support) or AutoREST (new, though to be used with JsInterop, do not support inheritance or other fancy things).
El lun., 26 dic. 2016 4:01, Manuel <develop.mash@gmail.com> escribió:
Hi everyone,--
I got a question regarding datatypes. I got a object on the server side that has a value of type Object. Like this:
class MyObject{
public Object getValue();
public void setValue(Object value);
}
How is it possible to have proxies for this object on the client side (with different datatypes (Date, String, Double, Long, etc.))? Object-Datatype is not allowed in proxies. Using a template-type is also not allowed. Is it somehow possible to have proxies for this object?
I guess I would like to have something like this:
@ProxyFor(value = MyObject.class)
MyDateObjectProxy{
public Date getValue();
public void setValue(Date value);
}
or
@ProxyFor(value = MyObject.class)
MyStringObjectProxy{
public String getValue();
public void setValue(String value);
}
Your help is much appreciated.
Kind regards,
Manuel
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment