[Seaside] SU autocompleter

Gerhard Obermann obi068 at gmail.com
Fri Mar 21 20:00:59 UTC 2008


Hi Lukas!

It works, thanks a lot!

But i dont fully understand the magic of the selection handler!

br

Gerhard

selectionHandlerOn: html
 ^ html evaluator
  callback: [ :value | properties at: 'result' put: (html context callbacks
at: value ifAbsent: [ nil ]) ]
   value: (SUStream new
    nextPutAll: 'arguments[1].id.match';
    argument: SUSortable passengerRegexp;
    nextPutAll: '[1]')

On Fri, Mar 21, 2008 at 7:46 PM, Lukas Renggli <renggli at gmail.com> wrote:

>  > Is it possible to get back the real object using the scriptaculous
> > autocompleter.
> > By default only the display string is set to the input field.
> > But i need the real selected instance from the dropdown list.
>
> See PRAjaxSearchWidget, the search widget of Pier. It assigns a
> passenger to each list item and seralized it back to the server.
>
> Cheers,
> Lukas
>
> --
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20080321/5586943c/attachment.htm


More information about the seaside mailing list