Line 79... |
Line 79... |
79 |
final Where where = this.hasSelectedValue() ? new Where(this.request.getPrimaryTable().getKey(), "=", this.getSelectedValue().getId()) : null;
|
79 |
final Where where = this.hasSelectedValue() ? new Where(this.request.getPrimaryTable().getKey(), "=", this.getSelectedValue().getId()) : null;
|
80 |
final List<IComboSelectionItem> items = this.request.getComboItems(true, Arrays.asList(QUERY_SPLIT_PATTERN.split(this.filter)), Locale.getDefault(), where);
|
80 |
final List<IComboSelectionItem> items = this.request.getComboItems(true, Arrays.asList(QUERY_SPLIT_PATTERN.split(this.filter)), Locale.getDefault(), where);
|
81 |
|
81 |
|
82 |
System.err.println("LightAutoCompleteComboBox.applyFilter() - items count: " + items.size());
|
82 |
System.err.println("LightAutoCompleteComboBox.applyFilter() - items count: " + items.size());
|
83 |
for (final IComboSelectionItem item : items) {
|
83 |
for (final IComboSelectionItem item : items) {
|
- |
|
84 |
int id = item.getId();
|
- |
|
85 |
String label = item.getLabel();
|
- |
|
86 |
System.err.println("LightAutoCompleteComboBox.applyFilter() " + id + " : " + label);
|
84 |
this.addValue(new LightUIComboBoxElement(item.getId(), item.getLabel()));
|
87 |
this.addValue(new LightUIComboBoxElement(id, label));
|
85 |
}
|
88 |
}
|
86 |
|
89 |
|
87 |
this.setSelectedId(selectedId);
|
90 |
this.setSelectedId(selectedId);
|
88 |
}
|
91 |
}
|
89 |
}
|
92 |
}
|