Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do I keep my multiple selections highlighted?

 
William Oberkirsch
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a pdk:select with optionsCollection, with the multiple set so that I can select multiple options. The problem I am having is they will not stay highlighted. I need to be able to select one or many options and when the selection is taking place, I need to be able to make calls to the db and get other options associated with the selected options (one to many), this much I have working but how do I keep my selections highlighted after the screen has refreshed? :banghead:
 
Rob Spoor
Sheriff
Pie
Posts: 20529
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'll move this thread to our Struts forum.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's pdk:select? Is it a Struts tag with a weird prefix?
 
William Oberkirsch
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, it is sturts.




in the set_selectedValues() for now I am just doing "document.forms[0].submit(); In my action class I have a private method set_sectors that calls to the db and gets all sectors relating to the selected industries:



So how do I keep my multiple selections highlighted after my set_selectedValues() call?
any help will be greatly appreciated.

Bill O.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The form would need to be either (a) in session, or (b) initialized to the current values.
 
William Oberkirsch
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am very new to JAVA so please......

how do I initialize my selection list to the latest selected values. I can do the initialization for a single selected value but how for multiple selected values? and where? in the script or in the java class?

this is how I am setting the current selection in the java class


Thanks,

Bill O.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic