On Thu, Oct 21, 2010 at 17:45, Nandan Bagchee <[email protected]>wrote:

> You need to set the widget-children of root at least. That's how you make
>> your own root/top-level page/widget to display!
>>
>
>
If I write for example function to define initial page, then I get web
backtrace saying "the variable SEM::ROOT is unbound", where the "root" is
the "(defun init-user-session (root) ..." variable.

(defun pocetna-stranica (k)
  "Pocetna stranica koja ce se iscrtavati"
  (setf (weblocks:widget-children root)
(lambda (&rest args)
(with-html
  (:strong "pocetna stranica blabla")
  (answer k)))))

I see here http://paste.lisp.org/display/91068 a bit different approach, and
I'll have to study more to understand the difference.

-- 
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