I am working on an app that diplays data and for that data we have widget which are contructed with pojo objects.
A dialog can be shown and in some cases we want to navigate to another page/presenter.
PlaceRequest placeRequest = new PlaceRequest.Builder().nameToken(NameTokens.sellingparty).build();
this.hide();
// placeManager.unlock();
try {
e.preventDefault();
placeManager.revealPlace(placeRequest, false);
} catch (Exception e1) {
// TODO Auto-generated catch block
Window.alert("" + e1);
}
The exception block should not be there but it's whorwing an exception
Uncaught com.google.gwt.event.shared.UmbrellaException: Exception caught: Encountered repeated errors resulting in an infinite loop. Make sure all users have access to the pages revealed by revealErrorPlace and revealUnauthorizedPlace. (Note that the default implementations call revealDefaultPlace)
We create the dialog like:
@Override
public void onSuccess(Method method, String response) {
MyWidgetInjector injector = GWT.create(MyWidgetInjector.class);
HdnMessageDialog di = injector.getHdnMessageDialog();
Anchor path = new Anchor(toSet);
di.addExtraInfo(path);
di.setValue(response);
di.addXmlStyling();
di.center();
}
The contructor is:
private PlaceManager placeManager;
@Inject
public HdnMessageDialog(PlaceManager newPlaceManager) {
super();
placeManager = newPlaceManager;
Question,
Should it fail. Is this due to the injection method injecting the wrong place manager or due to some other problem. The same code works from a different presenter.
Thanks