2008-07-11

extjs StatusBar 所在panel 在 south

关键字: extjs statusbar 所在panel 在 south
在把StatusBar放到一个Panel上时,如果这个panel在ViewPort中的South ,需要把 Panel的height 设置成 0 否则在ie7中,会有一个13px的空白。 var statusBar = new Ext.Panel({ // autoHeight: true, height:0, // title: 'StatusBar', region:'south', // bodyStyle: ' ...
2008-07-04

grails 根据数据库自动生产 domains

关键字: grails dbunit domains
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 ...
2008-07-04

grails 导出 excel

关键字: grails poi
用 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 ...
2008-07-04

grails war 包定制

关键字: grails war 包定制
在config.groovy 下面配置 grails.war.resources = {stagingDir -> copy(todir: "${stagingDir}/WEB-INF/classes/grails-app/yourDir") { fileset(dir:"grails-app/YourDir") } }
在datasource.groovy password = YourClass.decode(加密后的密码) 提前用YourClass.encode(原始密码)获得加密后的密码
2008-07-04

grails 自定义 validator

关键字: grails validator
http://www.zorched.net/2008/01/25/build-a-custom-validator-in-grails-with-a-plugin/
原文 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)
2008-07-02

grails services transaction

关键字: grails services transaction
在 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 ...
dellsoft
搜索本博客
我的相册
5d0d42bc-4234-4e78-9bcd-e51aa5ccf380-thumb
detail
共 1 张
存档
最新评论