This hasnt showed up yet so I post it a second time. Hope you don't mind.

-----------------------------------------------
Dear Leslie,

I made an observation, two things make it run smooth for me:
Removing the content from main.css (replaced it with own css code) , or hitting the "Add" button of a grid-edit table; when the corresponding form view opens, it suddenly runs smooth too.

however, thanks for your answers.

I already got another question. I tried to make the navigation driven by the URL with a selector as described here
http://teddyb.org/rlp/tiki-index.php?page=Learning+About+Weblocks

  "(make-instance
    'selector
    :panes (list
        (cons "users" (make-users-page))
        (cons "clients" (make-clients-page))))"

So my own code looks like this

"(defun init-user-session (comp)
  (setf (composite-widgets comp)
    (make-main-page)))

(defun make-main-page()
      (make-instance
           'selector
           :panes (list
               (cons "blog" (make-blog-widget))
               (cons "admin" (make-admin-page)))))"

Now if I try to access /blog it tells me:
"SIMPLE-ERROR: There is no applicable method for the generic function #<STANDARD-GENERIC-FUNCTION WEBLOCKS:GET-WIDGET-FOR-TOKENS (2)>  when called with arguments (#<WEBLOCKS:SELECTOR "dom3"> #<WEBLOCKS:URI-TOKENS (admin)>)."


Further, if I try to use a selector instead as described in the same tutorial like this

"(defun make-main-page ()
  (make-instance
  'dispatcher
  :on-dispatch (lambda (widget url-bits)
        (declare (ignore widget))
        (cond
         ((string= (first url-bits) "blog")
            (make-blog-widget))
         ((string= (first url-bits) "admin")
            (make-admin-page))
         ((not url-bits)
            (make-blog-widget))))))"

it will tell me, there were no dispatcher-class.


Thank you in advance.

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