职业IT人-IT人生活圈

 找回密码
 成为会员
搜索
查看: 2632|回复: 10

flexigrid、sigmagrid、datatables使用

  [复制链接]
江南枫 发表于 2011-9-10 09:49 | 显示全部楼层 |阅读模式
  
最近把datatables熟悉了下,做了个小的demo,后来想下,以后要是用到类似的grid的时候,为什么不做个集合呢,so就有这个东西了。

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

引入的js插件有:


lhgdialog 弹出窗口组件
日期插件
jQuery formValidator

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

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


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

48c43feb-ab28-3409-9f34-bb9f825607d3.jpg


cc07b447-fb82-3270-b6cb-828de229455a.jpg


816b1c63-8599-3c90-a0dc-de3a3e82d76c.jpg


f675e944-3d4f-3075-8af0-3ebfd72d22b5.jpg


49aee8a0-78fd-343c-8763-53af09239eb5.jpg

找不到我 发表于 2011-9-10 09:49 | 显示全部楼层
沙发~~~看起来很不错!!加油↖(^ω^)↗

jinchang 发表于 2011-9-10 09:49 | 显示全部楼层
lhgdialog  google报毒!

钰云 发表于 2011-9-10 09:49 | 显示全部楼层
有没有树形结构的列表介绍呀?不是菜单

只学java 发表于 2011-9-10 09:50 | 显示全部楼层
lz,我把项目以maven方式部署后报如下错误:ERROR] Failed to execute goal on project mygrids: Missing:
----------
1) com.oraclejdbc14: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= -DrepositoryId=[id]

  Path to dependency:
  1) com.matychen:mygrids:pom:pom:1.0.0
  2) com.oraclejdbc14: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= -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
请帮忙解决下

月上萧萧 发表于 2011-9-10 09:50 | 显示全部楼层
wzhw2008 写道
lz,我把项目以maven方式部署后报如下错误:ERROR] Failed to execute goal on project mygrids: Missing:
----------
1) com.oraclejdbc14: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= -DrepositoryId=[id]

  Path to dependency:
  1) com.matychen:mygrids:pom:pom:1.0.0
  2) com.oraclejdbc14: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= -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行注释掉

ksdal 发表于 2011-9-10 09:50 | 显示全部楼层
wzhw2008 写道
lz,我把项目以maven方式部署后报如下错误:ERROR] Failed to execute goal on project mygrids: Missing:
----------
1) com.oraclejdbc14: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= -DrepositoryId=[id]

  Path to dependency:
  1) com.matychen:mygrids:pom:pom:1.0.0
  2) com.oraclejdbc14: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= -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里面没有的依赖。

话说我当年 发表于 2011-9-10 09:50 | 显示全部楼层
maven不熟悉,打包不成功,唉

叫我小乖 发表于 2011-9-10 09:50 | 显示全部楼层
liuyes 写道
maven不熟悉,打包不成功,唉

可以下载我上面上传的jar包。

会玩就好 发表于 2011-9-10 09:50 | 显示全部楼层
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)}
陈华 发表于 2012-4-16 14:22 | 显示全部楼层
怎么能下载你的demo
您需要登录后才可以回帖 登录 | 成为会员

本版积分规则

QQ|手机版|小黑屋|网站帮助|职业IT人-IT人生活圈 ( 粤ICP备12053935号-1 )|网站地图
本站文章版权归原发布者及原出处所有。内容为作者个人观点,并不代表本站赞同其观点和对其真实性负责,本站只提供参考并不构成任何投资及应用建议。本站是信息平台,网站上部分文章为转载,并不用于任何商业目的,我们已经尽可能的对作者和来源进行了通告,但是能力有限或疏忽造成漏登,请及时联系我们,我们将根据著作权人的要求立即更正或者删除有关内容。

GMT+8, 2024-5-3 07:17 , Processed in 0.149541 second(s), 27 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表