• Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts 2 Select tag - dynamically add to the list

 
Ally Cavs
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Personally I'd use a sortable list, and there are a ton of JavaScript implementations out there.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!