Revision history [back]

generic cast

Hi, ZK 6.5 had supported generic. It is great. But when I override components, it make some trouble. For example I use MyListitem to render in a Listbox. In before, the follow code is ok.

List<mylistitem> items = listbox.getItems();

But now, it will cause compile error. There are many codes have this problem. How could I solve this problem quickly? Thank you.

generic cast

Hi, ZK 6.5 had supported generic. It is great. But when I override components, it make some trouble. For example I use MyListitem to render in a Listbox. In before, the follow code is ok.

List<mylistitem>

List<MyListitem> items = listbox.getItems();listbox.getItems();


But now, it will cause compile error. There are many codes have this problem. How could I solve this problem quickly? Thank you.

Support Options
• Email Support
• Training
• Consulting
• Outsourcing