奇怪dijit.layout.ContentPane渲染失败

下面这段代码用Href的方式置入ContentPane,
<!-- // TOOLBAR START-->
<span dojoType="dijit.Toolbar" isContainer="true"><input type="button" dojoType="dijit.form.Button" tabIndex="-1" disabled="false" intermediateChanges="false" label="Button 1" iconClass="dijitNoIcon"></input> <input type="button" dojoType="dijit.form.Button" tabIndex="-1" disabled="false" intermediateChanges="false" label="Button 2" iconClass="dijitNoIcon"></input> <input type="button" dojoType="dijit.form.Button" tabIndex="-1" disabled="false" intermediateChanges="false" label="Button 3" iconClass="dijitNoIcon"></input> </span>
<!-- //TOOLBAR END -->
<!-- //TREE START -->
<span dojoType="dojo.data.ItemFileReadStore" id="ItemFileReadStore_1" jsId="ItemFileReadStore_1" data="{&quot;identifier&quot;:&quot;id&quot;,&quot;label&quot;:&quot;label&quot;,&quot;items&quot;:[{&quot;label&quot;:[&quot;1&quot;],&quot;id&quot;:[829803100089],&quot;children&quot;:[{&quot;label&quot;:[&quot;1.1&quot;],&quot;id&quot;:[587580285734]},{&quot;label&quot;:[&quot;1.2&quot;],&quot;id&quot;:[262049478246]}]},{&quot;label&quot;:[&quot;2&quot;],&quot;id&quot;:[946762135951],&quot;children&quot;:[{&quot;label&quot;:[&quot;2.1&quot;],&quot;id&quot;:[879284819821]},{&quot;label&quot;:[&quot;2.2&quot;],&quot;id&quot;:[459653615253]},{&quot;label&quot;:[&quot;2.3&quot;],&quot;id&quot;:[936368192779]}]}]}"></span>
<span dojoType="dijit.tree.ForestStoreModel" id="ForestStoreModel_1" rootLabel="Root" jsId="ForestStoreModel_1" store="ItemFileReadStore_1"></span>
<span dojoType="dijit.Tree" style="width: 264px; height: 250px; overflow: auto;" showRoot="false" autoExpand="true" model="ForestStoreModel_1" onclick="showItem(this)">
</span>
<!-- //TREE END -->
<!-- //FROM START -->
<div dojoType="dijit.form.Form" encType="multipart/form-data" style="left: 0em; position: relative; display: block; top: 0px; float: right; width: 259px; height: 332px;">
	<table style="width: 240px; height: 63px;">
		<tbody>
			<tr>
				<td><label> ID</label></td>
				<td><label> ID</label></td>
			</tr>
			<tr>
				<td><label> 名称</label></td>
				<td><input type="text" dojoType="dijit.form.ValidationTextBox"></input></td>
			</tr>
			<tr>
				<td style="width: 57px; height: 28px;"><label> 是否有效</label></td>
				<td><input type="checkbox" dojoType="dijit.form.CheckBox" title="是否有效" disabled="false" readOnly="false" intermediateChanges="false" iconClass="dijitNoIcon" checked="false"></input></td>
			</tr>
			<tr>
				<td><label> 父类</label></td>
				<td><select dojoType="dijit.form.ComboBox" value="Item 1" disabled="false" readOnly="false" intermediateChanges="false" trim="false" uppercase="false" lowercase="false" propercase="false" required="false" invalidMessage="输入的值无效。">
						<option dvwidget="html.option" value="Item 1" selected="true">Item 1</option>
						<option dvwidget="html.option" value="Item 2" selected="false">Item 2</option>
						<option dvwidget="html.option" value="Item 3" selected="false">Item 3</option>
				</select></td>
			</tr>
			<tr>
			</tr>
			<tr>
				<td colspan="2"><input type="button" dojoType="dijit.form.Button" disabled="false" intermediateChanges="false" label="修改" iconClass="dijitNoIcon"></input> <input type="button" dojoType="dijit.form.Button" disabled="false" intermediateChanges="false" label="新增" iconClass="dijitNoIcon"></input> <input type="button" dojoType="dijit.form.Button" disabled="false" intermediateChanges="false" label="删除" iconClass="dijitNoIcon"></input></td>
			</tr>
		</tbody>
	</table>
</div>
<!-- //FROM END -->

渲染的为图1。 1.dijit.Toolbar,dijit.form.Button 2.dijit.Tree渲染正常, 3.但是里面有一个
dijit.form.Form和里面的Button.Combox,checkBox却渲染失败,不知道为何
异常信息图片如下:


转载于:https://my.oschina.net/sjbwylbs/blog/32673

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值