[Seaside-dev] Enhancement to select tag

Lukas Renggli renggli at gmail.com
Mon Mar 30 17:10:28 UTC 2009


> collection and therefore could be ignored too.  This is part of the price
> that must be paid to meet the javascript requirement.

I still don't understand why you need to change the 'value' attribute
to be able to identify your elements from Javascript. Why can't you
use an 'id', 'class' or any other attribute?

>>I see that the values are local to a single list, so composition
>>shouldn't be a big problem. Furthermore the callbacks for each list
>>item are not really needed, a simple mapping between key and values
>>would probably save some memory. I created an issue for that:
>>http://code.google.com/p/seaside/issues/detail?id=374.
>
> Excellent!  Especially if something like a #values: method could be added
> that worked like the #labels: method, where the block is used to answer a
> label for each element in the list collection.

We will have a look. I think this could even simplify some internal
parts of Seaside.

Cheers,
Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch


More information about the seaside-dev mailing list