I found that Dojo has the most awesome and unappreciated feature - Declarative widget instantiations/layouts. This is the type of instantiation where you create the widget with raw html, and don't need any javascript (simply by specifying the dojoType attribute). (I discovered this by following this awesome (although horribly css'ed) tutorial on Dojo http://www.taubler.com/articles/article_Create_a_Custom_Javascript_AJAX_Widget_with_Dojo?id=5
But the question is, how do I retrieve these widgets after they are instantiated in the web page?