File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes select all in list box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "select all in list box" Watch "select all in list box" New topic
Author

select all in list box

ben oliver
Ranch Hand

Joined: Mar 28, 2006
Posts: 374
I have a struts 2 list box, want to create button or link for "select all items" for user to click and select all the items in the list box. How to do that ? any example ?
Roberto Hernandez
Ranch Hand

Joined: Apr 29, 2009
Posts: 33
I guess you'll have to do this with javascript. See this example.
First, make sure you give your listbox an id attribute;


Then, you can invoke this function when the user clicks on the button
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: select all in list box
 
Similar Threads
adding a SelectItem object at particular index position in java.util.list
re:selecting an option from a select box
storing values chosen from dropdown
MULTIPLE select - list box - how to read in servlet
"Select Boxes" - Same Name