I try to do my HelloWorld application to learn Weblocks.
I've define a CLOS class, a simple View for it and redefing 'init-user-
session':
(defclass project ()
((weblocks:id)
(name :accessor name
:initarg :name
:initform nil)
(start-date :accessor start-date
:initarg :start-date
:initform nil)))
(defview project-view ()
name
start-date
)
(defun init-user-session (comp)
(let ((project-test (make-instance 'project
:name "projecttest"
:start-date "12/02/2007"
:end-date "15/02/2007")))
(setf (weblocks:composite-widgets comp)
(weblocks:render-object-view project-test 'project-view))))
After starting the application and I get in the browser:
The variable WEBLOCKS::*PAGE-DEPENDENCIES* is unbound
After a (setf WEBLOCKS::*PAGE-DEPENDENCIES* nil) I don't get error
anymore;
But nothing is displayed !
If I modify 'init-user-session' to render a simple string (as in the
tutorial), it works.
What I have missing ? How to render a View ?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---