r_q_d
13 Jan 2010, 2:44 PM
Environement:
gwt-1.7.1
gxt2.1
java 1.5.0_21
windows xp
hosted mode
I have a very simple code here as following
public class MainEntryPoint implements EntryPoint {
public void onModuleLoad() {
Viewport viewport = new Viewport();
viewport.add(createForm());
RootPanel.get().add(viewport);
}
private static final String[] comboBoxValues=new String[]{"aaa","bbb","ccc"};
private SimpleComboBox<String> typeField;
private Widget createForm(){
FormPanel form = new FormPanel();
form.setHeading("SimpleComboBox test");
typeField=new SimpleComboBox<String>();
typeField.setFieldLabel("Type");
for(String type: comboBoxValues){
typeField.add(type);
}
form.add(typeField);
return form;
}
}
when I run the code, I got the page like this:
http://www.extjs.com/forum/attachment.php?attachmentid=18253&stc=1&d=1263422473
when I click one of the value, the release it, all the other options will be gone, now only one option left:
http://www.extjs.com/forum/attachment.php?attachmentid=18254&stc=1&d=1263422600
This was working on version gxt 1.2.4
Anyone has same problem?
gwt-1.7.1
gxt2.1
java 1.5.0_21
windows xp
hosted mode
I have a very simple code here as following
public class MainEntryPoint implements EntryPoint {
public void onModuleLoad() {
Viewport viewport = new Viewport();
viewport.add(createForm());
RootPanel.get().add(viewport);
}
private static final String[] comboBoxValues=new String[]{"aaa","bbb","ccc"};
private SimpleComboBox<String> typeField;
private Widget createForm(){
FormPanel form = new FormPanel();
form.setHeading("SimpleComboBox test");
typeField=new SimpleComboBox<String>();
typeField.setFieldLabel("Type");
for(String type: comboBoxValues){
typeField.add(type);
}
form.add(typeField);
return form;
}
}
when I run the code, I got the page like this:
http://www.extjs.com/forum/attachment.php?attachmentid=18253&stc=1&d=1263422473
when I click one of the value, the release it, all the other options will be gone, now only one option left:
http://www.extjs.com/forum/attachment.php?attachmentid=18254&stc=1&d=1263422600
This was working on version gxt 1.2.4
Anyone has same problem?