A brief overview of the Dijit lifecycle and how you might build a custom widget for the ArcGIS API for JavaScript.
You can read more about developing for the ArcGIS API for JavaScript at http://manning.com/rubalcava/.
For more geodev tips and tricks you can read my blog.
http://odoe.net/blog/