Hello mosi,
On May 22, 1:21 am, mosi <[email protected]> wrote:
> This is what I tried:
> from us-states.lisp I used the following:
> (make-instance 'us-state-presentation )
> #<US-STATE-PRESENTATION {ADDB629}>
>
> and then in a running application:
> (defun make-main-page ()
> (make-instance 'us-state-presentation))
>
> with a result:
> There is no applicable method for the generic function #<STANDARD-
> GENERIC-FUNCTION WEBLOCKS:DOM-CLASSES (4)>when called with arguments
> (#<WEBLOCKS:US-STATE-PRESENTATION {D065001}>).
You are trying to use a presentation in widget context.
Try something like this (untested):
(defview demo-view (:type form :persistp nil)
(demo-field :present-as us-state))
(defun init-user-session (rootcomp)
(setf (composite-widgets rootcomp)
(list (make-instance 'dataform :data (class-from-view 'demo-
view)))))
Let me know if you can get that running, otherwise I'll provide a
tested
example for you.
Leslie
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---