>
>
> (defun dropdown-presentation-render-view-field-value-1 ()
>    (render-view-field-value nil
>                 (make-instance 'dropdown-presentation
>                        :choices (list "A" "B"))
>                 (make-instance 'form-view-field
>                    :slot-name 'foo )
>                 (make-instance 'form-view)
>                 nil "A")
>    (:select :name "foo"
>       (:option :value "" "[Select Foo]")
>       (:option :value "A" "Employee")
>       (:option :value "B" "Employee")))
>
>
The above code was a deftest that checked if the first form passed to it
(render-view...) was equal to the second form (:select..)


>
> Can i replace the deftest and deftest-html with defun and use them as
> functions in my code? Please suggest.
>
>
No you can't.

What you need is not the render-* functions, but rather to understand how
defview works.

It is quite simple, you declare a class/struct-like datastructure, write a
view for it, and displaying in forms gets taken care of.

The weblocks examples have a bunch of demos.

-- 
You received this message because you are subscribed to the Google Groups 
"weblocks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/weblocks?hl=en.

Reply via email to