Hi everyone, I am running into the exact same issue as the OP.
I took some simple component such as a button, and placed it into index.jspx for a Roo-created Spring MVC project.
Now, if I render the page using straight HTML, my component is rendered correctly, using chrome's developer tools, I confirmed that the served HTML looked like:
HTML Code:
<input type="button" dojoType="dijit.form.Button" intermediateChanges="false" label="Button" iconClass="dijitNoIcon"></input>
Whereas, the parsed HTML looked like:
HTML Code:
<span class="dijit dijitReset dijitInline dijitButton" role="presentation" widgetid="dijit_form_Button_0"><span class="dijitReset dijitInline dijitButtonNode" data-dojo-attach-event="ondijitclick:_onClick" role="presentation"><span class="dijitReset dijitStretch dijitButtonContents" data-dojo-attach-point="titleNode,focusNode" role="button" aria-labelledby="dijit_form_Button_0_label" tabindex="0" id="dijit_form_Button_0" style="-webkit-user-select: none; "><span class="dijitReset dijitInline dijitIcon dijitNoIcon" data-dojo-attach-point="iconNode"></span><span class="dijitReset dijitToggleButtonIconChar">●</span><span class="dijitReset dijitInline dijitButtonText" id="dijit_form_Button_0_label" data-dojo-attach-point="containerNode">Button</span></span></span><input type="button" value="" class="dijitOffScreen" tabindex="-1" role="presentation" data-dojo-attach-point="valueNode"></span>
Now, when I place the same button in the jspx. The parsing does not happen, and I see this in both the source and parsed files:
HTML Code:
<input type="button" dojoType="dijit.form.Button" intermediateChanges="false" label="Button" iconClass="dijitNoIcon"></input>
So now, I made sure I had what I thought are the necessary requirements:
HTML Code:
<script type="text/javascript">
dojo.require(["dijit/dijit"]);
dojo.require(["dojo/parser"]);
dojo.require(["dijit/form/Button"]);
</script>
dojo.js is included properly as part of the roo spring-MVC deployment.
Any ideas?