Unable to get displayField to show up as the selected option with a datasource.
I believe this was working before switching from LGPL to SmartGwtPro
See screen-capture with what select option displays.
SmartGWTPro 2.5
I believe this was working before switching from LGPL to SmartGwtPro
Code:
productTypeSelectItem = new SelectItem("productType", "Product Type"); productTypeSelectItem.setAllowEmptyValue(true); productTypeSelectItem.setOptionDataSource(DataSource.get("customerCache")); productTypeSelectItem.setValueField("productType"); productTypeSelectItem.setDisplayField("description");
Code:
<DataSource ID="customerCache" tableName="customerCache" schemaBean="...CustomerCache" > <serverObject className="...dmi.CustomerCacheDmi"/> <fields> <field name="cacheId" title="Cache ID" type="integer" primaryKey="true" /> <field name="applicationCode" title="Application" type="enum" required="true" /> <field name="productType" title="Product Type" type="enum" required="true" /> <field name="description" title="Description" type="text" required="true" /> <field name="displayEnabled" title="Display Enabled" type="boolean" /> <field name="cacheEnabled" title="Cache Enabled" type="boolean" /> <field name="orderBy" title="Order By" type="integer" /> </fields> </DataSource>
SmartGWTPro 2.5
Comment