ItEr29S14ProcuraOrganizacionsTraballo: [FixBug] Initialize listbox.model when model is null
This commit is contained in:
parent
42eb7481d9
commit
bc4500db25
1 changed files with 2 additions and 0 deletions
|
|
@ -64,6 +64,8 @@ public class BandboxSearch extends HtmlMacroComponent {
|
|||
listbox = (Listbox) getFellowIfAny("listbox");
|
||||
if (model != null) {
|
||||
setModel(new SimpleListModel(model));
|
||||
} else {
|
||||
listbox.setModel(finder.getModel());
|
||||
}
|
||||
listbox.setItemRenderer(finder.getItemRenderer());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue