Sunday, December 25, 2016

Requestfactory: How to use Object?

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.

No comments:

Post a Comment