run the code, compare the 2 listboxes
lb1 -> radio buttons (single selection)
lb2 -> check boxes (multiple selection)
consistent results / documentation:
According to the javadocs ...
... setting/changing multiple is allowed when using a model.
-> both listboxes should render with multiple selection
The Component Reference states something different:
(which also makes sense, since setting the model later overrides previous settings to)
A similar hint from the javadocs of Listbox:
[Since 6.0.0] If a model is set, whether the listbox allows the multiple selection depends on Selectable.setMultiple(boolean). In other words, the application shall not access listbox directly if a model is assigned. Rather, the application shall access the model directly.
For lb1 the call into the list model is ignored, since the multiple property has already been set from the zul file, and hasn't changed by applying the model.
use setMultiple on the listmodel when using a list model