-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
My question regards multiple selection. In the documentation (Databinding> Collection and Selections > Multiple Selections) it mentions that to access the selected items we should bind selectedItems to a property whose type is Set. This works if the components model type is ListModelList, but I use a ListModelMap<key, obj="">.
If I implement
Set<Obj> selectedObjs = new HashSet<Obj>();
When trying to access the selectedItems in the view model I get an error: Obj cannot be cast to java.util.Map$Entry
because i guess that there is incompatibitlity between sublasses of Set (like HashSet) and ListModelMap. Can you advise a solution to this, thanks
Asked: 2013-08-01 14:38:37 +0800
Seen: 20 times
Last updated: Aug 20 '13
How to load markers dynamically on zk gmap
Possible bug in Combobox component
composite component help [closed]
EL in a forEach @command not working?
Different template for each grid row
Cardlayout animation is broken
Grid RowRender slow using 6.5.1 and sizable=true
What is the purpose of using ListModelMap. Can you provide your scenario?
iamsudhir4u ( 2013-08-02 07:48:59 +0800 )editFor example, I upload multiple files to the server, then display the uploaded file name in a Listbox. If I upload a file that has the same name, then the existing file is overwritten/replaced with the newer file. A ListModelMap replaces the entry (if the key is the filename) ListModelList doesn't
salman1 ( 2013-08-02 19:12:47 +0800 )editAnyone know how to resolve this?
salman1 ( 2013-08-13 11:51:23 +0800 )edit