edumrf
20 May 2009, 4:39 AM
Is there any way to show a window or any other component on a "onSuccess" method?
I'm trying the following code and the window never show up!
proxy.getServiceValue("br.com.dyad.infrastructure.service.LookupService", params, new AsyncCallback(){
public void onFailure(Throwable arg0) {
Window.alert(arg0.getMessage());
}
public void onSuccess(HashMap arg0) {
Window wnd = new Window();
desktop.add(wnd);
wnd.show();
}
}
Any ideas?
Thanks.
I'm trying the following code and the window never show up!
proxy.getServiceValue("br.com.dyad.infrastructure.service.LookupService", params, new AsyncCallback(){
public void onFailure(Throwable arg0) {
Window.alert(arg0.getMessage());
}
public void onSuccess(HashMap arg0) {
Window wnd = new Window();
desktop.add(wnd);
wnd.show();
}
}
Any ideas?
Thanks.