Hi all,
We've been trying to find a way to transfer enums to client side.
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