- 博客(62)
- 收藏
- 关注
原创 1.4M
1.4 版本后,如果用代理上网,需要设置代理,才能让grails 和 插件库进行通信 grails add-proxy client --host= "" --port ="809" --user ="" --password ="" grails set-proxy client ...
2011-06-23 20:44:46
220
原创 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 ...
2011-04-28 18:55:42
802
原创 change the default locale
beans = { 4.localeResolver(org.springframework.web.servlet.i18n.SessionLocaleResolver) { 5.defaultLocale = Locale.SIMPLIFIED_CHINESE 6.java.util.Locale.setDefault(defaultLocale) ...
2011-04-13 19:37:00
213
原创 groovy
def urls = ["ip1","ip2"] userid = "user" password = "password" sfile = "c:/a.txt" ant = new AntBuilder() urls.each { url -> ant.scp(file: "${sfile}", todir: "
2010-08-09 14:40:58
109
原创 Jgraph
Jgraph 遵循 MVC 分 GraphModel CellView CellHandle BasicMarqueeHandler 是对 Jgraph 进行控制的 基本上每一个View 中都有 handle 可以参考 EdgeView edge -- 边 vertex -- 节点 port -- 在边的方向 通过 DefaultCellViewFacto...
2010-07-28 22:01:07
176
原创 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' ...
2010-06-23 17:20:48
277
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 yo...
2010-03-15 19:20:00
183
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'] = para...
2010-03-14 09:52:36
186
grails +zkoss 开发总结
zk component develop 一、)java 类及方法 1)先开发一个服务器端的组件,通常是继承 abstractComponent ,如果是html 类型的组件,继承HtmlBaseComponent 就可以了。 2)如果需要一个widget需要通知服务器端组件,需要在服务器端的component上注册Client Event http://docs.zkoss....
2010-03-14 09:42:03
227
grails 开发总结
在使用grails 开发的过程,一些总结,随笔 1)grails 连接sybase数据乱码解决办法 url = "jdbc:sybase:Tds:URL:5000/jxcbase?CHARSET_CONVERTER_CLASS=com.sybase.jdbc2.utils.Cp850PureConverter" 2)自定义Sql查询 Domain.executeQu...
2010-03-14 09:40:43
152
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 use...
2010-03-14 09:35:15
197
原创 sap itab table
http://wiki.sdn.sap.com/wiki/display/stage/Working+with+Internal+tables+.
2009-10-30 11:06:51
194
原创 Configuring NW 7.1 virtual hosts
http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/16354
2009-10-22 21:11:38
148
原创 grails 跟踪 sql
http://www.piragua.com/2009/06/17/grails-p6spy-and-sql-profiler/ 在config文件的logj在那个加入 trace "org.hibernate.SQL", "org.hibernate.type" log4j = { // Example of changing the lo...
2009-05-14 15:53:18
151
grails assgined the id
使用hibernate 的自定义主键 import org.hibernate.SessionFactory class PersonController { SessionFactory sessionFactory def index = { redirect(action:list,params:params) } // the del...
2009-05-09 22:29:33
109
原创 grails 原始sql
import groovy.sql.Sql; class YourController { def dataSource ; ..... def print = { ..... def sql = new Sql(dataSource); List lparams = [startDate, en...
2009-05-09 22:13:01
396
原创 hibernate custom generator
public class CustomIdSequenceGenerator extends org.hibernate.id.SequenceGenerator{ private DecimalFormat format; public void configure(Type type, Properties params, Dialect dialect) { ...
2009-05-09 20:54:00
121
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 ma...
2008-10-30 17:21:48
119
grailsflow
grailsflow 具体地址 http://my.jcatalog.com/grailsflow/login 下面说说,grailsflow的流程处理.本人对工作流不熟悉,加之grailsflow文档有限。 只是粗略的看了下 grailsflow 的代码,如发现有错误,请指正留言。 grailsflow 分以下几个方面 1)流程定义 --就是定义流程要走那些步骤 2)流程处理 -...
2008-10-30 16:43:36
144
原创 extjs StatusBar 所在panel 在 south
在把StatusBar放到一个Panel上时,如果这个panel在ViewPort中的South ,需要把 Panel的height 设置成 0 否则在ie7中,会有一个13px的空白。 [code="java"] var statusBar = new Ext.Panel({ // autoHeight: true, [b] height...
2008-07-11 11:37:54
113
grails 根据数据库自动生产 domains
GenerateDataabase.groovy [code="java"] import java.lang.reflect.Method import com.pansoft.extjs.DbunitDatabaseTemplateGenerator import java.sql.Connection import java.sql.DriverManager /* * C...
2008-07-04 17:25:27
220
grails 导出 excel
用 poi 来导出 excel 文件 [code="java"] import org.codehaus.groovy.grails.commons.* import org.apache.poi.hssf.usermodel.HSSFWorkbook import org.apache.poi.hssf.usermodel.HSSFSheet import org.apache.p...
2008-07-04 17:21:36
213
grails war 包定制
在config.groovy 下面配置 grails.war.resources = {stagingDir -> copy(todir: "${stagingDir}/WEB-INF/classes/grails-app/yourDir") { fileset(dir:"grails-app/YourDir") } }
2008-07-04 17:18:04
174
grails datasource 中配置数据源用户名称和密码 加密
在datasource.groovy password = YourClass.decode(加密后的密码) 提前用YourClass.encode(原始密码)获得加密后的密码
2008-07-04 17:16:41
374
grails 自定义 validator
http://www.zorched.net/2008/01/25/build-a-custom-validator-in-grails-with-a-plugin/
2008-07-04 17:05:13
147
grails script 用 gorm 相关特性
原文 http://amorproximi.blogspot.com/2008/07/grails-bootstrapping.html 择录部分, Ant.property(environment: "env") grailsHome = Ant.antProject.properties."env.GRAILS_HOME" includeTargets grails Sc...
2008-07-04 16:55:28
151
grails services transaction
在 graisl 应用中,默认情况下,services 的事务是系统自动控制的,默认下 是true 可以通过以下几种方法改变transaction的状态 1) 通过sessonFactory def session = sessionFactory.getCurrentSession() Transaction tx = session.beginTransaction() ...
2008-07-02 15:26:26
127
jsecurity 资料
今天看到一个好消息就是 jsecuirty,将要变成apache的一个工程了。 这将推动jsecurity的广泛应用,结束目前不温不火的局面。 http://www.jsecurity.org/node/1049
2008-06-18 10:22:05
156
grails ext 模板
最新的extjs 模板出来了,大家可以到 grails 的plugin中下载。 [b]当前版本还没有发布,自己可以svn source 后release-plugin,从本地安装![/b] 根据论坛的反馈,基于extjs的插件可能不至一个,现在的这个是基于extjs 纯javascript的。 grails-ext-ui可能会继续保持独立发展,不过,这个插件的核心开发人员现在好像停止...
2008-04-13 21:46:15
137
create builder with groovy
http://vladimirvivien.com/blogs/ot/2008/02/creating-simple-builder-with-groovys.html
2008-03-08 11:01:45
130
Grails1.1版本规划
原文链接http://docs.codehaus.org/display/GRAILS/Roadmap1.1 发行计划标题特点 1 。 jpa支持2 。 JSP标签库的支持3 。数据库 Migrations(可能基于Liquibase 或者 GSQL DSL) 4 。 portlet的支持 5 。 Java的内容存储(JCR)的支持 6 。安全API 7。邮件支持 8 。Maven2支持9 ...
2008-03-08 09:26:17
138
extjs 未来规划版本
Ext Road Map Our goals for 2008 are to continue improving the 2.x version line by adding new components and enhancing some of the existing areas of functionality in Ext as shown below. Looking ahea...
2008-02-20 16:48:14
138
grails flex 例子
一个结合 flex-plugin 的例子展示 具体操作步骤 1)安装 flex plugin 2)创建一个domian Product 和service [code="java"] class Product { String name String description String image String category ...
2008-02-10 17:53:54
142
grails ext-ui 最新版本也放到 svn 中了
grails ext-ui 最新版本也放到 svn 中了 在dev-app下,不过,还没有完成,有兴趣的可以下载下来看看
2008-01-30 16:38:01
97
jsecurity plugin 更新了
grails 的jescurity plugin 更新了,用到了基本上是 1.0版本的jsecurity 新特点就是,不用必须在domain 中加入 accessControll 了,可以直接在自己的filter中加入 accessCotroll了 具体参考 mail lis 中 的 http://www.nabble.com/JSecurity%3A-living-on-the...
2008-01-30 16:36:40
113
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人