why can't i hide DialogBox in UiBinder in GWT?
问题 in Test.ui.xml <g:DialogBox ui:field="wishlistDialogBox" autoHide="true"> <g:caption>Test</g:caption> <g:HTMLPanel> some widgets..</g:HTMLPanel> </g:DialogBox> After running, the application still show the DialogBox , so I tried to set hide for "wishlistDialogBox" in TestView.java but it didn't work. @UiField DialogBox wishlistDialogBox; @Inject public TestView(final Binder binder) { widget = binder.createAndBindUi(this); wishlistDialogBox.hide(); } Then i set hide for it in TestPresenter