[Seaside] trying to use WASelectTag and its not working....
nick.ager at gmail.com
Fri Sep 10 11:57:37 UTC 2010
> 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:
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...
More information about the seaside