English 中文(简体)
聪明扼要地选择关键价值问题
原标题:Smartgwt selectitem key value issue

我有一个<代码>SelectItem,我通过一个<编码>Map填写,如果该星体位于一个名单网球场内,那么就好了,但当我选择在 com盒中的任何项目,而不是获得地图的描述或价值时,则把钥匙放在网点。

我如何使我确定价值而不是关键? 我现在试图与AddChangeHandler打交道,但还没有工作。

下面的法典是:

final ListGridField measureField = new ListGridField(CdmsConstants.MEASURE_ABB,    CdmsConstants.CMB_MEASURE_TITULO, 100);

final SelectItem measureComboBox = new SelectItem();
measureComboBox.setDefaultToFirstOption(false);
measureComboBox.setName(CdmsConstants.MEASURE_ABB);
measureComboBox.setTitle(CdmsConstants.CMB_MEASURE_TITULO);
measureComboBox.setDefaultValues(CdmsConstants.CMB_DEFAULT_VALUE);
measureComboBox.setType("comboBox");
measureComboBox.setVisible(true);
measureComboBox.setValueMap(result);
measureComboBox.setValidateOnExit(true);

measureField.setEditorType(measureComboBox);

在措施中ComboBox 当将变结果(即地图)和点到 com子的任何项目中时,显示在 com子箱中的价值是薄膜地图的关键,没有项目的价值...... 如何改变这种状况?

感谢很多。

问题回答

如果你使用一个数据来源而不是<代码>LinkedHashMap,那么你可以使用<代码>setValue Field方法<代码>SelectItem,但在此情况下,MAY可以使用setValueFormatter。 页: 1

I had the same/similar problem, my solution that can be seen here ListGrid.setEditorCustomizer in SmartGWT was to use a datasource for the SelectItem and then implemented my own CellFormatter





相关问题
SmartGWT calendar month widget

I am evaluating whether to use SmartGWT, and have no prior experience with it. I have one particular question on the Calendar widget. When you go to a airline/car rental website, and you need to ...

SmartGWT slow images rendering

I have a SmartGWT 2.0 application where I have to render a few hundred small images and this is taking very, very long (>20s). It s a intranet application. Do you have any idea how I could speed up ...

Smart-Gwt ScrolledHandler usage

I would like to do something when a scroll event has occurred on a smartgwt window. I m assuming that an event will be fired when at least one of the following has happened: scroll within window with ...

Proper way to disable browser spellcheck in Smart GWT?

Does anyone know a nice way to prevent SmartGWT from creating TextItem form items with the spellcheck="true" set? It s annoying to get spellcheck markers on name fields etc. The nuclear option is ...

SmartGWT with GWT?

Greetings , I have been using GWT for few weeks and wanted a rich Table widget.I came across with SmartGWT library. Can I use SmartGWT widgets same way I develop using GWT or is there any special ...

is smartGWT really as slow as its showcase is?

I ve started implementing my web application using smartGWT. Is it really as slow as it is on the showcase? It s practically unreasonably slow. I m in a new empty project that all it does it ...

热门标签