2007-07-01

第一次用css布局做东西

关键字: css布局
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link href="css/css.css" rel="stylesheet ...
  • 16:12
  • 浏览 (438)
  • 评论 (0)
1.function 1.key word:def x(arguments) 2.docstring,at the firstline of function body,for example'***print hello world***' 3.arguments style:formal and positonal. definition like: 1.(a,keyword1="a",keyword1="b") 2.(a,*arguments1,**keywordTypeArguments2) invoke like: 1. ...
问题1.从客户端传来的id,需要转化成持久化对象,webwork默认会为我们创建出空对象,但不满足,希望webwork能按照id值绑定持久化对象. 解决办法:创建自己的转化器 1.创建xwork-conversion.properties,内容如下 com.abest.common.domain.CommonEntity=com.abest.common.EntityWebworkConverter 其中CommonEntity为所有持久化实体类的超类,更详细的资料见: http://wiki.opensymphony.com/display/XW/XWork ...
2007-05-07

明天就要上班了,郁闷

关键字: 生活
....
  • 23:49
  • 浏览 (2200)
  • 评论 (0)
2007-03-15

一次和jsf的接触

关键字: jsf,java server faces
同事看了richfaces,觉得很漂亮,决定来一次学习研究.要搞jsf,当然要收集资料啦.开动,加上两年前接触过一会jsf,一下子就收集了下面如此之多的链接: jsf richfaces ajax4jsf RichFaces Developer Guide seam MyFaces - JSF Training Course Materials stand1.1doc j ...
2007-03-10

domain model sample

关键字: domain model
public class Department { public static void employee(String name, String department) { User.create(name,department); } } @Entity public class Kind { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) public int id = -1; public String name; public Kind(String name) ...
  • 20:52
  • 浏览 (1011)
  • 评论 (0)
前提: 1.使用LocalContainerEntityManagerFactoryBean 2.可能存在多个persistence.xml,比如5个以上,每个persistence.xml定义的class不同 想一下就能切换好实现: entityManagerFactory的定义放在一个文件就叫ormContext.xml吧,包含下面内容 配置一: <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFac ...
读IS YOUR ORGANIZATION TOO UNIQUE TO USE UNIVERSAL DATA MODELS? http://www.tdan.com/i010fe04.htm 1.分离组织跟角色的信息    Party,PartyDefinition,DefintionType(可选) 2.抽象出组织间的关系的常用属性(包括:优先,状态,开始日期)    Party,PartyRelation,Relation Priority Definition,    Relation Status Defin ...
  • 23:43
  • 浏览 (2355)
  • 评论 (0)
好多种啊. 1.设置为null,当然咯,不null就不被回收了。 2.程序调用Runtime.gc()(貌似) 3.调整jvm heap的分配:   jvm heap分为young及tenured:      young又分为eden,survivor,virtual.      tenured分为virtual及perm(永久).   垃圾回收主要会三个阶段   1.eden空间的回收:        对象在eden空间中创建,该空间满后,垃圾回收开始工作,回收无效对象所占用的空间 .并将该带中存活的对象拷贝到survivor   2.survivor空间的回收 ...
  • 23:40
  • 浏览 (2444)
  • 评论 (0)
引用一段potian的话,勉励自己 potian 写道: 引用我对空头讨论不是很感兴趣 当年为了看设计模式去买Smalltalk Best Practice patterns,为了学习Smalltalk Best Practice patterns,我看了两本smalltalk的书。这一年多来为了学习Ruby我重新看了一本smalltalk的书,用翻译软件看了Ruby Hacking Guide,并且根据Ruby 1.8自己写了很多Ruby源代码方面的体会,一直跟踪着YARV的发展。 另外我从头到尾把OnLisp和Practical Common Lisp的例子仔仔细细都做了一遍,Paul ...
  • 08:41
  • 浏览 (2808)
  • 评论 (1)
nihongye
搜索本博客
存档
最新评论