[Seaside] select tag population / callback..

Boris Popov, DeepCove Labs boris at deepcovelabs.com
Wed Sep 26 12:43:16 UTC 2012


Sergio,

You can also implement Country>>renderOn: instead, but #labels: makes more sense generally, because in one list you could be using #shortLabel and in another #longLabel etcetera.

HTH,

-Boris


-----Original Message-----
From: seaside-bounces at lists.squeakfoundation.org [mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf Of sergio_101
Sent: Wednesday, September 26, 2012 8:39 AM
To: Seaside - general discussion
Subject: Re: [Seaside] select tag population / callback..

> (html select)
>     list: self countries;
>     selected: country;
>     labels: [:ea | ea label];
>     callback: [:obj | country := obj].
>
> where #country is an ivar and #countries is a selector returning a collection of your country objects each of which responds to a #label for its textual representation, for example.
>

ah! labels! this is the method i think i was overlooking!

unfortunately, i can't play with this until i get home tonight..

until 5pm.. i am in ruby on rails world..

thanks, boris!

-- 
----
peace,
sergio
photographer, journalist, visionary

http://www.ThoseOptimizeGuys.com
http://www.CodingForHire.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101
_______________________________________________
seaside mailing list
seaside at lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


More information about the seaside mailing list