[Seaside] RE: Using updater without triggering action callback?

Boris Popov boris at deepcovelabs.com
Thu Aug 23 20:03:50 UTC 2007


Also, to see exactly what I'm talking about, just add (defaultAction:
[]) to the form in SUFormTest>>renderLabel:control:model:on: then play
with examples, specifically select list, but all others exhibit the same
behavior.

Thanks!

-Boris

-- 
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
http://tinyurl.com/r7uw4

boris at deepcovelabs.com

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

> -----Original Message-----
> From: Boris Popov
> Sent: Thursday, August 23, 2007 12:58 PM
> To: 'Seaside - general discussion'
> Subject: Using updater without triggering action callback?
> 
> Say you have a form with default action callback to run a search. One
of
> the criteria for this search is specified using a select list in that
> form. Now I'd like to attach an updater to the select list to populate
a
> little "extras" div to the side of it with selection details, but I
would
> like to do so without triggering the default action of a form that
would
> actually execute the search?
> 
> (html select)
>  list: self accounts;
>  labels: [:acc | acc name];
>  selected: self account;
>  callback: [:value | self account: value];
>  onChange: ((html updater)
>                 id: divid;
>                 triggerForm: formid;
>                 callback: [:r | r span: self account name])
> (html div)
>   id: divid;
>   with: [].
> 
> Thanks,
> 
> -Boris
> 
> --
> +1.604.689.0322
> DeepCove Labs Ltd.
> 4th floor 595 Howe Street
> Vancouver, Canada V6C 2T5
> http://tinyurl.com/r7uw4
> 
> boris at deepcovelabs.com
> 
> CONFIDENTIALITY NOTICE
> 
> This email is intended only for the persons named in the message
> header. Unless otherwise indicated, it contains information that is
> private and confidential. If you have received it in error, please
> notify the sender and delete the entire message including any
> attachments.
> 
> Thank you.



More information about the seaside mailing list