[Bese-devel] Usage of <ucw:select?

Marco Baringer mb at bese.it
Sun Jul 17 19:12:42 UTC 2005


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

> Well that's the point. What can be fed to that tag and how it is
> supposed to be used?

like this:

(<ucw:select :accessor (my-accessor)
  (<ucw:option :value :value1 "the first value")
  (<ucw:option :value :value2 "the second value")
  (dolist (v other-values)
    (<ucw:option :value v (<:as-html v))))

where V can be any lisp object, the select and options tags work
together to generate a hash table containing the keys whcih are used
to map between the server side objects and the strings which are sent
back and forth between the client.

does this answer your question?

-- 
-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