I've tried everything to fill out this combo, but I can not. seeking the combo is populated from the DB. I tried using a <zcript> for that purpose and nadabr
I am using the bandbox, he works as follows where le, $ {languages​​} and receive my list that reads: $ {each} the list data PS.: This list is of type ListModel, listGroup etc. ...???
Submited.zul
TestComposer.java
index.zul
If I used the OnCreate, I am looking into it a list, but I could not make up a complete dynamically.
example:
public void onCreate (Event event) throws InterruptedException, IOException, SQLException, ClassNotFoundException {
EditoraPersistencia editoraPersistencia DAOFactory.getiEditoraDAO = ();
Collection <Editora> editoraPersistencia.pesquisar editor = (null);
if (editor! = null) {
for (ed Publisher: publisher) {
/ / i.setLabel (ed.getNome ());
/ / i.setMold (ed.getNome ());
/ / lbxEditora.setName (ed.getNome ());
/ / setModel ((ListModel) ed.getNome ());
}
}
}
I've tried everything to fill out this combo, but I can not. seeking the combo is populated from the DB.
I tried using a <zcript> for that purpose and nadabr
I am using the bandbox, he works as follows where le, $ {languages​​} and receive my list that reads: $ {each} the list data
PS.: This list is of type ListModel, listGroup etc. ...???
How to populate a comboBox in the model Citati
File. zul.
<bandbox id="bd" mold="rounded" autodrop="true">
<bandpopup>
<listbox height = "250px" width = "300px" mold = "paging" autopaging = "true"
onSelect = "= bd.value self.selectedItem.label; bd.close ();">
<listhead>
<listheader label="Programming Languages" ></listheader>
</ listhead>
<listitem> label="${each}" forEach="${languages}" />
</ listbox>
</ bandpopup>
</ bandbox>
In short, how do I fill out a comboBox in zk, fetching data from a database?