页面未在GWT中加载

时间:2014-05-22 17:43:50

标签: gwt

我正在使用活动和地点来开发我的应用程序。当我点击左侧的链接时,我的页面被加载,我将值放在字段中。在我输入值之后,我将RPC发送到服务器,然后得到响应。这也显示出来了。现在的问题是,即使我点击左侧的链接,我也会再次获得结果页面。我没有收到输入页面。

Impl code

@UiHandler("entInvoiceCompare")
void onClickSubmit(ClickEvent e) {  
    GWT.log("Going to enterprise compare place");
    //listener.goTo(new EnterpriseInvoiceCompareViewPlace());
    NewEBRM.getClientFactory().getPlaceController().goTo(new EnterpriseInvoiceCompareViewPlace());
}

放置

public class EnterpriseInvoiceCompareViewPlace extends Place{

    public EnterpriseInvoiceCompareViewPlace() {
        GWT.log("EnterpriseInvoiceCompareViewPlace: constructor");
    }


    public static class Tokenizer implements PlaceTokenizer<EnterpriseInvoiceCompareViewPlace> {

        @Override
        public String getToken(EnterpriseInvoiceCompareViewPlace place {               
            GWT.log("EnterpriseInvoiceCompareViewPlace: getToken: call");
            return "EntInvoiceCompare";
        }

        @Override
        public EnterpriseInvoiceCompareViewPlace getPlace(String token) {   
            GWT.log("EnterpriseInvoiceCompareViewPlace: getPlace: call");
            return new EnterpriseInvoiceCompareViewPlace();
        }

    }

}

活动

@Override
public void start(AcceptsOneWidget containerWidget, EventBus eventBus) {
    // TODO Auto-generated method stub
    GWT.log("EnterpriseInvoiceCompareActivity: start: starting activity");
    EnterpriseInvoiceCompareView entInvoiceCompareView = clientFactory.getEnterpriseInvoiceCompareView();
    entInvoiceCompareView.setPresenter(this);
    containerWidget.setWidget(entInvoiceCompareView.asWidget());
    GWT.log("EnterpriseInvoiceCompareActivity: start: ending activity");
}

enter image description here

enter image description here

0 个答案:

没有答案