I have a generic widget for displaying sorted lists that is
parameterized with the name of the widget to be used for displaying and
editing individual list items. I now have a case where this item widget
needs additional information that is not passed through by the list
widget. Specifically, the item widget needs to access a data store for
auto-completion.
My current workaround is to use a global variable, but that's just bad.
I've thought of passing a "spiced" (curried with the store) item widget
constructor to the list widget, however, I don't see how to do this in
markup.
Michael
P.S. For a description of the aspect-oriented wormhole pattern see
http://www.theserverside.com/tt/articles/content/AspectOrientedRefactoringPart2/article.html--
Michael Schuerig
mailto:
michael@...
http://www.schuerig.de/michael/_______________________________________________
FAQ:
http://dojotoolkit.org/support/faqBook:
http://dojotoolkit.org/docs/bookForums:
http://dojotoolkit.org/forumDojo-interest@...
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest