<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6786258627405686300</id><updated>2011-12-30T04:08:10.183-08:00</updated><category term='The Ruby Way'/><category term='nexus'/><category term='javascript'/><category term='blogspot'/><category term='Hibernate'/><category term='maven'/><category term='Java'/><category term='NetBeans'/><category term='Algorithms'/><category term='book'/><category term='ExtJs'/><category term='Spring Patterns'/><category term='SpringSide'/><category term='JRuby'/><category term='css'/><category term='Ruby'/><category term='Eclipse'/><category term='Flex'/><category term='windows'/><category term='MySql'/><category term='Spring'/><category term='Ruby on Rails'/><category term='FormPanel'/><category term='BasicForm'/><category term='DAO'/><title type='text'>王新的博客</title><subtitle type='html'>王新的博客，Programming...
Ruby,Java,Javascript,Ruby On Rails, Agile Development,Scrum,Web Development.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>45</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-8628424312848991395</id><published>2009-08-10T19:10:00.001-07:00</published><updated>2009-08-10T19:10:43.048-07:00</updated><title type='text'>1248375768_HvlgQr</title><summary type='text'>1248375768_HvlgQrOriginally uploaded by tony_wangxIt's the first time to post weblog with flickr.</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/8628424312848991395/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/08/1248375768hvlgqr.html#comment-form' title='35 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/8628424312848991395'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/8628424312848991395'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/08/1248375768hvlgqr.html' title='1248375768_HvlgQr'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://farm4.static.flickr.com/3550/3810193110_9c0d9a9da7_t.jpg' height='72' width='72'/><thr:total>35</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-1224111810122250781</id><published>2009-08-10T19:08:00.001-07:00</published><updated>2009-08-10T19:08:47.116-07:00</updated><title type='text'>Flickr</title><summary type='text'>This is a test post from , a fancy photo sharing thing.</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/1224111810122250781/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/08/flickr.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/1224111810122250781'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/1224111810122250781'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/08/flickr.html' title='Flickr'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-7326999510076548336</id><published>2009-05-13T06:06:00.001-07:00</published><updated>2009-05-13T06:09:14.127-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Java 数字浮点型与chat之间的转化（int or float convert into char）</title><summary type='text'>见这行代码：
char c=(char)(0.7+'a');
System.out.println(c);
打印的结果将是a，所以如果数字类型强行转化为char类型时，会砍掉小数点后面的小数。再转化，而不是四舍五入。</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/7326999510076548336/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/05/java-int-or-float-convert-into-char.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/7326999510076548336'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/7326999510076548336'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/05/java-int-or-float-convert-into-char.html' title='Java 数字浮点型与chat之间的转化（int or float convert into char）'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-2307141111524999447</id><published>2009-05-10T09:09:00.000-07:00</published><updated>2009-05-10T09:09:06.428-07:00</updated><title type='text'>Google Open Source Blog: Introducing WebDriver</title><summary type='text'>Google Open Source Blog: Introducing WebDriver</summary><link rel='related' href='http://google-opensource.blogspot.com/2009/05/introducing-webdriver.html' title='Google Open Source Blog: Introducing WebDriver'/><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/2307141111524999447/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/05/google-open-source-blog-introducing.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/2307141111524999447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/2307141111524999447'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/05/google-open-source-blog-introducing.html' title='Google Open Source Blog: Introducing WebDriver'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-498742549162960390</id><published>2009-05-04T19:25:00.000-07:00</published><updated>2009-05-04T19:25:39.389-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Algorithms'/><title type='text'>用7种语言实现的数据结构与算法</title><summary type='text'>有很多人在找数据结构方面的资料吧。这个可以看看，很不错。
用7种语言实现的数据结构与算法</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/498742549162960390/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/05/7.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/498742549162960390'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/498742549162960390'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/05/7.html' title='用7种语言实现的数据结构与算法'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-8755666919004157571</id><published>2009-05-04T02:52:00.000-07:00</published><updated>2009-05-04T02:58:39.568-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ExtJs'/><title type='text'>在Ext GridPanel中设置某一列不参与分组的办法</title><summary type='text'>假设你已经有一个包含分组的Grid，在其设置column的地方设置属性groupable：false。
见代码：
           {
                id: 'cost',
                header: "Cost",
                width: 20,
                sortable: false,
                groupable: false,
                dataIndex: 'cost',
                summaryType:'totalCost',
                summaryRenderer: Ext.util.Format.usMoney
            }  

</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/8755666919004157571/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/05/ext-gridpanel-with-groupingview.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/8755666919004157571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/8755666919004157571'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/05/ext-gridpanel-with-groupingview.html' title='在Ext GridPanel中设置某一列不参与分组的办法'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-6976732572360429836</id><published>2009-05-02T19:49:00.000-07:00</published><updated>2009-05-02T19:49:52.964-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maven'/><title type='text'>mvn无法安装jpa(jta)的解决办法 Jta1.0.1B no maven</title><summary type='text'>先去http://java.sun.com/javaee/technologies/jta/index.jsp手动下载classes文件。
之后放到本地的一个本件家中。
运行mvn install:install-file -Dfile=./jta-1_0_1B-classes.zip -DgroupId=javax.transaction -DartifactId=jta -Dversion=1.0.1B -Dpackaging=jar
之后再在项目中运行mvn install
ok、</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/6976732572360429836/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/05/mvnjpajta-jta101b-no-maven.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/6976732572360429836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/6976732572360429836'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/05/mvnjpajta-jta101b-no-maven.html' title='mvn无法安装jpa(jta)的解决办法 Jta1.0.1B no maven'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-3064936659662130623</id><published>2009-05-02T07:14:00.000-07:00</published><updated>2009-05-02T23:54:14.699-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Spring'/><title type='text'>Spring Annotation详解（AOP篇2）</title><summary type='text'>接上一篇Spring Annotation详解（AOP篇1）
本文的相关文章有：
Spring Annotation详解（IOC篇1） 
Spring Annotation详解（IOC篇2） 
Spring Annotation详解（IOC篇3） 
Spring Annotation详解（AOP篇1）

上一篇介绍了基本的pointcut与advice的使用。这篇着重介绍一下除了execution之外的其他类型的pointcut。

within：within指的是在某个范围内所有的方法执行。
例如：
@pointcut("within(com.xyz.project.web..*)")就是指在com.xyz.project.web包及其子包中所有的方法被执行的时候，都会触发这个pointcut。within(com.xyz.project.web.*)这样写就只是针对这个包，</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/3064936659662130623/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/05/spring-annotationaop2.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/3064936659662130623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/3064936659662130623'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/05/spring-annotationaop2.html' title='Spring Annotation详解（AOP篇2）'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-6251278799518803045</id><published>2009-04-30T20:33:00.000-07:00</published><updated>2009-05-02T23:48:33.531-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Spring'/><title type='text'>Spring Annotation详解（AOP篇1）</title><summary type='text'>相关文章：Spring Annotation详解（AOP篇2） 
Spring Annotation详解（IOC篇） 
本文主要简单了解一下使用Java annotation的情况下，先介绍一下比较主流和简单的用法，Spring对AspectJ的支持。 
在ApplicationContext中加入关于AOP的命名空间，具体内容见Spring 使用AspectJ来配置AOP
首先明确一点，用作通知（Advice）的类也应该受到ApplicationContext的管理，之后再使用AspectJ的标签来管理通知动作，见代码：
//import ...
@Component
@Aspect
public class Alert {
    @Before("execution(* get*(..))")//方法运行前通知
    public void show() { 
        </summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/6251278799518803045/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/spring-annotationaop.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/6251278799518803045'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/6251278799518803045'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/spring-annotationaop.html' title='Spring Annotation详解（AOP篇1）'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-749798217402374432</id><published>2009-04-30T01:49:00.000-07:00</published><updated>2009-05-10T22:08:14.114-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ruby'/><title type='text'>Ruby:Timezone synchronization function(跨时区同步时间方法)</title><summary type='text'>方法是：首先取得客户端的时区，之后得到服务器的本地时区，之后取得两个时区的差值，计算出相应的时间。
输入：服务器时间
输出：相应的客户端对应的时间
上代码：
  #时间同步方法
  #clint_timezone:client timezone
  def formate_date_to_client_time_zone(clint_timezone,time)
    diff=(clint_timezone-get_server_time_zone)
    unless(clint_timezone.nil?)
      time=time+diff*3600
    end
    return time
  end
  #获得本地时区
  #return the server timezone
  def get_server_time_zone
    return </summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/749798217402374432/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/rubytimezone-synchronization-function.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/749798217402374432'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/749798217402374432'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/rubytimezone-synchronization-function.html' title='Ruby:Timezone synchronization function(跨时区同步时间方法)'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-5770210013149959305</id><published>2009-04-29T02:03:00.000-07:00</published><updated>2009-04-29T02:04:36.348-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ruby'/><category scheme='http://www.blogger.com/atom/ns#' term='The Ruby Way'/><title type='text'>Ruby:string to date Or date to string</title><summary type='text'>Ruby:string to date Or date to string
#string to date:
str="2009-02-02"
date=Date.strptime(str,"%Y-%m-%d")
#date to string:
date=Date.new(2009,2,2)
str=date.strftime("%Y-%m-%d")</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/5770210013149959305/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/rubystring-to-date-or-date-to-string.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/5770210013149959305'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/5770210013149959305'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/rubystring-to-date-or-date-to-string.html' title='Ruby:string to date Or date to string'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-6405383275615617752</id><published>2009-04-28T10:51:00.000-07:00</published><updated>2009-04-28T10:51:44.834-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>超炫的flex特效，UI做到这份上，应该说无敌了。</title><summary type='text'>Efflex 是一组由 Stephen Downs (aka “Tink”)开发的 Flex特效。
留个纪念，慢慢看
这里是demo</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/6405383275615617752/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/flexui.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/6405383275615617752'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/6405383275615617752'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/flexui.html' title='超炫的flex特效，UI做到这份上，应该说无敌了。'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-7668782326341329886</id><published>2009-04-28T09:08:00.000-07:00</published><updated>2009-04-28T09:09:25.304-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><title type='text'>正则表达式验证邮箱地址</title><summary type='text'>定义以下模式为有效的：john@hotmail.comjohn.doe@somewhere.comJohn Doe&lt;john.doe@somewhere.com&gt;javascript的正则表达式为var reEmail=/^(?:\w+\.?)*\w+@(?:\w+\.?)*\w+$/;</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/7668782326341329886/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/blog-post_1483.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/7668782326341329886'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/7668782326341329886'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/blog-post_1483.html' title='正则表达式验证邮箱地址'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-1497786349766082383</id><published>2009-04-27T07:43:00.000-07:00</published><updated>2009-04-27T07:43:52.959-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>Flex:浅谈Flex事件机制</title><summary type='text'>      一直对RIA技术非常感兴趣，研究了一下Flex的事件机制，发现Flex的事件机制和Javascript很像，只不过更加严格。在Flex的事件机制中有一个比较重要的概念dispatchEvent，基本原理就是事件所在的容器类初始化的时候注册其事件监听函数。如果需要自己定义Event类型，需要将事件分发到事件队列中，也就是dispatchEvent。也就是你要手动找到自定义的事件的前一个事件，在这个结束的时候调用dispatchEvent(event),这个event就是你自定一个事件，这个事件（一个类）一定要继承flash.events.Event。
给个例子：
自定义的事件类：
public class AddressFormEvent extends Event

{
public static const SUBMIT:String = "submit";
private</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/1497786349766082383/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/flexflex.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/1497786349766082383'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/1497786349766082383'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/flexflex.html' title='Flex:浅谈Flex事件机制'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-2740444626385161733</id><published>2009-04-26T09:12:00.000-07:00</published><updated>2009-04-26T09:14:55.760-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Spring'/><title type='text'>Spring 使用AspectJ来配置AOP</title><summary type='text'>在Application_context中引入名称空间，例子：&lt;beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:p="http://www.springframework.org/schema/p"
    xmlns:aop="http://www.springframework.org/schema/aop" 
    xmlns:lang="http://www.springframework.org/schema/lang"
    xmlns:context="http://www.springframework.org/schema/context"
    xsi:</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/2740444626385161733/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/spring-aspectjaop.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/2740444626385161733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/2740444626385161733'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/spring-aspectjaop.html' title='Spring 使用AspectJ来配置AOP'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-2954256805001313060</id><published>2009-04-24T02:08:00.000-07:00</published><updated>2009-04-24T02:09:16.358-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ExtJs'/><title type='text'>在ExtJs应用中快速为页面元素添加tooltip</title><summary type='text'>ExtJs是通过Ext.ToolTip和Ext.QuickTips两个组件来实现浮动提示功能的。

QuickTips代码示例：只需要加入Ext.QuickTips.init(); 就可以在html页面中使用。html页面 可以通过：
&lt;input type="button" value="OK" ext:qtitle="Test" ext:qtip="Test Content!"&gt;</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/2954256805001313060/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/extjstooltip.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/2954256805001313060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/2954256805001313060'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/extjstooltip.html' title='在ExtJs应用中快速为页面元素添加tooltip'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-5031450407824176846</id><published>2009-04-23T22:20:00.000-07:00</published><updated>2009-04-23T22:50:14.142-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><title type='text'>Javascript方式打开一个浏览器</title><summary type='text'>var newWindow=window.open(url,'txtPopup','height=768,location=0,menubar=0,personalbar=0,scrollbars=1,status=0,toolbar=0,width=1024,resizable=0');
newWindow.focus(); 
javascript 刷新页面的方式：
history.go(0) 
location.reload() 
location=location 
location.assign(location) 
document.execCommand('Refresh') 
window.navigate(location) 
location.replace(location) 
document.URL=location.href 
</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/5031450407824176846/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/javascript.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/5031450407824176846'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/5031450407824176846'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/javascript.html' title='Javascript方式打开一个浏览器'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-6869794488555921982</id><published>2009-04-23T22:14:00.000-07:00</published><updated>2009-04-23T22:14:45.261-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JRuby'/><category scheme='http://www.blogger.com/atom/ns#' term='Spring'/><title type='text'>JRuby On Spring在spring框架中使用Jruby</title><summary type='text'>昨天尝试在Spring中使用脚本语言，比如jruby，发现非常不方便，最主要的一点就是ruby class必须继承某一个java的接口，而其他bean调用时也是调用这个接口类型的对象。jruby的动态性基本丧失了。唉！</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/6869794488555921982/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/jruby-on-springspringjruby.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/6869794488555921982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/6869794488555921982'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/jruby-on-springspringjruby.html' title='JRuby On Spring在spring框架中使用Jruby'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-9211135682971576819</id><published>2009-04-23T08:56:00.000-07:00</published><updated>2009-04-23T08:56:23.409-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JRuby'/><category scheme='http://www.blogger.com/atom/ns#' term='Ruby'/><title type='text'>JRuby的性能优化(update)</title><summary type='text'>JRuby wiki上列出了性能优化的四条建议：
1、调优编译器，JRuby早就弃暗投明跟随XRuby走上了编译这条牛B的道路，将Ruby Script编译成字节码，因此这个环节是断断不能忽略的。
两种编译方式：
AOT模式：直接生成class文件，脱了Ruby这层皮，咱就是人见人“爱”的java了。
JIT模式：充分利用成熟的jit技术，咱不全脱，朦胧美才是真的美。默认从0.9.9版本开始就是开启的，关闭的话（要我说还不如全脱）
jruby -J-Djruby.jit.enabled=false
2、关闭ObjectSpace
ObjectSpace是Ruby用来操作所有运行时对象的模块，这个功能相当牛x。这个的实现在c ruby里是比较容易的，但是对于JRuby代价就比较昂贵了，其实就大部分情况下你基本用不到这个东东，那么最好就是关闭它，JRuby提供了
jruby -</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/9211135682971576819/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/jrubyupdate.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/9211135682971576819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/9211135682971576819'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/jrubyupdate.html' title='JRuby的性能优化(update)'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-7970971055290591143</id><published>2009-04-22T09:21:00.000-07:00</published><updated>2009-04-22T09:21:58.235-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ruby'/><title type='text'>用ruby写的一个网络爬虫程序</title><summary type='text'>前几天写的一个ruby爬虫，专抓指定网站的图片
require 'net/http'
require "monitor"
def query_url(url)
  return Net::HTTP.get(URI.parse(url));
end
def save_url(url,dir,filename)
  filename = url[url.rindex('/')+1, url.length-1] if filename == nil || filename.empty?
  require 'open-uri'
  Dir.mkdir("#{dir}") if dir != nil &amp;&amp; !dir.empty? &amp;&amp; !FileTest.exist?(dir)
  open(url) do |fin|
      File.new("#{dir}#{filename}","wb</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/7970971055290591143/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/ruby_22.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/7970971055290591143'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/7970971055290591143'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/ruby_22.html' title='用ruby写的一个网络爬虫程序'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-100146399943825537</id><published>2009-04-22T09:07:00.000-07:00</published><updated>2009-04-22T09:07:37.110-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ruby'/><category scheme='http://www.blogger.com/atom/ns#' term='The Ruby Way'/><title type='text'>Ruby 递归删除文件目录</title><summary type='text'>递归删除文件目录：
require 'pathname'
dir=Pathname.new("/home/poole/")
dir.rmtree

#or

require 'fileutils'
FileUtils.rm_r("/home/poole")</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/100146399943825537/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/ruby.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/100146399943825537'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/100146399943825537'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/ruby.html' title='Ruby 递归删除文件目录'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-7493798607160571594</id><published>2009-04-22T06:00:00.000-07:00</published><updated>2009-04-22T06:08:05.603-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Spring'/><title type='text'>Spring Annotation详解（IOC篇3）</title><summary type='text'>本文接上一篇Spring Annotation详解（IOC篇2）
除了之前提到的@Autowired,@Component,@Sevice,@Controller,@Repository,@Scope,@Qualifier之外还有其他的一些用于IOC的Annotation
@Resource
    @Resource
    public void setOwner(Member owner) {
        this.owner = owner;
    }
或者
    @Resource（name="member")
    public void setOwner(Member owner) {
        this.owner = owner;
    }
其中特别之处在于@Resource如果加载属性或者setter之上，则按照属性名或者根据setter名称得到</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/7493798607160571594/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/spring-annotationioc3.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/7493798607160571594'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/7493798607160571594'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/spring-annotationioc3.html' title='Spring Annotation详解（IOC篇3）'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-2159733324115993126</id><published>2009-04-22T05:48:00.000-07:00</published><updated>2009-04-22T06:19:14.005-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Spring'/><title type='text'>Spring Annotation详解（IOC篇2）</title><summary type='text'>本文接上一篇Spring Annotation详解（IOC篇）
在bean中我们已经看到了最基本的使用Java annotation的方式了，但是Spring对于Annotation还存在一些问题,比如：@Autowired同样可以应用于Collection中，比如List中。但是如果在List的属性中加上这个Annotation，那么通过容器初始化的bean会自动往List中存放一个通过@Autowired自动查找出来的对象，这么做我也很难说它不对，但是还是感觉怪怪的。希望大家注意。
另外谈一下自动检测组件名称的方式(针对于@Component,@Service,@Controller,@Repository)：如果给组件命名了，则按照这个名称注册到BeanFactory中，如果没有命名，则把小写开头的类名注册为组件名称。@Component("project")
public </summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/2159733324115993126/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/spring-annotationioc2.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/2159733324115993126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/2159733324115993126'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/spring-annotationioc2.html' title='Spring Annotation详解（IOC篇2）'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-9207069482919796764</id><published>2009-04-21T08:03:00.000-07:00</published><updated>2009-05-02T23:50:34.348-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Spring'/><title type='text'>Spring Annotation详解（IOC篇）</title><summary type='text'>Spring Annotation详解（IOC篇） 本文的相关文章有：
Spring Annotation详解（IOC篇2） 
Spring Annotation详解（IOC篇3） 
Spring Annotation详解（AOP篇1）
首先在application_context的xml配置文件中加入&lt;context:component-scan base-package="org.bean"/&gt;，而且保证xml的schema中包括context名称空间。
@Component
//例如
@Component("member")
public class Member {
   private String id; 
   }
这个Annotation主要用来定义bean。
@Service,@Controller,@Repository
这3个目前与@component同意，</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/9207069482919796764/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/spring-annotationioc.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/9207069482919796764'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/9207069482919796764'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/spring-annotationioc.html' title='Spring Annotation详解（IOC篇）'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-8898398254813399577</id><published>2009-04-21T02:53:00.000-07:00</published><updated>2009-04-21T08:23:17.716-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='css'/><title type='text'>不允许选择文字的css（-moz-user-select,onselectstart）</title><summary type='text'>&lt;div unselectable="on" onselectstart="return false;" style="-moz-user-select:none;" &gt;你选不了我,unselectable为IE准备 ， onselectstart为Chrome、Safari准备    -moz-user-select是FF的 &lt;/div&gt;

试试:点点下边这句
你选不了我,unselectable为IE准备 ， onselectstart为Chrome、Safari准备    -moz-user-select是FF的 </summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/8898398254813399577/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/css-moz-user-selectonselectstart.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/8898398254813399577'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/8898398254813399577'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/css-moz-user-selectonselectstart.html' title='不允许选择文字的css（-moz-user-select,onselectstart）'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-298498820415087396</id><published>2009-04-20T20:53:00.000-07:00</published><updated>2009-04-21T04:13:16.760-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails'/><title type='text'>Ruby on Rails ActiveRecord中Has_many的参数说明</title><summary type='text'>Rails ActiveRecord中Has_many的参数说明:class_nameSpecify the class name of the association. Use it only if that name can‘t be inferred from the association name. So has_many :products will by default be linked to the Product class, but if the real class name is SpecialProduct, you‘ll have to specify it with this option.:conditionsSpecify the conditions that the associated objects must meet in order to </summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/298498820415087396/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/rails-activerecordhasmany.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/298498820415087396'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/298498820415087396'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/rails-activerecordhasmany.html' title='Ruby on Rails ActiveRecord中Has_many的参数说明'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-600831571527646697</id><published>2009-04-20T07:20:00.000-07:00</published><updated>2009-04-20T08:01:32.840-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Spring'/><title type='text'>Spring IoC application context sample</title><summary type='text'>Spring IoC application context sample 基于XML的context
&lt;bean id="project" class="bean.Project"&gt;
 &lt;property name="owner"&gt;
  &lt;bean class="bean.Member"&gt;
   &lt;property name="project"&gt;
    &lt;ref bean="project"/&gt;
   &lt;/property&gt;
  &lt;/bean&gt;
 &lt;/property&gt;
&lt;/bean&gt;
使用p名称空间，简化如下
&lt;bean id="project" class="bean.Project" p:owner-ref="member"/&gt;
&lt;bean id="member" class="bean.Member" p:project-ref="project"/&gt;
在bean的属性中"</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/600831571527646697/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/spring-ioc-application-context-sample.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/600831571527646697'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/600831571527646697'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/spring-ioc-application-context-sample.html' title='Spring IoC application context sample'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-8313855653591469613</id><published>2009-04-20T01:42:00.000-07:00</published><updated>2009-04-28T20:39:38.907-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails'/><title type='text'>Ruby on Rails单元测试(Unit Test)的数据准备</title><summary type='text'>Ruby on Rails单元测试(Unit Test)的数据准备一般来说，在运行Rails单元测试(Unit Test)之前,都要进行rake db:test:prepare
如果你想一次性把所有DB table都建立好，也可以用这个：rake environment RAILS_ENV=test db:migrate
虽然这样做不标准，但是比较快捷，前提是你的migrate脚本中没有会导致出问题的脏数据。</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/8313855653591469613/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/railsunit-test.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/8313855653591469613'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/8313855653591469613'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/railsunit-test.html' title='Ruby on Rails单元测试(Unit Test)的数据准备'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-3615844203892482916</id><published>2009-04-20T01:05:00.000-07:00</published><updated>2009-04-21T08:32:45.242-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails'/><title type='text'>Ruby on Rails单元测试(Unit Test)</title><summary type='text'>Ruby on Rails 单元测试(Unit Test)步骤 （MySQL环境）#首先建立测试数据库mysqladmin -u root create db_test#建立数据库结构rake db:test:prepare#运行测试ruby test/unit/product_test.rb</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/3615844203892482916/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/rails.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/3615844203892482916'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/3615844203892482916'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/rails.html' title='Ruby on Rails单元测试(Unit Test)'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-4056088862071572913</id><published>2009-04-19T20:29:00.000-07:00</published><updated>2009-04-19T20:33:14.340-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySql'/><title type='text'>MYSQL 外键定义</title><summary type='text'>MYSQL 外键定义建立外键的前提： 本表的列必须与外键类型相同(外键必须是外表主键)。外键作用： 使两张表形成关联，外键只能引用外表中的列的值！指定主键关键字： foreign key(列名)引用外键关键字： references &lt;外键表名&gt;(外键列名)事件触发限制: on delete和on update ,可设参数cascade(跟随外键改动),restrict(限制外表中的外键改动),set Null(设空值）,set Default（设默认值）,[默认]no action例如： outTable表 主键 id 类型 int创建含有外键的表：create table temp(id int,name char(20),foreign key(id) references outTable(id) on delete cascade on update cascade);说明：把</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/4056088862071572913/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/mysql_19.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/4056088862071572913'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/4056088862071572913'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/mysql_19.html' title='MYSQL 外键定义'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-5706901353674148946</id><published>2009-04-19T19:08:00.001-07:00</published><updated>2009-04-20T01:24:58.776-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Spring'/><title type='text'>Spring包结构以及各个包之间引用关系说明</title><summary type='text'>Spring包结构以及各个包之间引用关系说明Spring 包结构说明：spring.jar包含有完整发布的单个jar包。他包含有除spring-mock.jar之外的所有jar。原因是，spring-mock.jar只有在开发环境中才会用到，而且仅仅是作为一个辅助测试类存在。除了spring.jar，spring还包括13个独立的jar文件，他们各自包含这spring各自的组件。所以，如果你可以明确知道使用spring的哪些资源文件时，就没必要去直接引入spring.jar，但有时候spring.jar的引入也是最偷懒和最直接的方式。spring-core.jar这个jar包含spring框架基本的核心工具类，spring其他组件都要使用到这个包里的类。是其他组件的基本核心。spring-beans.jar这个jar是所有应用都要用到的，他包含访问配置文件，创建和管理bean以及进行</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/5706901353674148946/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/spring_19.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/5706901353674148946'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/5706901353674148946'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/spring_19.html' title='Spring包结构以及各个包之间引用关系说明'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-1908325199729849959</id><published>2009-04-19T18:39:00.001-07:00</published><updated>2009-04-19T18:55:01.409-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Spring Patterns'/><category scheme='http://www.blogger.com/atom/ns#' term='Spring'/><title type='text'>Spring Framework's Building Blocks</title><summary type='text'>Spring Framework's Building Blocks     Spring is an application framework wand is divided into several modules or components. Each module provides a specified set of functionality and works more or less independently of the others.Needless to say,these modules can be leveraged to build scalable yet flexible enterprise Java applications.This system is very flexible,because developers can choose to</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/1908325199729849959/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/spring.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/1908325199729849959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/1908325199729849959'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/spring.html' title='Spring Framework&apos;s Building Blocks'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-2472110667740347594</id><published>2009-04-17T01:49:00.000-07:00</published><updated>2009-04-17T03:35:16.487-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Spring Patterns'/><category scheme='http://www.blogger.com/atom/ns#' term='Spring'/><title type='text'>Why is Spring So Important?</title><summary type='text'>Why is Spring So Important?      Java EE 平台主要希望解决复杂的分布式的应用程序的开发，在中间件厂商与开源社区的大力支持下，传统的JavaEE架构在标准的low-level 中间件服务平台之上，通过一系列的APIs（EJB，JTA，JMS）也可以成功的开发。由于这些陈旧的JavaEE项目首要关注点都在标准化服务上，而忽略了开发的简单性原则。所以基于JavaEE平台的项目往往投入巨大。    Java EE平台目标是用来开发基于模块的应用。而模块是指一个单独的程序，一段可以在复杂项目中简单重用的代码。例如：一个order模块包含一个用来持久化的entity bean，一个用来处理业务流程的的session bean，理论上，这样的模块在很大程度上是可以重用的，但是，现实中，这些模块往往使用率不高。Java EE 程序的复杂性主要表现在编写model</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/2472110667740347594/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/spring-patterns.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/2472110667740347594'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/2472110667740347594'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/spring-patterns.html' title='Why is Spring So Important?'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-3288140385579530335</id><published>2009-04-17T00:44:00.000-07:00</published><updated>2009-04-17T00:59:40.920-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ExtJs'/><category scheme='http://www.blogger.com/atom/ns#' term='FormPanel'/><title type='text'>Ext.TabPanel遇到的问题与解决方法</title><summary type='text'>今天在Ext.form.FormPanel中嵌套TabPanel时，发现了这样一个问题：创建了一个FormPanel，在这个Panel中需要以Tab的方式展现数据，每个TabPanel中包含一个FormPanel的字段。但是我发现在每次FormPaneel中的数据load完成之后，只有处于Active状态的Tab中的数据存在，而Active其他Tab后，数据都看不见，所以我怀疑是BasicForm装载数据的时候，这些处于非active状态的panel并没有创建出来。解决办法：在FormPanel中的Form装载完数据后，把这些出具备份到这个BasicForm中的一个属性中，比如result_data。之后在TabPanel的这些Field渲染的时候，判断result_data是否存在，如果存在，则把对应的字段值填进去。示例代码：//监听basicForm中的数据加载完成new </summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/3288140385579530335/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/exttabpanel.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/3288140385579530335'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/3288140385579530335'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/exttabpanel.html' title='Ext.TabPanel遇到的问题与解决方法'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-6673169752404561801</id><published>2009-04-16T09:01:00.000-07:00</published><updated>2009-05-03T00:44:45.031-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DAO'/><category scheme='http://www.blogger.com/atom/ns#' term='SpringSide'/><category scheme='http://www.blogger.com/atom/ns#' term='Spring'/><category scheme='http://www.blogger.com/atom/ns#' term='Hibernate'/><title type='text'>SpringSide3 个人理解之DAO&amp;Service篇</title><summary type='text'>今天看了SpringSide3的例子，并且仔细看了源码。发现其实SpringSide3与我想的差异比较大，SpringSide3其实并不是一个code genaretor，而是一种架构风格，他是倡导的一种构建应用的风格。在充分利用已有框架和Java特性的基础之上快速建立应用的风格。废话不多说，列举一些例子，这些都是从demo中得到的感触。
拒绝无谓的过多的不必要的繁琐的没有意义的Interface。不否认有些时候需要接口，特别是提供API的时候，可是在JAVA语言中，接口更多的是概念级的东西。它固然有非常多的有点，可是在项目中无谓的无条件的遵循接口-&gt;实现的设计准则，有点本末倒置的感觉。其实很多时候用父类-&gt;子类的模式可能更加方便一点。补充一点：关于接口和继承的关系：“接口是调用方要求的结果，而继承则是实现方思考的产物。” 
Sping中有HibernateTemplate。</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/6673169752404561801/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/springside3-dao.html#comment-form' title='1 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/6673169752404561801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/6673169752404561801'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/springside3-dao.html' title='SpringSide3 个人理解之DAO&amp;amp;Service篇'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-857344023737829389</id><published>2009-04-16T04:54:00.000-07:00</published><updated>2009-04-16T04:54:01.113-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><title type='text'>windows命令行大全</title><summary type='text'>
命令名
ASSOC 显示或修改文件扩展名关联。
AT 计划在计算机上运行的命令和程序。
ATTRIB 显示或更改文件属性。
BREAK 设置或清除扩展式 CTRL+C 检查。
CACLS 显示或修改文件的访问控制列表(ACLs)。
CALL 从另一个批处理程序调用这一个。
CD 显示当前目录的名称或将其更改。
CHCP 显示或设置活动代码页数。
CHDIR 显示当前目录的名称或将其更改。
CHKDSK 检查磁盘并显示状态报告。
CHKNTFS 显示或修改启动时间磁盘检查。
CLS 清除屏幕。
CMD 打开另一个 Windows 命令解释程序窗口。
COLOR 设置默认控制台前景和背景颜色。
COMP 比较两个或两套文件的内容。
COMPACT 显示或更改 NTFS 分区上文件的压缩。
CONVERT 将 FAT 卷转换成 NTFS。您不能转换
当前驱动器。
COPY </summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/857344023737829389/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/windows.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/857344023737829389'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/857344023737829389'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/windows.html' title='windows命令行大全'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-7461456052164422793</id><published>2009-04-16T04:51:00.001-07:00</published><updated>2009-04-21T00:17:25.677-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Eclipse'/><title type='text'>Eclipse快捷键</title><summary type='text'>Ctrl+1 快速修复(最经典的快捷键,就不用多说了)Ctrl+D: 删除当前行Ctrl+Alt+↓ 复制当前行到下一行(复制增加)Ctrl+Alt+↑ 复制当前行到上一行(复制增加)Alt+↓ 当前行和下面一行交互位置(特别实用,可以省去先剪切,再粘贴了)Alt+↑ 当前行和上面一行交互位置(同上)Alt+← 前一个编辑的页面Alt+→ 下一个编辑的页面(当然是针对上面那条来说了)Alt+Enter 显示当前选择资源(工程,or 文件 or文件)的属性Shift+Enter 在当前行的下一行插入空行(这时鼠标可以在当前行的任一位置,不一定是最后)Shift+Ctrl+Enter 在当前行插入空行(原理同上条)Ctrl+Q 定位到最后编辑的地方Ctrl+L 定位在某行 (对于程序超过100的人就有福音了)Ctrl+M 最大化当前的Edit或View (再按则反之)Ctrl+/ 注释当前行</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/7461456052164422793/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/eclipse.html#comment-form' title='1 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/7461456052164422793'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/7461456052164422793'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/eclipse.html' title='Eclipse快捷键'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-5835385849140997133</id><published>2009-04-15T23:41:00.000-07:00</published><updated>2009-04-15T23:51:52.709-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ExtJs'/><category scheme='http://www.blogger.com/atom/ns#' term='BasicForm'/><category scheme='http://www.blogger.com/atom/ns#' term='FormPanel'/><title type='text'>如何获取Ext.form.FormPanel的load和submit事件</title><summary type='text'>在使用ExtJs.form.FormPanel的过程中，有很多时候需要获得装载数据完成时的事件，那么一般这种事件怎么获得呢？请看如下示例：Ext.getCmp('tabs').getForm().on("actioncomplete",function(from,action){if(action.type=="submit"){console.log(action.result)}})其中Ext.getCmp('tabs')是假设有一个id=‘tabs’的FormPanel。而action.type就是指事件（action）的类型。目前有两种分别为'submit'和'load'。</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/5835385849140997133/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/extformformpanel.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/5835385849140997133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/5835385849140997133'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/extformformpanel.html' title='如何获取Ext.form.FormPanel的load和submit事件'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-7484264447957073483</id><published>2009-04-15T23:19:00.000-07:00</published><updated>2009-04-15T23:24:24.002-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='blogspot'/><title type='text'>Blogspot 代码引用</title><summary type='text'>在Html的CSS中加入如下CODE {border-bottom: 1px solid #AAAAAA;border-right: 1px solid #AAAAAA;display:block;padding: 10px 10px;padding-top: 20px;margin: 10px 0 0 10px;background:#F5F5F5;font-family:"Courier New", Courier, mono;-moz-border-radius: 15px;}CODE:hover {background-color:#F7FEDC;}虽然不能预览，但是用于可以引用代码了，太棒了。</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/7484264447957073483/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/blogspot.html#comment-form' title='5 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/7484264447957073483'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/7484264447957073483'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/blogspot.html' title='Blogspot 代码引用'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-9037358068949145011</id><published>2009-04-15T21:51:00.000-07:00</published><updated>2009-04-15T22:20:28.472-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='book'/><title type='text'>今年希望看完的书</title><summary type='text'>正在看的书：Programming RubyThe Ruby WayPOJO In ActionHibernate In ActionJava网络编程重构修改代码的艺术希望有时间去看的书（书都买了）Java优化编程(第2版)Flex3RIA开发详解测试驱动开发需要看第二遍的好书Jdk6学习笔记Head First 设计模式css实战手册Agile Web Development with RailsPro Spring</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/9037358068949145011/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/programming-ruby.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/9037358068949145011'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/9037358068949145011'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/programming-ruby.html' title='今年希望看完的书'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-7991422457161072934</id><published>2009-04-15T18:31:00.000-07:00</published><updated>2009-04-21T00:17:51.176-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ruby'/><category scheme='http://www.blogger.com/atom/ns#' term='Eclipse'/><category scheme='http://www.blogger.com/atom/ns#' term='NetBeans'/><title type='text'>Eclipse3.4的Ruby支持</title><summary type='text'>再Eclipse3.4之前的版本，我们可以用Aptana来编辑Ruby，但是升级到Eclipse3.4以后，还没有找到一个合适的plugin来写Ruby代码。今天再Eclipse Plugin Center终于找到了一个不错的Ruby Editor，但是目前还不支持Rails。Eclipse Update site为：http://download.eclipse.org/technology/dltk/updates/这个工具距离NetBeans还有不小的差距，但是终于也算有的用了，单元Aptana能快点更新。</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/7991422457161072934/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/eclipse34ruby.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/7991422457161072934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/7991422457161072934'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/eclipse34ruby.html' title='Eclipse3.4的Ruby支持'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-8425867616755050214</id><published>2009-04-15T08:45:00.001-07:00</published><updated>2009-04-15T08:59:26.702-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySql'/><title type='text'>MySql 主键自动增长</title><summary type='text'>方法一：id int auto_increment not null,name varchar(100) null,primary key(id)方法二：ID integer primary key auto_increment not null,name varchar(100) null</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/8425867616755050214/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/mysql.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/8425867616755050214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/8425867616755050214'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/mysql.html' title='MySql 主键自动增长'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-4533183929677247721</id><published>2009-04-15T06:05:00.000-07:00</published><updated>2009-04-15T21:30:32.748-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='nexus'/><category scheme='http://www.blogger.com/atom/ns#' term='SpringSide'/><category scheme='http://www.blogger.com/atom/ns#' term='maven'/><title type='text'>SpringSide3第一步</title><summary type='text'>因为SS3是建立再maven之上的，为了减少以后的麻烦，先建一个nexus私服。搭建nexus，下载nexus，我是直接再springside3 all in one 中的\tools\maven文件夹找到的，之后依次运行\tools\maven\nexus-1.2.1\nexus-webapp-1.2.1\bin\jsw\windows-x86-32目录下的InstallNexus.bat和StartNexus.bat。之后启动Tomcat。之后运行bin\quickstart.bat。之后去看会儿电视什么的。之后看看C盘C:\Documents and Settings\{UserName}\.m2目录下的repository就建好了。这时候的sample是运行再Derby上的，如果要运行再Mysql上，首先要改applicationContext.xml和</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/4533183929677247721/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/springside3.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/4533183929677247721'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/4533183929677247721'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/springside3.html' title='SpringSide3第一步'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-3779494964733411125</id><published>2009-04-15T01:18:00.000-07:00</published><updated>2009-04-15T02:11:34.842-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ExtJs'/><title type='text'>Ext.Window 问题总结</title><summary type='text'>Ext.Window 是Ext中最漂亮的widgets之一。但是在实际开发中问题多多。关于隐藏：问题：作为一个重量级widgets，为了减少资源的消耗，每当关闭时，window默认为隐藏模式，可是每次你再打开这个window的时候，会发现window中的数据（我的习惯是在window中嵌套formPanel，我所指的数据是formPanel中的数据）可能并没有变，或者说更新。其中大部分原因，要么是formPanel没有load数据，要么是window初始化的时候把某个数据传给了某个监听器或者handler，而再次打开window的时候，数据并没有传过去。办法1：这种办法就是不用隐藏，每次都打开，在关闭window的监听器中，或者关闭window的时候distroy这个对象，记住在这之前一定要把这个window中引用到的其他对象也要distroy掉，之后在把它们的引用设为null。</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/3779494964733411125/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/extwindow.html#comment-form' title='1 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/3779494964733411125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/3779494964733411125'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/extwindow.html' title='Ext.Window 问题总结'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6786258627405686300.post-2910043837803354595</id><published>2009-04-15T01:07:00.000-07:00</published><updated>2009-04-15T21:29:34.851-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SpringSide'/><title type='text'>今天开始关注SpringSide</title><summary type='text'>昨天晚上开始研究SS3，发现要想玩转SS3，首先要先会用maven(烦)，下一步是将sample装进IDE，再看看sample中的code，研究一下为什么那么多人都说它好。之后利用SS3\bin中的tools生成一个项目，自己玩玩。最终的想法是利用JRuby开发Java项目。Ruby的语法优势+Java的社区优势=无敌。晚上推出第一部分内容。</summary><link rel='replies' type='application/atom+xml' href='http://wxblogweb.blogspot.com/feeds/2910043837803354595/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/springside.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/2910043837803354595'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6786258627405686300/posts/default/2910043837803354595'/><link rel='alternate' type='text/html' href='http://wxblogweb.blogspot.com/2009/04/springside.html' title='今天开始关注SpringSide'/><author><name>王新</name><uri>http://www.blogger.com/profile/02263331737496200754</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_u8qM__SjJwc/Sfcm9KdGWzI/AAAAAAAAAb4/lCIZIw55yuk/s1600-R/AIbEiAIAAABDCJqyx435_-ymZCILdmNhcmRfcGhvdG8qKDdlMDEzYTU5MDRkZWUxYWE4MTQ0NjdjY2UzOGNhYjMzYWU5MWE0N2QwAXnPmmRY6YQ22Ax5LLl0HCPXhRs9'/></author><thr:total>0</thr:total></entry></feed>
