[tbnl-devel] Re: Suggestion for a possible TBNL improvement

Massimiliano Campagnoli maxi at paoloastori.com
Fri Aug 20 09:45:54 UTC 2004


Well, suppose you have a purchase order entry form where you have to 
add/delete/save different line items.
Tipically you'll have an ADD/DELETE/SAVE submit buttons with the same 
name (e.g. FORM-BUTTON) but with three different values (e.g. ADD, 
DELETE, SAVE) to be handled by three different LISP functions.

Something like :

(create-input-form-dispatcher FORM-BUTTON ADD ADD-ITEM-HANDLER)
(create-input-form-dispatcher FORM-BUTTON DELETE DELETE-ITEM-HANDLER)
(create-input-form-dispatcher FORM-BUTTON SAVE SAVE-ITEM-HANDLER)

would return three dispatchers for these three events.

-- 
ING. MASSIMILIANO CAMPAGNOLI

PAOLO ASTORI SRL
VIA MIRABELLA, 9
28013 - GATTICO 
ITALY






More information about the Tbnl-devel mailing list