[Seaside] select tag population / callback..
Boris Popov, DeepCove Labs
boris at deepcovelabs.com
Wed Sep 26 12:43:16 UTC 2012
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.
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..
photographer, journalist, visionary
seaside mailing list
seaside at lists.squeakfoundation.org
More information about the seaside