[Seaside] select tag population / callback..
Paul DeBruicker
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?
>
> thanks!
>
>
> --
> ----
> 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