We've been trying to find a way to transfer enums to client side.
David Chandler (http://turbomanage.wordpress.com/2011/03/25/using-gwt-requestfactory-with-objectify/) made it by defining enums in the proxy.
Our case is a bit different, my team has to setup a RequestFactory layer above existing backend system.
For example, given the following class:
class SomeObj
{
public static enum Status{Success, Failure}
Status status;
Status getStatus()
{
return status;
}
}
We created following proxy:
@ProxyFor(SomeObj.class)
public interface SomeObjProxy extends ValueProxy
{
Status getStatus();
}
However, and pretty obvious, we get "Could not find matching method in" error during run time.
Is there any other way working with enums in RF other then defining them in the proxies and use them in the models?
Any reply will be appreciated.
Thanks a lot in advanced,
Ido
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/e0lbzwFeo8MJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment