struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Session A Mwamufiya" <smwam...@andrew.cmu.edu>
Subject Re: getting user selection from a <s:optiontransferselect> object
Date Mon, 13 Aug 2007 18:58:12 GMT
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 <smwamufi@andrew.cmu.edu> 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:
>> user-unsubscribe@struts.apache.org For
>>>> additional commands, e-mail:
>> user-help@struts.apache.org
>>>> 
>>>> 
>>>> 
>>> 
>>> 
>>> 
>> 
> ---------------------------------------------------------------------
>> To
>>> unsubscribe, e-mail:
>> user-unsubscribe@struts.apache.org For additional
>>> commands, e-mail: user-help@struts.apache.org
>>> 
>>> 
>>> 
>> 
>> 
>> 
> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional
>> commands, e-mail: user-help@struts.apache.org
>> 
>> 
> 
> 
> 
> 
> _________________________________________________________________________
> ___________ 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: user-unsubscribe@struts.apache.org For additional
> commands, e-mail: user-help@struts.apache.org
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message