我正在尝试从 GWT 演示者小部件获取 URL 参数,但收到以下错误消息:
The method prepareFromRequest(PlaceRequest) of type ViewDiagramPresenter must override or implement a supertype method
The method prepareFromRequest(PlaceRequest) is undefined for the type PresenterWidget<ViewDiagramPresenter.MyView>
有任何想法吗?谢谢你
public class ViewDiagramPresenter extends
PresenterWidget<ViewDiagramPresenter.MyView> {
[...]
@Override
public void prepareFromRequest(PlaceRequest placeRequest) {
super.prepareFromRequest(placeRequest);
String actionString = placeRequest.getParameter("action", "view");
}
[...]
}