Pl. help urgent Using optionsCollection - LabelValueBean

2004-03-15 Thread ddd ddd
On Mon, 15 Mar 2004 ddd ddd wrote : Hi All I am new bie and learning to populate the drop box by all different ways . 1. By Collections of strings 2. By collections beans 3. Hard coding I am unable to achieve even first way tried a lot but failed can any body suggest me

Re: Re: Using optionsCollection - LabelValueBean

2004-03-15 Thread ddd ddd
Hi Timo I am new bie and learning to populate the drop box by all different ways . no body has replied for alomst a 4-5 days pl. help me... population of data by different ways which are as below 1.By Collections of strings 2.By collections beans 3.Hard coding I am unable to

Re: Using optionsCollection - LabelValueBean

2004-03-15 Thread Dean A. Hoover
I'm also a newbie, but here is an example of what I found by getting some help from the people on the list plus experimentation. Here is a helper class I wrote: package fi.els.form; import java.util.*; import org.apache.struts.util.LabelValueBean; public class CreditCardOptions { public static

Using optionsCollection - LabelValueBean

2004-03-14 Thread Timo Tjäder
Hi, I have problems with optionsCollection, when used with html:select custom tag. 1. I set up in a bean LabelValueBean object in a Vector 2. pass it back to form and try to create a html:selec This part should display a combo box with options, but it just does not work. It does not display

Re: Using optionsCollection - LabelValueBean

2004-03-14 Thread Hubert Rabago
The html:select needs to be provided with the property it's associated to, the one on your form bean that will hold the actual value selected. html:select property=mySelectValue style=font-size: 10px; property=goTo size=1 html:optionsCollection name=PageDetailView

Re: Using optionsCollection - LabelValueBean

2004-03-14 Thread Timo Tjäder
Hi, Thanks Hubert, the problem was on the html page. 1. I forgot to add second form tag to handle page linking system on footer. 2. Also as you mentioned all the parameters must be match with the form beans I am posting. After making those changes the combox box was redered nicely on same

Re: Using optionsCollection - LabelValueBean

2004-03-14 Thread ddd ddd
Hi All I am new bie and learning to populate the drop box by all different ways . 1. By Collections of strings 2. By collections beans 3. Hard coding I am unable to achieve even first way tried a lot but failed can any body suggest me where I am wrong. Also pl. suggest me