gwt-ext的Combo box可以有自定义的template,设置combo box下每一项的显示格式:
String tpl = "<div class=/"x-combo-list-item/">{name} {phoneNumber} {mobileNumber}<div class=/"x-clear/"></div></div>";
cb.setTpl(tpl);
其中{field}表示combo box的RecordDef的一个field。用div包含并且设置class,否则不能从下拉框里选择。
参见gwtext showcase