Design change: transformer of non-multi input-fields get two

arguments: the input-field *and* the binding value (not only the
binding value)

Rational: (a) transformers of non-multi input-fields can now access the
attribute field of the input-field record, (b) there is no real reason
why to treat multi and non-multi input-fields differently in respect
to their transformer arguments (keep design simple).

Updates of current surflets only necessary if they create their own
non-multi input-fields (with make-input-field).  Example surlfets
calculate.scm and calculate-cb.scm updated as well as standard HTML
input-fields provided by the SUrflets.
This commit is contained in:
interp
2004-07-21 20:09:37 +00:00
parent 299a4ef815
commit 15f07f8d4a
4 changed files with 16 additions and 13 deletions
+1 -1
View File
@@ -22,7 +22,7 @@
(let ((name (generate-input-field-name "operator")))
(make-input-field
name
(lambda (operator-string)
(lambda (input-field operator-string)
(cond
((assoc operator-string *operator-alist*) =>
(lambda (a) a))
+1 -1
View File
@@ -22,7 +22,7 @@
(let ((name (generate-input-field-name "operator")))
(make-input-field
name "operator"
(lambda (operator-string)
(lambda (input-field operator-string)
(let ((operator (assoc operator-string *operator-alist*)))
(if operator
operator