错误: Could not load 'dojox.grid.Grid'; last tried '../dojox/grid/Grid.js'

hxpjava1 2011-04-23 02:08:02
错误: Could not load 'dojox.grid.Grid'; last tried '../dojox/grid/Grid.js'

代码:
<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'grid.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<style type="text/css">
@import "dojoroot/dijit/themes/tundra/tundra.css";
@import "dojoroot/dojo/resource/dojo.css";
@import "dojoroot/dojox/grid/_grid/tundraGrid.css";
</style>
<script type="text/javascript" src="dojoroot/dojo/dojo.js.uncompressed.js" djConfig="parseOnLoad:true"></script>
<script type="text/javascript">
dojo.require("dojo.parser");
dojo.require("dojo.data.ItemFileReadStore");
dojo.require("dojox.grid.Grid");
</script>
<style type="text/css">
#grid{
border:1px solid #333;
width:550px;
margin:10px;
height:200px;
font-size:0.9em;
}
</style>
</head>

<body class="tundra">
<div dojoType="dojo.data.ItemFileReadStore" jsId="wishstore" url="json.json"></div>
<table id="grid" dojoType="dojox.grid.Grid" store="wishstore" query="{wishId:'*'}"
clientSort="true">
<tr>
<th field="description">description</th>
<th field="size">size</th>
<th field="origin">origin</th>
<th field="wrapper">wrapper</th>
<th field="shape">shape</th>

</tr>

</table>

</body>
</html>
...全文
185 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
是的,即使到现在,已经接近2014年了,Dojo目前版本还是很不稳定,更新太快,中文文档太少。在国内使用的人不是太多。我正在学习使用dojo
猿必过 2011-06-18
  • 打赏
  • 举报
回复
根据你的例子来开应该是dojox.grid.DataGrid
你应该是在看精通dojo的书吧,唉,dojo版本不一样很多js名称都变了。
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 ylz2007 的回复:]

isn't that dojox.grid.DataGrid???
[/Quote]

or

dojox.grid._Grid
  • 打赏
  • 举报
回复
isn't that dojox.grid.DataGrid???

81,094

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧