Friday, April 1, 2011

AsyncProxy not working.

I have designed an async Proxy using GWT, my Views are GXT based.
But AsyncProxy is throwing
[ERROR] Expecting concrete
typecom.bm.xchange.commerce.steps.client.view.ProfileViewImpl to be
static.

Donno why but all top-level classes cannot be static . It just throws
this error ... Any Help will be greatly appreciateed

Here is the code for my Async Proxy

public class Controller {
private ProfileView profileView =
GWT.create(ProfileProxy.class);;
public Controller {
((AsyncProxy<ProfileView>)
profileView).setProxyCallback(new
AsyncProxy.ProxyCallback<ProfileView>() {
@Override
public void onComplete(ProfileView instance) {
profileView = instance;
}
});

}
@com.google.gwt.user.client.AsyncProxy.ConcreteType(ProfileViewImpl.class)
interface ProfileProxy extends AsyncProxy<ProfileView>, ProfileView
{}
}

public interface ProfileView {
public interface Presenter {
public void saveProfile();
public void closeProfile();
}
public void setProfileStore(List<StepTreeModel> stms);
}

public class ProfileViewImpl extends ContentPanel implements
ProfileView {
}

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
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