wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmagnollay <cmagnol...@gmail.com>
Subject Re: ListView (or other Repeater) with backing map
Date Mon, 30 Apr 2012 17:43:30 GMT
if the map is called something like 

Map<Item, Integer> itemMap = new HashMap<Item, Integer>();

Hmm, so I would instantiate the ListView like so?

ListView<List&lt;Map.Entry&lt;Item, Integer>> lv = new
ListView<List&lt;Map.Entry&lt;Item, Integer>>("id", new
PropertyModel<List&lt;Map.Entry&lt;Item, Integer>>(this,

populateItem(Map.Entry<Item, Integer> entry)



Is this what you are implying somewhat? Thanks for the answer by the way, I
had not considered just, for lack of a better term, "fooling" the listview
into using my map elements.

View this message in context: http://apache-wicket.1842946.n4.nabble.com/ListView-or-other-Repeater-with-backing-map-tp4598817p4598865.html
Sent from the Users forum mailing list archive at Nabble.com.

To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org

View raw message