论坛首页 Web前端技术论坛

flexigrid、sigmagrid、datatables使用

浏览 14548 次
精华帖 (5) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2011-08-16   最后修改:2011-08-23

 

最近把datatables熟悉了下,做了个小的demo,后来想下,以后要是用到类似的grid的时候,为什么不做个集合呢,so就有这个东西了。

 

项目采用的是spring3mvc+mybatis,应该还比较好用。

 

引入的js插件有:

 

 

 

数据库脚本在webapp/readme/下面

 

在一次加载2900条数据的情况下,sigmagrid和datatables相差不大,flexigrid就直接卡了半天。不过在小数据的时候,几个grid相差不大,

 

 

  1. datatables的ajax请求的格式被我改过了,我还是喜欢sigmagrid传到后台的格式,后台可以使用jackson直接转为Java对象。
  2. flexgrid自己改了个支持jquery的主题,改的不是很完美,不需要的,可以不用。
  3. sigmagrid准备改主题的,但是发现好像比较难啊。。后来就放弃了。
  4. 后期准备加入个jqgrid。
下面是几个效果图片


 


 


 


 


 

  • lib.7z (7.7 MB)
  • 描述: 有些同学难得去找jar包,这里上传了,jdbc驱动就自己加进去吧。
  • 下载次数: 912
  • mygrids.7z (806.9 KB)
  • 描述: maven构建的,jar包自己找
  • 下载次数: 1097
  • 大小: 127 KB
  • 大小: 112.6 KB
  • 大小: 111.1 KB
  • 大小: 102.5 KB
  • 大小: 160.7 KB
   发表时间:2011-08-16  
沙发~~~看起来很不错!!加油↖(^ω^)↗
0 请登录后投票
   发表时间:2011-08-16  
lhgdialog  google报毒!
0 请登录后投票
   发表时间:2011-08-21  
有没有树形结构的列表介绍呀?不是菜单
0 请登录后投票
   发表时间:2011-08-22  
lz,我把项目以maven方式部署后报如下错误:ERROR] Failed to execute goal on project mygrids: Missing:
----------
1) com.oracle:ojdbc14:jar:10.2.0.4.0

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.4.0 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.4.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
  1) com.matychen:mygrids:pom:pom:1.0.0
  2) com.oracle:ojdbc14:jar:10.2.0.4.0

2) com.ibatis:ibatis:jar:2.3.4.726

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=com.ibatis -DartifactId=ibatis -Dversion=2.3.4.726 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=com.ibatis -DartifactId=ibatis -Dversion=2.3.4.726 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
  1) com.matychen:mygrids:pom:pom:1.0.0
  2) com.ibatis:ibatis:jar:2.3.4.726

----------
2 required artifacts are missing.

for artifact:
  com.matychen:mygrids:pom:1.0.0
请帮忙解决下
0 请登录后投票
   发表时间:2011-08-22  
wzhw2008 写道
lz,我把项目以maven方式部署后报如下错误:ERROR] Failed to execute goal on project mygrids: Missing:
----------
1) com.oracle:ojdbc14:jar:10.2.0.4.0

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.4.0 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.4.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
  1) com.matychen:mygrids:pom:pom:1.0.0
  2) com.oracle:ojdbc14:jar:10.2.0.4.0

2) com.ibatis:ibatis:jar:2.3.4.726

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=com.ibatis -DartifactId=ibatis -Dversion=2.3.4.726 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=com.ibatis -DartifactId=ibatis -Dversion=2.3.4.726 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
  1) com.matychen:mygrids:pom:pom:1.0.0
  2) com.ibatis:ibatis:jar:2.3.4.726

----------
2 required artifacts are missing.

for artifact:
  com.matychen:mygrids:pom:1.0.0
请帮忙解决下

pom.xml 190到196行、205到211行注释掉
0 请登录后投票
   发表时间:2011-08-22  
wzhw2008 写道
lz,我把项目以maven方式部署后报如下错误:ERROR] Failed to execute goal on project mygrids: Missing:
----------
1) com.oracle:ojdbc14:jar:10.2.0.4.0

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.4.0 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.4.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
  1) com.matychen:mygrids:pom:pom:1.0.0
  2) com.oracle:ojdbc14:jar:10.2.0.4.0

2) com.ibatis:ibatis:jar:2.3.4.726

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=com.ibatis -DartifactId=ibatis -Dversion=2.3.4.726 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=com.ibatis -DartifactId=ibatis -Dversion=2.3.4.726 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
  1) com.matychen:mygrids:pom:pom:1.0.0
  2) com.ibatis:ibatis:jar:2.3.4.726

----------
2 required artifacts are missing.

for artifact:
  com.matychen:mygrids:pom:1.0.0
请帮忙解决下



可以去掉ojdbc和ibatis的依赖,因为项目里面没有用到,
不过我建议,你还是学习下怎么自己手动添加一些maven里面没有的依赖。
0 请登录后投票
   发表时间:2011-08-23  
maven不熟悉,打包不成功,唉
0 请登录后投票
   发表时间:2011-08-27  
liuyes 写道
maven不熟悉,打包不成功,唉

可以下载我上面上传的jar包。
0 请登录后投票
   发表时间:2011-09-01  
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'ajaxServiceImpl': Injection of autowired dependencies failed; nested exc
eption is org.springframework.beans.factory.BeanCreationException: Could not aut
owire field: private com.matychen.grids.dao.AjaxMapper com.matychen.grids.servic
e.impl.AjaxServiceImpl.ajaxMapper; nested exception is org.springframework.beans
.factory.NoSuchBeanDefinitionException: No matching bean of type [com.matychen.g
rids.dao.AjaxMapper] found for dependency: expected at least 1 bean which qualif
ies as autowire candidate for this dependency. Dependency annotations: {@org.spr
ingframework.beans.factory.annotation.Autowired(required=true)}
0 请登录后投票
论坛首页 Web前端技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics