[Seaside] select tag population / callback..
pdebruic at gmail.com
Wed Sep 26 05:55:26 UTC 2012
Look at the senders of #select for ideas on how it can be done.
In a form just make the callback something like
callback:[:value | self setSelectedValue: value]
On Sep 25, 2012, at 9:51 PM, sergio_101 <sergio.rrd at gmail.com> wrote:
> hey, guys.. i am trying to figure this out, but i am missing something here:
> i have an array of objects...
> i would like to populate a select box so that the options will be
> populated with the some text from the object..
> when the form is submitted, i want the callback to set some value to
> the object pointed to by the select box..
> if i do something like this:
> html select
> list: self trackSelect;
> callback: [:value | ?? ].
> the box populates correctly, but i can't figure out how to grab a
> handle to the object selected..
> am i just thinking about this all wrong?
> photographer, journalist, visionary
> seaside mailing list
> seaside at lists.squeakfoundation.org
More information about the seaside