This works, but I would recommend discontinuing usage of ids completely and simply instantiating dojo widgets and establishing the heirarchy with Dojo API calls.

But probably not worth the effort right now, given that we may soon get rid of dojo entirely.