PDA

View Full Version : Dialog don't add new component after show



lucasas
14 Aug 2008, 1:01 PM
Dialog don't add new component after show.



import com.extjs.gxt.ui.client.widget.Dialog;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.google.gwt.core.client.EntryPoint;

public class Index extends LayoutContainer implements EntryPoint {

public void onModuleLoad() {
Dialog dialog = new Dialog();
dialog.add(new Button("aaaa"));
dialog.show();
dialog.add(new Button("bbbb"));
}
}


The button with "bbbb" value don't seems like in Dialog.

gslender
14 Aug 2008, 1:41 PM
try calling layout in a defferred command