import org.zkoss.bind.annotation.Command; import org.zkoss.mesg.Messages; import org.zkoss.zk.ui.event.Event; import org.zkoss.zk.ui.event.Events; import org.zkoss.zk.ui.util.Clients; import org.zkoss.zul.Listbox; import org.zkoss.zul.mesg.MZul; public class PersonComposer extends BaseComposer { private static final long serialVersionUID = -2283164562822057399L; private Listbox listbox; private String selected = null; private String[] persons = new String[]{"Mike","Jonhy"}; public PersonComposer() { super(); } public String getSelected(){ return selected; } public void setSelected(String selected){ this.selected = selected; } public String[] getPersons(){ return persons; } @Override public Listbox getListbox() { return listbox; } }