[Seaside] Using the select tag
Philippe Marschall
philippe.marschall at gmail.com
Thu Sep 29 08:05:21 UTC 2011
2011/9/29 Olivier Auverlot <olivier.auverlot at gmail.com>:
> Hi,
>
> I need to use a drop-down menu in a seaside application. In the examples
> that I have found, the displayed values are initialized with #list:
>
> html select
> list: #(#Male #Female);
> selected: self contact gender;
> callback: [ :value |
> value = #Male
> ifTrue: [ self contact beMale ]
> ifFalse: [ self contact beFemale ] ].
>
> In the browser, I get this HTML code :
>
> <select name="3"><option value="1"selected="selected">Male</option><option
> value="2">Female</option></select>
>
> My problem is how to set the values for each <option> tag ? I would get
> something like :
Why do you want to do this?
Cheers
Philippe
More information about the seaside
mailing list