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)
    public Date getValue();
    public void setValue(Date value);


@ProxyFor(value = MyObject.class)
    public String getValue();
    public void setValue(String value);

Your help is much appreciated.

Kind regards,

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
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment