Tx Francisco, and in some magic way the select tag iterates through my both
list and select the choosen ones! :) Yes this i like :)

/Mathias

-----Original Message-----
From: Francisco Hernandez [mailto:[EMAIL PROTECTED]
Sent: den 13 november 2003 10:52
To: [EMAIL PROTECTED]
Subject: Re: [OS-webwork] UI tag - multiple select box


you need to specify a value attribute, with a list of keys that are to 
be selected

Mathias Berg wrote:

> Hello all! I got a problem with webworks select tag. I cant figure out how
> you can make a multiple select box with values that are...multiple
selected
> when you load it on load of the view.
> 
> This it how it looks.
> <ww:select label="'Country'" name="'demo.countryId'" list="demo.countries"
> listKey="key" listValue="value" multiple="true" size="8"  />
> 
> demo.countries returns a list containing objects which have a key and
value
> methods. Now how should a make so that some of this objects value should
be
> selected...
> 
> I want this result on load of the view:
> <select name="demo.countryId" size="8" multiple="multiple" >
> <option value="GB" selected>United Kingdom</option>             
> <option value="SE">Sweden</option>
> <option value="ES" selected>Spain</option>
> <option value="NO">Norway</option>            
> </select>
> 
> Maybe im missing something big here...
> 
> Any help would be appreciated.
> 
> Regards, Mathias.
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by: ApacheCon 2003,
> 16-19 November in Las Vegas. Learn firsthand the latest
> developments in Apache, PHP, Perl, XML, Java, MySQL,
> WebDAV, and more! http://www.apachecon.com/
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 
> 
> 





-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork


-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to