[kpax-devel] rendering of text-area

Sven Van Caekenberghe scaekenberghe at common-lisp.net
Mon Jun 19 12:57:58 UTC 2006


On 19 Jun 2006, at 11:13, Friedrich Dominicus wrote:

> (defwebform products-form
>    ((tag :text :label "Tag"
>          :options (:size 20))
>
>     (description :text-area :label "Description" :cols 30 :rows 20)
>     (price :text :label "Price")
>     (id :hidden)
>     (vat :text :label "VAT"))
>
>    (:submit "save-product"))

The correct syntax is :options <list> like this:

(defwebform products-form
    ((tag :text :label "Tag"
          :options (:size 20))

     (description :text-area :label "Description" :options (:cols  
30 :rows 20))
     (price :text :label "Price" :options (:size 99))
     (id :hidden)
     (vat :text :label "VAT"))

    (:submit "save-product"))

I haven't actually tested this, only inspected the webform definition  
object - and it seemed OK.
Let me known if it works.

Sven

PS:

Again, the web forms facility is pretty powerful, but also quite  
complex and underdocumented....
Inspect *last-request-response* after submitting.



More information about the kpax-devel mailing list