Hi Leslie, thank you for a quick reply. I tried this at home, with a fresh web app, replacing the generated init-user-session in my-app/src/my-app.lisp with the proposed one.
hunchentoot states: The variable WEBLOCKS:VIEW is unbound. Hunchentoot 1.0.0 (SBCL 1.0.26.1) at localhost:8080 Thank you very much. mosi On May 22, 10:30 am, "Leslie P. Polzer" <[email protected]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---
