Re: collection for html:optionsCollection in servlet context

2006-03-01 Thread Chris Cheshire
On 3/1/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: > > If the thing stored under attribute "states" in application scope is, in > fact, a List of beans, you won't need the "property" attribute at all. > Specifying a "name" but not a "property" tells the tag to use the attribute > value itself.

Re: collection for html:optionsCollection in servlet context

2006-03-01 Thread Craig McClanahan
On 3/1/06, Chris Cheshire <[EMAIL PROTECTED]> wrote: > > You lost me with that page too. The use of the word widget threw me > completely because I am used to seeing it reference to a concrete > component :) > > I understand how to write the struts tag. Let's step back a bit. I'll > see if I can ex

Re: collection for html:optionsCollection in servlet context

2006-03-01 Thread Michael Jouravlev
I see. What if you wrap your list into another bean, say StateHolder. Then you stick StateHolder in the application context under name "stateHolder". Then you use something like this: On 3/1/06, Chris Cheshire <[EMAIL PROTECTED]> wrote: > You lost me with that page too. The use of the word widge

Re: collection for html:optionsCollection in servlet context

2006-03-01 Thread Chris Cheshire
You lost me with that page too. The use of the word widget threw me completely because I am used to seeing it reference to a concrete component :) I understand how to write the struts tag. Let's step back a bit. I'll see if I can explain this better. My question is how do I reference the collecti

Re: collection for html:optionsCollection in servlet context

2006-03-01 Thread Michael Jouravlev
On 3/1/06, Chris Cheshire <[EMAIL PROTECTED]> wrote: > Michael, > > Thanks for the reference, but it doesn't explain very much. > > Yes the widget looks like what I want, but is it something I download? You lost me. > Is it something that exists in the struts tag libraries? Does the > states coll

Re: collection for html:optionsCollection in servlet context

2006-03-01 Thread Chris Cheshire
Michael, Thanks for the reference, but it doesn't explain very much. Yes the widget looks like what I want, but is it something I download? Is it something that exists in the struts tag libraries? Does the states collection exist there? What happens if I wanted to do states for Australia for inst

Re: collection for html:optionsCollection in servlet context

2006-03-01 Thread Michael Jouravlev
On 3/1/06, Chris Cheshire <[EMAIL PROTECTED]> wrote: > I am building a select list to select a state for an address and since > it will be used in a few forms throughout the application I want to > make this as centralised as possible. > > I have built a bean with getValue(), getLabel() attributes

collection for html:optionsCollection in servlet context

2006-03-01 Thread Chris Cheshire
I am building a select list to select a state for an address and since it will be used in a few forms throughout the application I want to make this as centralised as possible. I have built a bean with getValue(), getLabel() attributes and created a collection of them and placed as an attribute in