O'Reilly logo

ZK Developer's Guide by Markus Stauble, Hans-Jurgen Schumacher, Jurgen Schumacher

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Optimize the Result Presentation

If we have many results in the list, we need paging. This feature is provided through a mold. In practice, even with a mold, the lists in ZK have proven to be too slow when getting bigger (10K elements). We just have to change the listbox component on index.zul, and the following presentation of the result.

The changed listbox is shown in the following code:

<listbox mold="paging" pageSize="10" id="myList" use="com.packtpub.zk.media.view.MyListbox" itemRenderer="com.packtpub.zk.media.view. MediaListItemRenderer" model="${model}"> <listhead> <listheader label="" /> <listheader label="" /> <listheader label="Id" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required