[Bese-devel] Re: <ucw: input elements and javascript

Attila Lendvai attila.lendvai at gmail.com
Fri Jun 16 10:06:41 UTC 2006


> > This is true; I recently was puzzled by this, and ended up "working
> > around" by clearing out the value while rendering the page each time.
>
> this is what the checkbox elements do in form.lisp, works, but it sure
> ain't pretty. is there, other than this, a good reason to have
> callbacks which are called even when the corresponding reuest
> parameter isn't provided (this is a fairly easy change t omake but
> will cause problems in the code which assumes the current behaviour).

submit callbacks in the ajax branch could be used for this. callbacks
even have priorities and dependencies among each other now.

for each cb you could register a submit callback, with an appropiate
priority to run before normal callbacks, to clear the value. it could
even check for the cb name in the request params and only clear the
value when the cb name is not found, and then it really doesn't do
unnecessary value changes (if that is an issue at all).

submit callbacks are arg-less lambdas rendered as hidden input fields.

- attila

(alias 101 on irc &no 'its not lisp code :)



More information about the bese-devel mailing list