Listbox does not respond to the click event

asked 2016-10-01 19:48:19 +0800

ntsetso gravatar image ntsetso
51 1 3

I’m using MVC with ZK 7.0.3. I populate a Listbox with ListModelList. I click one list item for further processing. The problem is that from element number 51 towards the Listbox does not respond to the click event. What coud be the cause?

Here is a code snipet from my controller:

List<Farmaco> farmacos = DAOs.getFarmacoDAO().findAll();
    ListModelList<Farmaco> farmacoModel = new ListModelList<Farmaco>(farmacos);


Then . . .

@Listen("onClick=#farmacoList listitem listcell button")
public void addFarmaco(Event fe) {
    if (!(fe.getTarget() instanceof Button)) {
    } else {
        Button btn = (Button) fe.getTarget();
        String strId = btn.getId();
        Farmaco farmaco = DAOs.getFarmacoDAO().buscaId(strId);

A snipet from the zul:

<groupbox width="424px" mold="3d" id="farmaco">
   <caption label="Fármacos" />
   <listbox id="farmacoList">
    <listhead sizable="true">
        image="/image/Bullet-10x10.png" align="center" width="7%" />
      <listheader label="Descrição" width="60%" />
      <listheader label="Preço" align="right" width="18%" />
      <listheader label="Add" width="16%" align="center" />
    <template name="model">
      <listitem value="${each}">
          <image src="/image/Bullet-10x10.png" />
          <label value="${each.descricao}" />
            <listcell label="${(each.precoCashCompF)}">
              <button image="/image/AddSquare-16x16.png" id="${(each.id)}" />

I’ve tried a grid with the same result. Thanks in advance.

delete flag offensive retag edit


Try renderAll on the listbox after setting model

chillworld ( 2016-10-01 21:04:32 +0800 )edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2016-10-01 19:48:19 +0800

Seen: 24 times

Last updated: Oct 01 '16

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More