You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Kumar Kadiyala <ku...@yahoo.com> on 2006/02/03 19:21:13 UTC

Problem with html:select

Hello,

I am running into a problem with the html:select tag.
I have the "multiple" attribute set so that the list
renders as a multi select list box. I am using the
value attribute of this tag and if I specify an Array
as the value, the initial selection in the list box is
not correct. I looked into the source code (SelectTag)
and it seems like the value property has a dataType
String. Shouldn't the dataType be String for single
select lists and Arrays(or Collections) for multi
select lists? I have to use the value attribute on the
SelectTag. Is there a workaround?

Help appreciated,
Kumar

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: Problem with html:select

Posted by Michael Jouravlev <jm...@gmail.com>.
On 2/3/06, Kumar Kadiyala <ku...@yahoo.com> wrote:
> Hello,
>
> I am running into a problem with the html:select tag.
> I have the "multiple" attribute set so that the list
> renders as a multi select list box. I am using the
> value attribute of this tag and if I specify an Array
> as the value, the initial selection in the list box is
> not correct. I looked into the source code (SelectTag)
> and it seems like the value property has a dataType
> String. Shouldn't the dataType be String for single
> select lists and Arrays(or Collections) for multi
> select lists? I have to use the value attribute on the
> SelectTag. Is there a workaround?

http://javaboutique.internet.com/tutorials/strutsform/

This is the developers' list. Use the struts-user list for
usage/howto/problems/questions.

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