- 博客(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
217
原创 groovy Ip地址表达式
// IP Address Regex http://www.regular-expressions.info/examples.htmlcurrentIp = ("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
787
原创 change the default locale
beans = {4.localeResolver(org.springframework.web.servlet.i18n.SessionLocaleResolver) {5.defaultLocale = Locale.SIMPLIFIED_CHINESE6.java.util.Locale.setDefault(defaultLocale)...
2011-04-13 19:37:00
204
原创 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
105
原创 Jgraph
Jgraph 遵循 MVC分GraphModelCellViewCellHandleBasicMarqueeHandler 是对 Jgraph 进行控制的基本上每一个View 中都有 handle可以参考 EdgeViewedge -- 边vertex -- 节点port -- 在边的方向通过DefaultCellViewFacto...
2010-07-28 22:01:07
170
原创 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
268
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
177
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
178
grails +zkoss 开发总结
zk component develop 一、)java 类及方法1)先开发一个服务器端的组件,通常是继承 abstractComponent ,如果是html 类型的组件,继承HtmlBaseComponent 就可以了。2)如果需要一个widget需要通知服务器端组件,需要在服务器端的component上注册Client Event http://docs.zkoss....
2010-03-14 09:42:03
217
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
146
grails transaction
http://sacharya.com/transactions-in-grails/Transaction & Batch-processing in GrailsFebruary 1, 2009Transaction handling is one of the more complex areas of web development. Anytime a use...
2010-03-14 09:35:15
192
原创 sap itab table
http://wiki.sdn.sap.com/wiki/display/stage/Working+with+Internal+tables+.
2009-10-30 11:06:51
182
原创 Configuring NW 7.1 virtual hosts
http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/16354
2009-10-22 21:11:38
141
原创 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
147
grails assgined the id
使用hibernate 的自定义主键 import org.hibernate.SessionFactoryclass PersonController { SessionFactory sessionFactory def index = { redirect(action:list,params:params) } // the del...
2009-05-09 22:29:33
103
原创 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
386
原创 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
112
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
109
grailsflow
grailsflow 具体地址 http://my.jcatalog.com/grailsflow/login 下面说说,grailsflow的流程处理.本人对工作流不熟悉,加之grailsflow文档有限。只是粗略的看了下 grailsflow 的代码,如发现有错误,请指正留言。 grailsflow 分以下几个方面1)流程定义 --就是定义流程要走那些步骤2)流程处理 -...
2008-10-30 16:43:36
129
原创 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
107
grails 根据数据库自动生产 domains
GenerateDataabase.groovy[code="java"]import java.lang.reflect.Methodimport com.pansoft.extjs.DbunitDatabaseTemplateGeneratorimport java.sql.Connectionimport java.sql.DriverManager/** C...
2008-07-04 17:25:27
215
grails 导出 excel
用 poi 来导出 excel 文件[code="java"]import org.codehaus.groovy.grails.commons.*import org.apache.poi.hssf.usermodel.HSSFWorkbookimport org.apache.poi.hssf.usermodel.HSSFSheetimport org.apache.p...
2008-07-04 17:21:36
204
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
166
grails datasource 中配置数据源用户名称和密码 加密
在datasource.groovypassword = YourClass.decode(加密后的密码)提前用YourClass.encode(原始密码)获得加密后的密码
2008-07-04 17:16:41
363
grails 自定义 validator
http://www.zorched.net/2008/01/25/build-a-custom-validator-in-grails-with-a-plugin/
2008-07-04 17:05:13
143
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
144
grails services transaction
在 graisl 应用中,默认情况下,services 的事务是系统自动控制的,默认下 是true可以通过以下几种方法改变transaction的状态1) 通过sessonFactorydef session = sessionFactory.getCurrentSession()Transaction tx = session.beginTransaction()...
2008-07-02 15:26:26
121
jsecurity 资料
今天看到一个好消息就是 jsecuirty,将要变成apache的一个工程了。这将推动jsecurity的广泛应用,结束目前不温不火的局面。http://www.jsecurity.org/node/1049
2008-06-18 10:22:05
151
grails ext 模板
最新的extjs 模板出来了,大家可以到 grails 的plugin中下载。[b]当前版本还没有发布,自己可以svn source 后release-plugin,从本地安装![/b]根据论坛的反馈,基于extjs的插件可能不至一个,现在的这个是基于extjs 纯javascript的。grails-ext-ui可能会继续保持独立发展,不过,这个插件的核心开发人员现在好像停止...
2008-04-13 21:46:15
131
create builder with groovy
http://vladimirvivien.com/blogs/ot/2008/02/creating-simple-builder-with-groovys.html
2008-03-08 11:01:45
121
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
130
extjs 未来规划版本
Ext Road MapOur 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
134
grails flex 例子
一个结合 flex-plugin 的例子展示具体操作步骤1)安装 flex plugin2)创建一个domian Product 和service[code="java"]class Product { String name String description String image String category ...
2008-02-10 17:53:54
130
grails ext-ui 最新版本也放到 svn 中了
grails ext-ui 最新版本也放到 svn 中了在dev-app下,不过,还没有完成,有兴趣的可以下载下来看看
2008-01-30 16:38:01
92
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
108
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人