Re: getting user selection from a object

2007-08-13 Thread Dale Newfield
Laurie Harper wrote: 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

Re: getting user selection from a object

2007-08-13 Thread Laurie Harper
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 tha

Re: getting user selection from a object

2007-08-13 Thread Dave Newton
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 PROTECT

Re: getting user selection from a object

2007-08-13 Thread Session A Mwamufiya
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, Sess

Re: getting user selection from a object

2007-08-13 Thread Dave Newton
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

Re: getting user selection from a object

2007-08-13 Thread Session A Mwamufiya
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 th

Re: getting user selection from a object

2007-08-13 Thread Session A Mwamufiya
Anyone familiar with the way the 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

getting user selection from a object

2007-08-13 Thread Session A Mwamufiya
Hi, I've been stuck trying to capture, in my action, the set of elements placed in one of the lists of an 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 o