Fixed bug related with the model used with a combobox

* If we use a SimpleListModel the combobox will be empty (because the SimpleListModel extends from ListSubModel)
* Replaced with ListModelList

FEA: ItEr02S03MigracionZK5
This commit is contained in:
Farruco Sanjurjo 2011-02-01 10:15:22 +01:00
parent 85f50efa30
commit 6c0662e9ce
2 changed files with 4 additions and 3 deletions

View file

@ -57,7 +57,7 @@ import org.zkoss.zul.Combobox;
import org.zkoss.zul.Comboitem;
import org.zkoss.zul.Constraint;
import org.zkoss.zul.Datebox;
import org.zkoss.zul.SimpleListModel;
import org.zkoss.zul.ListModelList;
import org.zkoss.zul.Vbox;
/**
@ -144,7 +144,8 @@ public class CompanyPlanningController implements Composer {
if (cbProgressTypes == null) {
cbProgressTypes = (Combobox) planner.getFellow("cbProgressTypes");
}
cbProgressTypes.setModel(new SimpleListModel(ProgressType.getAll()));
cbProgressTypes.setModel(new ListModelList(ProgressType.getAll()));
// FIXME: Select default configuration option
// cbProgressTypes.renderAll();

View file

@ -1507,7 +1507,7 @@ display:none;
left: -8px;
}
.progress-types.z-combobox .z-combobox-img {
.progress-types.z-combobox .z-combobox-btn {
background-image: url(../img/small-combo-arrow.png);
border: 0;
}