在把StatusBar放到一个Panel上时,如果这个panel在ViewPort中的South ,需要把 Panel的height 设置成 0 否则在ie7中,会有一个13px的空白。
var statusBar = new Ext.Panel({
// autoHeight: true,
height:0,
// title: 'StatusBar',
region:'south',
// bodyStyle: ' ...
GenerateDataabase.groovy
import java.lang.reflect.Method
import com.pansoft.extjs.DbunitDatabaseTemplateGenerator
import java.sql.Connection
import java.sql.DriverManager
/*
* Copyright 2004-2005 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "Lice ...
- 17:25
- 浏览 (220)
- 评论 (1)
- 分类: grails
- 发布在 Groovy on Grails 圈子
用 poi 来导出 excel 文件
import org.codehaus.groovy.grails.commons.*
import org.apache.poi.hssf.usermodel.HSSFWorkbook
import org.apache.poi.hssf.usermodel.HSSFSheet
import org.apache.poi.hssf.usermodel.HSSFRow
import org.apache.poi.hssf.usermodel.HSSFCell
import org.codehaus.groovy.grails.commons ...
- 17:21
- 浏览 (202)
- 评论 (2)
- 分类: grails
- 发布在 Groovy on Grails 圈子
在config.groovy 下面配置
grails.war.resources = {stagingDir ->
copy(todir: "${stagingDir}/WEB-INF/classes/grails-app/yourDir") {
fileset(dir:"grails-app/YourDir")
}
}
- 17:18
- 浏览 (111)
- 评论 (0)
- 分类: grails
- 发布在 Groovy on Grails 圈子
在datasource.groovy
password = YourClass.decode(加密后的密码)
提前用YourClass.encode(原始密码)获得加密后的密码
- 17:16
- 浏览 (122)
- 评论 (0)
- 分类: grails
- 发布在 Groovy on Grails 圈子
http://www.zorched.net/2008/01/25/build-a-custom-validator-in-grails-with-a-plugin/
- 17:05
- 浏览 (109)
- 评论 (0)
- 分类: grails
- 发布在 Groovy on Grails 圈子
原文
http://amorproximi.blogspot.com/2008/07/grails-bootstrapping.html
择录部分,
Ant.property(environment: "env")
grailsHome = Ant.antProject.properties."env.GRAILS_HOME"
includeTargets << new File("${grailsHome}/scripts/Bootstrap.groovy")
target('default': "Working edition") {
//we need one ...
- 16:55
- 浏览 (39)
- 评论 (0)
在 graisl 应用中,默认情况下,services 的事务是系统自动控制的,默认下 是true
可以通过以下几种方法改变transaction的状态
1) 通过sessonFactory
def session = sessionFactory.getCurrentSession()
Transaction tx = session.beginTransaction()
<>
tx.commit()
or
tx.rollback()
2)withTransaction grails 文档中介绍的
def transferFunds = {
Account.withTrans ...
- 浏览: 15921 次
- 性别:

- 来自: 济南

- 详细资料
搜索本博客
我的相册
detail
共 1 张
共 1 张
最新评论
-
grails 根据数据库自动生 ...
不错,不知道实践结果感觉如何,呵呵
-- by casephoen -
grails 导出 excel
你确认在你的controller中定义这个XlsExportService 吗 ...
-- by dellsoft -
grails 导出 excel
不能执行:java.lang.NullPointerException: Can ...
-- by ourfirebird -
jsecurity 资料
一直在关注中,其基于pojo的特性还是很诱人的.
-- by agile_boy -
extjs dwr spring
谢谢,学习,学习
-- by fang_qi






评论排行榜