A common mistake when using ZK is to stay in the request/response cycle in your head. ZK doesn't do request/response cycle. Forget about it. ZK is like Swing: You create the UI, you put your data in models and then let the framework render everything.
In your case, you probably try to add the ListBox
to the UI again (because that's what you're used to from JSPs). Don't do that. Just update the models which are attached to the ListBox
and ZK will refresh the HTML for you.