Listbox grouping & sorting in 6.5.0 [closed]

asked 2012-09-28 09:13:32 +0800

gganassin gravatar image gganassin flag of Luxembourg
540 6

updated 2012-09-28 09:16:16 +0800

Dear all,

i've struggled for 2 days trying to reproduce the examples available in the docs, downloading the demo ones and checkin the forum but no way: there is something always missing or not updated or simply not working properly (even in zkoss.org/demo there are examples that are NOT working! - ex grid grouping model).

Following this one (http://books.zkoss.org/wiki/ZK_Developer's_Reference/MVC/Model/Groups_Model), i end up with a

SEVERE: >>java.lang.ArrayIndexOutOfBoundsException: 2
>>	at org.zkoss.zul.GroupsModelArray.getChild(GroupsModelArray.java:166)
>>	at org.zkoss.zul.impl.GroupsListModel.getElementAt(GroupsListModel.java:201)
>>	at org.zkoss.zul.Grid$Renderer.render(Grid.java:1007)
>>	at org.zkoss.zul.Grid.renderItems(Grid.java:1116)
>>	at org.zkoss.zul.Grid.service(Grid.java:1620)
>>	at org.zkoss.zk.ui.impl.DesktopImpl.service(DesktopImpl.java:692)

And basically i'm able to group ONLY the first column... the others produce the following:

Is there anyone who has a simple (working) example of a listbox with grouping & sorting fulfilled with a List of beans and not with a tabular data array? So Model + Comparator + Renderer + zul...

Any tip, link or snippet is more than welcome!


delete flag offensive retag edit

The question has been closed for the following reason "question is not relevant or outdated" by gganassin
close date 2013-05-10 13:55:28

2 Replies

Sort by ยป oldest newest
link publish delete flag offensive edit

answered 2013-05-10 13:54:45 +0800

gganassin gravatar image gganassin flag of Luxembourg
540 6

Thanks for the link - however... it is not implementing the grouping & sorting features.

I saw that finally in the grouping model example got updated in MVVM way... and it works fine... so i'm done thanks!

I am curious to see if i will be able to port it somehow in MVC databinding... but at least i have an exit strategy thanks!

link publish delete flag offensive edit

Question tools




Asked: 2012-09-28 09:13:32 +0800

Seen: 63 times

Last updated: May 10 '13

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