[Bese-devel] a thing I can't believe

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


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

> Amd I now going nuts. How can I prefill text input field in a form?
>
> (defmethod render-on ((res response) (field text-field))
>   (<ucw:input :type "text" :class "ucw-text-field" :accessor (client-value field)
>               :size (size field)))
>
> No way to give an initial value? 

two options:

1) use the :value attribute.

2) since text-field your own component use :initform on the
   client-value slot (or initialize the client-value in a
   shared-initialize method or whatever).

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