dellsoft
dellsoft · 共 62 篇文章
[置顶] grails 1.1 Gorm 部分新特性提前知道
说明:grails 1.1部分新特性,我只是看 grails 的fisheye 代码链接到的jira 看到的 具:nabble forum 消息:grails 1.1beta1 将会在 11月下旬发布,beta2版本计划 12月底,rc正式版本要到 2009-1月份 1)支持 hibernate 的dynaimc-update 就是只对修改过的数据进行更新,通过下面方法 static mapping = { dynamicUpdate true dynamicInsert true } 2)对集合的支持 http://jira.codehaus.org/browse/GRAILS-1023 …
2008-10-30 17:21 · grails · 评论(2)
1.4M
1.4 版本后,如果用代理上网,需要设置代理,才能让grails 和 插件库进行通信 grails add-proxy client --host= "" --port ="809" --user ="" --password ="" grails set-proxy client
2011-06-23 20:44 · grails · 评论(0)
groovy Ip地址表达式
// IP Address Regex http://www.regular-expressions.info/examples.html currentIp = ("http://whatsmyip.us/".toURL().text =~ /\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b/)[0] println currentIp def ipLog = new File("ip-log.txt") recentIp = ipLog.readLines().last().tokenize(",").last().trim() if (currentIp !…
2011-04-28 18:55 · grails · 评论(0)
change the default locale
beans = { 4.localeResolver(org.springframework.web.servlet.i18n.SessionLocaleResolver) { 5.defaultLocale = Locale.SIMPLIFIED_CHINESE 6.java.util.Locale.setDefault(defaultLocale) 7.} 8.}
2011-04-13 19:37 · grails · 评论(0)
enterprise manage consle
enterprise manage consle 对应的程序是 oemapp.bat
2010-08-11 19:26 · oracle · 评论(0)
groovy
def urls = ["ip1","ip2"] userid = "user" password = "password" sfile = "c:/a.txt" ant = new AntBuilder() urls.each { url -> ant.scp(file: "${sfile}", todir: "${userid}@${url}:/appbak/", password: "${password}", trust:"true") }
2010-08-09 14:40 · grails · 评论(1)
Jgraph
Jgraph 遵循 MVC 分 GraphModel CellView CellHandle BasicMarqueeHandler 是对 Jgraph 进行控制的 基本上每一个View 中都有 handle 可以参考 EdgeView edge -- 边 vertex -- 节点 port -- 在边的方向 通过 DefaultCellViewFactory 来设置对应不同的 CellView 对应的 CellHandle 控制是否可以接收在边上增加点 isAddPointEvent 参考 GraphEd.java 中的 MyEdgeHandle Jgraphpad.java 1)入口 2…
2010-07-28 22:01 · swing · 评论(0)
message
原文 http://blog.sina.com.cn/s/blog_4ee1cd4201000axh.html 组装错误消息 DATA WA_BDCRETURN2 LIKE TABLE OF BDCMSGCOLL WITH HEADER LINE. CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING MSGID = WA_BDCRETURN2-MSGID MSGNR = WA_BDCRETURN2-MSGNR MSGV1 = WA_BDCRETURN2-MSGV1 MSGV2 = WA_BDCRETURN2-MSGV2 MSGV3 = WA_BDCRET…
2010-06-23 17:20 · sap · 评论(0)
Hot-pluggable extensions in Grails – adding and changing your application behavi
http://fbflex.wordpress.com/2010/03/14/hot-pluggable-extensions-in-grails-adding-and-changing-your-application-behaviour-on-the-fly/ Hot-pluggable extensions in Grails – adding and changing your application behaviour on the fly leave a comment » One of the biggest challenges in developing web appli…
2010-03-15 19:20 · 评论(0)
grails + jquery grid plugin
Jquery Grid Json 格式方法 http://trirand.com/blog/jqgrid/jqgrid.html def listJson = { def nparams = [:] if (params) { nparams['sort'] = params.sidx nparams['order'] = params.sord } def msztzd = Msztzd.list(nparams) def idCell = [] def rowsR = msztzd.collect { dit -> [id: dit.fbh,cell:[dit.fbh,dit.fmc,d…
2010-03-14 09:52 · grails · 评论(0)
grails +zkoss 开发总结
zk component develop 一、)java 类及方法 1)先开发一个服务器端的组件,通常是继承 abstractComponent ,如果是html 类型的组件,继承HtmlBaseComponent 就可以了。 2)如果需要一个widget需要通知服务器端组件,需要在服务器端的component上注册Client Event http://docs.zkoss.org/wiki/Synchronize_States addClientEvent(Button.class, Events.ON_FOCUS, 0); 3)在服务器端component 上调用客户端widget事件…
2010-03-14 09:42 · grails · 评论(0)
grails 开发总结
在使用grails 开发的过程,一些总结,随笔 1)grails 连接sybase数据乱码解决办法 url = "jdbc:sybase:Tds:URL:5000/jxcbase?CHARSET_CONVERTER_CLASS=com.sybase.jdbc2.utils.Cp850PureConverter" 2)自定义Sql查询 Domain.executeQuery("select user from Buser user where user.name =?",["a"],[max:20,offset:20]) 3)统计数据量 Domain.count() Domain.countB…
2010-03-14 09:40 · grails · 评论(0)
grails transaction
http://sacharya.com/transactions-in-grails/ Transaction & Batch-processing in Grails February 1, 2009 Transaction handling is one of the more complex areas of web development. Anytime a user takes any action in the interface which demands a couple of database actions in the backend, then usually yo…
2010-03-14 09:35 · 评论(0)
grails +zkoss
基于grails+zkoss应用 1)登录窗口 2)主窗口 3)已卡片浏览 4)toolbar和右键一致
2010-01-09 16:58 · grails · 评论(4)