[Bese-devel] unclear usage again

Marco Baringer mb at bese.it
Sat Aug 27 10:40:27 UTC 2005


Friedrich Dominicus <frido at q-software-solutions.de> writes:

> So I'd like to know how lisp-value and client-value play together and
> what purpose they have. 

for a text input the relation between the two is trivial (they're both
strings). for a number input the relation is a bit more interesting so
i'll use that.

the first thing to realize is that the client-value will _always_ be a
string, while the lisp-value may be a string or any lisp object (like
a number). when we call the submit action on a form element it calls
the read-client-value method which converts (and validates) the string
the client sent into a lisp object and fills the lisp-value slot
appropiatly.

in code terms:

(when (validate-client-value form-element)
  (setf (lisp-value form-element) 
        (read-client-value form-element)))

-- 
-Marco
Ring the bells that still can ring.
Forget the perfect offering.
There is a crack in everything.
That's how the light gets in.
	-Leonard Cohen



More information about the bese-devel mailing list