Hello,
I updated my smartgwt power project to gwt 2.0 and I started running into random application reloads. I have tracked down the issue to a combination of smartGwt ComboBoxItem with a standard gwt item (in our case Image) and history. Basically when you click on the drop down arrow of the combo box the application reloads.
Note: this does not happen in chrome or ff dev mode and works if the code is compiled.
Here's a code sample: (I just modified the hello world 2.0 sample). To recreate the problem start dev mode and click on the drop down box.
Thanks
I updated my smartgwt power project to gwt 2.0 and I started running into random application reloads. I have tracked down the issue to a combination of smartGwt ComboBoxItem with a standard gwt item (in our case Image) and history. Basically when you click on the drop down arrow of the combo box the application reloads.
Note: this does not happen in chrome or ff dev mode and works if the code is compiled.
Here's a code sample: (I just modified the hello world 2.0 sample). To recreate the problem start dev mode and click on the drop down box.
Code:
public void onModuleLoad() { History.newItem("test"); Image printButton = new Image("skins/Enterprise/images/blank.gif"); printButton.getElement().getStyle().setProperty("margin", "3"); printButton.setWidth("16px"); printButton.setHeight("16px"); printButton.setTitle("test"); RootPanel.get().add(printButton); final DynamicForm form = new DynamicForm(); form.setWidth(250); ComboBoxItem cbItem = new ComboBoxItem(); cbItem.setTitle("Select"); cbItem.setHint("<nobr>A simple ComboBoxItem</nobr>"); cbItem.setType("comboBox"); cbItem.setValueMap("Cat", "Dog", "Giraffe", "Goat", "Marmoset", "Mouse"); form.setFields(cbItem); RootPanel.get().add(form); History.addValueChangeHandler(new ValueChangeHandler<String>() { @Override public void onValueChange(ValueChangeEvent<String> event) { // TODO Auto-generated method stub } }); }
Comment