RE: Populate a s:select

2007-07-05 Thread David Pinho \(Hexadecimal\)
might be worth checking Apache Commons Collections as it (almost) for sure has what you need. David -Original Message- From: Andreja [mailto:[EMAIL PROTECTED] Sent: quinta-feira, 5 de Julho de 2007 18:13 To: Struts Users Mailing List Subject: Re: Populate a s:select Hi. LinkedHashMap will pr

Re: Populate a s:select

2007-07-05 Thread Andreja
Hi. LinkedHashMap will preserve order in wich elements are added to LinkedHashMap, and checkboxlist (radiobuttons, etc) will be displayed in that order. > If I have a Hashtable with the > following data: > 1,"One" > 2,"Two" > 11,"Eleven" > Is it possible to make the select box display the > d

Re: Populate a s:select

2007-07-05 Thread Dave Newton
--- Richard Sayre <[EMAIL PROTECTED]> wrote: > With #7/#8. If petsDao.pets is an ArrayList > does listKey="fieldName" and listValue="fieldName2" > mean that to get these values, call getFieldName() > getFieldName2() on the objects stored in the ArrayList Yep: >> listKey: Property of list objec

Re: Populate a s:select

2007-07-04 Thread Richard Sayre
On 7/4/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Richard Sayre <[EMAIL PROTECTED]> wrote: > http://struts.apache.org/2.0.8/docs/select.html > > I was wondering what: > > list="petDao.pets" > listKey="id" > listValue="name" > > are referring to? > > 1) Is petDao a java bean? 2) Is it an acti

Re: Populate a s:select

2007-07-04 Thread Dave Newton
--- Richard Sayre <[EMAIL PROTECTED]> wrote: > http://struts.apache.org/2.0.8/docs/select.html > > I was wondering what: > > list="petDao.pets" > listKey="id" > listValue="name" > > are referring to? > > 1) Is petDao a java bean? 2) Is it an action? > 3) How do you set it up on the page? 4)