According to the documentation [1], the items in the list should get selected automatically when the form is submitted -- i.e. the desired behaviour / workaround is how the component is meant to work out of the box. So, it sounds like a JIRA issue should be filed, but as a bug report rather than a feature request.

L.

http://struts.apache.org/2.x/docs/optiontransferselect.html

Dave Newton wrote:
Oh; I misunderstood what you wanted--sorry.

OTOH this is probably an enhancement that people might
want (kind of makes sense you'd want to be able to
retrieve all the items from the right-hand list); if
you're feeling saucy maybe add a feature request JIRA.

--- Session A Mwamufiya <[EMAIL PROTECTED]>
wrote:

Actually, giving the lists a name and providing
getters and setters just allows us to get the
selected element within the respective list.  I was
able to find a suitable workaround by selecting all
the elements in the list on an onclick event, then I
can get everything that I want.

Thanks,
Session


Give it an id (or name? I forget) and supply
set/get methods in the
action?

Isn't it just two select boxes (for all intents
and purposes, at least
regarding what you're doing)?

--- Session A Mwamufiya <[EMAIL PROTECTED]>
wrote:
Expert struts programmers, please take a look at
this thread.  I believe
it should be a straight forward answer, but I
haven't received any
replies since I launched the thread.  I don't
mean to pester you, but I'm
really trying to get over this hurdle.

Thanks,

Anyone familiar with the way the
<s:optiontransferselect> tag works?  I'm
looking to retrieve the content of the entire
right-hand list (not just a
selected item in it).  I would assume that
there's
a way to do that, but
I'm not sure how.  Any ideas?

Thanks,


Hi,

I've been stuck trying to capture, in my
action,
the set of elements
placed in one of the lists of an
<s:optiontransferselect> tag.  I can
refer to the selected element in the list by
using the name of the
list, but how do I access all of the elements
in
the list?  (they were
obtained by shifting items from the other list)

Thanks, Session



---------------------------------------------------------------------
To unsubscribe, e-mail:
[EMAIL PROTECTED] For
additional commands, e-mail:
[EMAIL PROTECTED]




---------------------------------------------------------------------
To
unsubscribe, e-mail:
[EMAIL PROTECTED] For additional
commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail:
[EMAIL PROTECTED] For additional
commands, e-mail: [EMAIL PROTECTED]






_________________________________________________________________________
___________ Choose the right car based on your
needs.  Check out Yahoo!
Autos new Car Finder tool.
http://autos.yahoo.com/carfinder/

---------------------------------------------------------------------
To
unsubscribe, e-mail:
[EMAIL PROTECTED] For additional
commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]





____________________________________________________________________________________ Got a little couch potato? Check out fun summer activities for kids. http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to