Hi Isomorphic,
I'm using SmartClient Version: v10.0p_2015-05-19/Pro Deployment (built 2015-05-19).
I've noticed a couple issues with the ComboBoxItem.
1. When you select an item from the picklist for the first time, the picklist will pop back up again.
This can be seen in this Showcase example:
http://www.smartclient.com/smartgwt/showcase/#local_db_combobox_combobox_category
2. If you have multiple ComboBoxItems on a form with addUknownValues set to false, the picklists will get cleared.
You can reproduce the issue with the following code by first selecting an item from the Color picklist and then clicking on the Shape picklist. The Shape picklist gets cleared.
Interestingly, setting cachePicklistResults to false appears to fix the issue, but I'm not sure why since there is no option datasource.
Thanks.
I'm using SmartClient Version: v10.0p_2015-05-19/Pro Deployment (built 2015-05-19).
I've noticed a couple issues with the ComboBoxItem.
1. When you select an item from the picklist for the first time, the picklist will pop back up again.
This can be seen in this Showcase example:
http://www.smartclient.com/smartgwt/showcase/#local_db_combobox_combobox_category
2. If you have multiple ComboBoxItems on a form with addUknownValues set to false, the picklists will get cleared.
You can reproduce the issue with the following code by first selecting an item from the Color picklist and then clicking on the Shape picklist. The Shape picklist gets cleared.
Interestingly, setting cachePicklistResults to false appears to fix the issue, but I'm not sure why since there is no option datasource.
Code:
public void onModuleLoad() { DynamicForm form = new DynamicForm(); ComboBoxItem colorItem = new ComboBoxItem("Color"); colorItem.setValueMap("Red", "Green", "Blue", "Yellow", "Orange"); colorItem.setAddUnknownValues(Boolean.FALSE); ComboBoxItem shapeItem = new ComboBoxItem("Shape"); shapeItem.setValueMap("Circle", "Square", "Triangle", "Rectangle"); shapeItem.setAddUnknownValues(Boolean.FALSE); form.setFields(colorItem, shapeItem); form.draw(); }
Comment