0

How to use Map<String, List<Model>> listbox

asked 2011-03-12 07:01:04 +0800

dagarwal82 gravatar image dagarwal82
246 4

I have not been able to make Map<String, List<Model>> work in my listbox.

I want to have key of this map in headers and the collection of value(ie List<Model>) will be listitems.

delete flag offensive retag edit

8 Replies

Sort by ยป oldest newest

answered 2011-03-14 23:52:57 +0800

yaryan997 gravatar image yaryan997
210 2

@dagarwal82
hey friend Can you please post your source code.. so we can help you well

Best Regards
Yogendra

link publish delete flag offensive edit

answered 2011-03-25 00:29:39 +0800

leoyc gravatar image leoyc
163 3

I have been able to make ArrayList<Map<String,Object>> work in my listbpx.

link publish delete flag offensive edit

answered 2011-03-25 02:55:25 +0800

dagarwal82 gravatar image dagarwal82
246 4

Using renderer ?

link publish delete flag offensive edit

answered 2011-03-25 03:21:31 +0800

Rhino gravatar image Rhino
3

try to google it

link publish delete flag offensive edit

answered 2011-03-25 05:21:58 +0800

dagarwal82 gravatar image dagarwal82
246 4

@Rhino

There is no need to post If you can not help. Anyway I have been able to complete my application long before, just wanted to know if you guys are also using renderer or implementing a listmodel

link publish delete flag offensive edit

answered 2011-03-25 07:34:29 +0800

caclark gravatar image caclark
1753 2 5
http://clarktrips.intltwi...

<rant>
Let's talk about forum etiquette a bit...
1) I think with @Rhino's post being the first one for him/her/bot, it's spam. Especially with the URL planted in the signature.
2) @leoyc should have added a sample rather than just say "mine works". Those kind of comments do absolutely *nothing* to help @dagarwal82 solve the problem being discussed. If you can't suggest a solution, post sample code, point to another thread with a possible solution, or point to documentation with a possible cure, you're just wasting bandwidth and everyone's time.
2) @dagarwal82, if you've solved the problem, you could sure cure someone else's pain someday by posting a sample of what you have running successfully.
</rant>

link publish delete flag offensive edit

answered 2011-03-25 08:16:11 +0800

zknewbie1 gravatar image zknewbie1
370 4

"Seekers of truth, a single lamp may light hundreds of thousands of lamps without itself being diminished... Likewise, the more you teach and demonstrate virtuous qualities to others, the more you grow with respect to these virtuous qualities."

~~ "The Inexhaustible Lamp" - Vimalakirti ~~

link publish delete flag offensive edit

answered 2011-03-25 15:44:37 +0800

Matze2 gravatar image Matze2
773 7

I can confirm, that List<Map<String, Object>> works nicely with listbox or grid. Except auto(sorting).
Look at this issue. There is also a file attached which shows a small example how to do it.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2011-03-12 07:01:04 +0800

Seen: 673 times

Last updated: Mar 25 '11

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