Writing my first weblocks app and I've hitting a wall at the moment.
I'm attempting to render a recursive widget that represents a
directory. Goal is to have typical tree view - probably the exact
same thing as this user wanted:
http://groups.google.com/group/weblocks/browse_thread/thread/dcdb8482509348ab/0411b3e48cb17ad5?lnk=gst&q=tree#0411b3e48cb17ad5
Anyhow, I have the top widget working. It defaults to rendering
"collapsed" and when you click its name it attempts to render it
children, but it does so by using a different view:
Here's the pastebin all pretty and colored:
http://paste.lisp.org/display/89899#1
.
I left out a lot of code, only pasting what I considered to be
relevant, hopefully this wasn't a misguided decision. In any case I
believe the problem to be calling:
(mapcar #'render-widget (children widget)
from within
render-view-field-value
as the error I get is:
There is no applicable method for the generic function #<STANDARD-
GENERIC-FUNCTION WEBLOCKS:DOM-CLASSES (4)> when called with arguments
(#<AW::DIR-TREE-WIDGET {100501D971}>).
I believe I read that this is the error one gets when using a widget
in a view context? So my question, then, is if I can't do the
recursion in the view, I'm not quite sure how to accomplish it in the
widget... so what do I do?