[Dojo-interest] dojoAttachPoint and "FATAL: bad srcObj for srcFunc"
Michael Nachbaur
mike at nachbaur.com
Thu Feb 8 13:25:28 MST 2007
I've created a series of custom Dojo widgets (still using dojo 0.3)
and while they work fine, they don't seem to be destroying themselves
cleanly. I've started loading my application interface in a
ContentPane, and just reload this when different resources are being
opened for editing. In the process, my custom widgets are being re-
created when a new URL is loaded in the ContentPane. When this
happens, I get the following:
FATAL: bad srcObj for srcFunc: onclick
And consequently two <input type="button"/> elements aren't having
their onclick bindings added properly. For instance, here's a sample
from my widget template:
<input dojoAttachPoint="createNewButton" dojoAttachEvent="onclick:
showCreateDialog" type="button" class="inputbutton" value="Create A
New Param Group"/>
This and another button work the first time my interface is loaded,
but on subsequent loads (e.g. when other resources are loaded in the
ContentPane) those two buttons click operations don't work. All
other events work just fine.
Does anyone have any idea what might be going wrong?
--
Michael Nachbaur :: mike at nachbaur.com
http://nachbaur.com/
More information about the Dojo-interest
mailing list