Hello, I'm new to ZK and I have a question about live data. I read through the documentation and as far as I understand, if I need more than one column in a listbox, I must implement a rowrenderer or listitem renderer, but if I use the databinding annotations, I can use the properties of a bean to display my information. But I don't really need to data bind my model, I just use this listbox to display some results. Is there a problem if I use the databinding annotations instead of implementing a renderer and use live data? Or is it another way to achieve this?
For example, I have the following inside a listbox with id 'resultsLb':
<zscript>
List list = new ProveedorServicioDao().findByProv(116);
ListModelList lmlist = new ListModelList(list);
resultsLb.setModel(lmlist);
</zscript>
<listitem self="@{each=utm}" value="@{utm}">
<label value="@{utm.id}"></label>
<label value="@{utm.stDesc}"></label>
</listitem>
Is there a better way to accomplish this if I only want to display the information?
Hello, I'm new to ZK and I have a question about live data. I read through the documentation and as far as I understand, if I need more than one column in a listbox, I must implement a rowrenderer or listitem renderer, but if I use the databinding annotations, I can use the properties of a bean to display my information. But I don't really need to data bind my model, I just use this listbox to display some results. Is there a problem if I use the databinding annotations instead of implementing a renderer and use live data? Or is it another way to achieve this?
For example, I have the following inside a listbox with id 'resultsLb':
<zscript> List list = new ProveedorServicioDao().findByProv(116); ListModelList lmlist = new ListModelList(list); resultsLb.setModel(lmlist); </zscript> <listitem self="@{each=utm}" value="@{utm}"> <label value="@{utm.id}"></label> <label value="@{utm.stDesc}"></label> </listitem>Is there a better way to accomplish this if I only want to display the information?
Thanks in advance