[Dojo-interest] newbie questions
prasanth nair
prasanthn.nair at gmail.com
Tue Jan 9 15:26:59 MST 2007
Hi All,
I was trying the helloworld sample
http://dojo.jot.com/WikiHome/HelloWorld(trying to integrate to my
spring mvc application). I'm not getting the
alert popped up :( when I printed the debug I saw this message
DEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not
locate widget implementation for "constants" in "projectx.widget" registered
to namespace "projectx". Developers must specify correct namespaces for all
non-Dojo widgets -- will be removed in version: 0.5
DEBUG: dojo.widget.Parse: error: [Error: Could not locate widget
implementation for "constants" in "projectx.widget" registered to namespace
"projectx"]
DEBUG: dojo.widget.Parse: error: [Error: Unable to load
scripts/dojo/src/widget/templates/ButtonTemplate.html status:404]
------------------------------------------------------
* I kept the dojo folder inside a folder called scripts (where am storing
all my JS files)
* I have a taglib called " <projectX:constants scope="request" /> "
Here is my sample dojo script :
<!-- SECTION 1 -->
<script>djConfig = {isDebug: true}</script>
<script type="text/javascript" src="scripts/dojo/dojo.js"></script>
<!-- SECTION 2 -->
<script type="text/javascript">
dojo.require("dojo.event.*");
// Load Dojo's code relating to widget managing functions
dojo.require("dojo.widget.*");
// Load Dojo's code relating to the Button widget
dojo.require("dojo.widget.Button");
function helloPressed() {
alert('You pressed the button');
}
function init() {
var helloButton = dojo.widget.byId('helloButton');
dojo.event.connect(helloButton, 'onClick', 'helloPressed')
}
dojo.addOnLoad(init);
</script>
<button dojoType="Button" widgetId="helloButton">Hello World!</button>
----------------------------------------
Any suggestions as whats going wrong here ?
--
Thank you,
Prasanth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dojotoolkit.org/pipermail/dojo-interest/attachments/20070109/5b922f2e/attachment.html
More information about the Dojo-interest
mailing list