[Seaside] trying to use WASelectTag and its not working....

Nick Ager nick.ager at gmail.com
Fri Sep 10 11:57:37 UTC 2010

Hi Lawson,

> Do you expect it to be called on change or on form submit? If the
> former, you need #beSubmitOnChange (or use proper JS library to wire
> this event), if the latter, please post a complete example of a form.
>     html select
>             list:  (self class selectors);
>         selected: #renderContentOn: ;
>         callback: [:value | self createText: value     ].
>              html break.

As Boris says, your callback will only be evalulated when the form is
submitted. So you need to add a form and a submit button or a call to
#beSubmitOnChange. Something like:

html form:[
   html select
           list:  (self class selectors);
       selected: #renderContentOn: ;
       callback: [:value | self halt ].

or instead of #beSubmitOnChange use:

html submitButton with: 'lookup'.

inside the form

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20100910/3ad70cd8/attachment.htm

More information about the seaside mailing list