This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts 2 Select tag - dynamically add to the list Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 Select tag - dynamically add to the list" Watch "Struts 2 Select tag - dynamically add to the list" New topic
Author

Struts 2 Select tag - dynamically add to the list

Ally Cavs
Ranch Hand

Joined: Aug 25, 2008
Posts: 89
I have an app that does photo uploads
For each photo that is uploaded, the name of the photo appears on the screen with a drop down box
The drop down box is a list numbers. The order of which ti show the pics

So for each file uploaded I want to increment each list for each dropdown box by one

This is how my dropdown boxes are decalred. In thinking of just using a text box now where the user can just type in the number
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Personally I'd use a sortable list, and there are a ton of JavaScript implementations out there.
 
 
subject: Struts 2 Select tag - dynamically add to the list