• Post Reply Bookmark Topic Watch Topic
  • New Topic

ArrayList as checkbox

 
arushi tomar
Ranch Hand
Posts: 91
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to show an array list as a checkbox, how can i do that?
Thanks in advance
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35709
408
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds like you want a list of checkboxes. You can use JSTL to loop through your array list and print one checkbox each time.
 
arushi tomar
Ranch Hand
Posts: 91
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne Boyarsky wrote:It sounds like you want a list of checkboxes. You can use JSTL to loop through your array list and print one checkbox each time.


Thank you. I did this :

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Except, of course, that's a select drop down, not a checkbox. Is that what you intened all along?
 
arushi tomar
Ranch Hand
Posts: 91
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Except, of course, that's a select drop down, not a checkbox. Is that what you intened all along?


No i changed what I had to do, I needed checkbox with multiple select but couldn't do it so i used drop down. Even this is not taking multiple values right now. Suggestions? :-)
 
Partheban Udayakumar
Ranch Hand
Posts: 496
AngularJS Java Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
arushi tomar wrote:I needed checkbox with multiple select but couldn't do it


Why not? You could use your code to add check boxes.

Did you try this?
 
arushi tomar
Ranch Hand
Posts: 91
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you :)
 
Partheban Udayakumar
Ranch Hand
Posts: 496
AngularJS Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
arushi tomar wrote:Thank you :)

You are welcome. Please mark the post as resolved if you got the answers.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!