This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes How to limit selections with s:optiontransferselect & struts 2.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to limit selections with s:optiontransferselect & struts 2.1" Watch "How to limit selections with s:optiontransferselect & struts 2.1" New topic
Author

How to limit selections with s:optiontransferselect & struts 2.1

E Robb
Ranch Hand

Joined: Aug 27, 2010
Posts: 111
I am using 's:optiontransferselect' for a "basket selection". I am wondering if there is any way to limit number of selections that can be moved to the other "basket". I would like to use the existing struts framework. Is there something existing in the frame work that would say limit my choices to 3 selections?

Here is my current code:




On a side note to the moderater I find it really annoying I cant use 'sptiontransferselect' but am forced to use the ampersign #58 to achieve s:option without getting Emoticons.

Thanks,
Earl
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to limit selections with s:optiontransferselect & struts 2.1
 
Similar Threads
Help in Debugging
Struts 2.1 error message breaks page html formatting
struts-2 (set values to action class)
s:optiontransferselect odd rendering on submit to action
<s:optiontransferselect > items not autoselected on submit.