-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi folks,
In the composer layer I am setting the model like following:
userDataGrid.setModel(new SimpleListModel(new LinkedList(usersList)));
userList is instance of ArrayList and it contains the UserVO objects. This usersList is already sorted, while I am setting this to grid, I see all the results but not in the required order.
Can any one tell is it a bug in ZK or am I missing something?
Thanks in advance.
-JE
Instead of SimpleListModel I tried with ListModelList also I am facing the same issue.
When I debug and check "userDataGrid" in the composer layer I see the list is retained in the correct order.
Any ideas if I am missing something?
Hi,
I have not encounter this issue.
I think you can pass usersList directly to SimpleListModel's constructor without wrapping with LinkedList first:
new SimpleListModel(usersList)
Asked: 2012-05-24 11:14:45 +0800
Seen: 132 times
Last updated: Aug 17 '12