On Mar 4, 6:53 pm, Robin Lee Powell <[email protected]>
wrote:
> On Wed, Mar 04, 2009 at 04:36:24PM -0800, Benjamin Collins wrote:
> That's a fairly standard problem. When I encountered it, it was
> because I used a do-* call outside of an action. In
> fact,http://teddyb.org/rlp/tiki-index.php?page=Learning+About+Weblocks#Wra...
> is all about that issue; let me know if that doesn't help so I can
> try to make it better.
>
right - and I found your tutorial useful, but what I'm currently doing
looks identical (functionally) to it. Here:
(defun make-main-page ()
(hunchentoot:log-message :debug "creating main page")
(let ((blog (make-blog-widget)))
(make-navigation 'navigation
(list nil blog)
(list 'main blog)
(list 'admin (make-instance 'login-maybe
:on-login #'check-login
:on-success #'login-success
:child-widget
(make-admin-page))))))
(defun make-admin-page ()
(make-instance 'widget
:children
(list (make-users-gridedit)
(lambda ()
;; gridedit widgets were probably not intended to be
put 2
;; on the same page, so I add an HR tag between the two
(with-html (:div (:hr :style "margin: 2em;"))))
(make-posts-gridedit))))
And yet I still end up with the login-widget being re-rendered upon
completion of the ajax request.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---