Is there something like dojoAttachPoint, but for getting widgets so that I don't need to use widgetId?
e.g.,
<div dojoType="ContentPane" dojoAttachPoint="infobox"&ht;</div>
I know it returns a reference to the node, but I want to get the widget object. I know I can do a lookup with "dojo.widget.filter...." but that is too circuitous.

div dojoType="ContentPane"
div dojoType="ContentPane" widgetId="infoBox"
then, you can get the widget by dojo.widget.byId('infoBox'). Hope it help
Not really... unless you
Not really... unless you want to do dojo.widget.byType("ContentPane"); and then loop through the array it returns to find the ONE you want... but why would you want to make things more difficult?
If you are doing widgetsInTemplate you can assign an attachpoint to a sub widget... and if you use dojo.widget.createWidget() you can assign it to a variable....
-Karl
I apologize for the
I apologize for the confusion, but I didn't realize that dojoAttachPoint does return the actual widget when it is attached to a widget. All is well! i.e.,