After I loaded weblocks, I just typed in whatever was on the Manual.
CL-USER> (weblocks:start-weblocks :debug t :port 5000)
#<HUNCHENTOOT::SERVER {10032CFC51}>
NIL
CL-USER> (weblocks:defwebapp 'our-application)
; Evaluation aborted.
CL-USER> (weblocks:defwebapp our-application :prefix "/")
#<WEBLOCKS:WEBAPP-CLASS OUR-APPLICATION>
CL-USER> (defun init-user-session (comp)
(setf (weblocks:composite-widgets comp)
(list "Hello!")))
INIT-USER-SESSION
CL-USER> (weblocks:reset-sessions)
; No value
CL-USER>
However, localhost:5000 still gives me the default page.
After being frustrated for a big I realized init-user-session should
be re-defined in the weblocks package, so
(in-package weblocks) should be done before all of above, or use
(defun weblocks::init-user-session ...)
Also, the demos didn't work for me until I added :prefix "/" in the
(defwebapp weblocks-demo ...) Even then, the demo is not Ajax driven.
I don't understand why, can someone explain? Or maybe that's how it is?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---