[Seaside] Can I do this with a select list?

Keith Hodges keith_hodges at yahoo.co.uk
Fri Oct 6 05:55:29 UTC 2006


so your example would be something like this

html select
    list: catCollection;
    selected: catCollection first;
    labels: (catCollection collect: [ :item | item name ]);
    callback: [ :item | self cat: item ];

> .
> .
> (html select) list: catCollection; useMappingMethod: #name; selected: 
> (catCollection first); callback: [:i | self cat: i].
> .

All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine 

More information about the Seaside mailing list