随笔 - 55  文章 - 187  trackbacks - 0
<2008年1月>
303112345
6789101112
13141516171819
20212223242526
272829303112
3456789

常用链接

留言簿(12)

随笔分类

随笔档案

groovy

搜索

  •  

最新评论

阅读排行榜

评论排行榜

我用beyond compare比较了一下myeclipse 6.0.1 GA添加了jsf capabilities之后工程发生的变化点。如下(粗体为变化):
1、修改了.project文件
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
    
<name>jsfstudy</name>
    
<comment></comment>
    
<projects>
    
</projects>
    
<buildSpec>
        
<buildCommand>
            
<name>com.genuitec.eclipse.j2eedt.core.WebClasspathBuilder</name>
            
<arguments>
            
</arguments>
        
</buildCommand>
        
<buildCommand>
            
<name>org.eclipse.jdt.core.javabuilder</name>
            
<arguments>
            
</arguments>
        
</buildCommand>
        
<buildCommand>
            
<name>com.genuitec.eclipse.j2eedt.core.J2EEProjectValidator</name>
            
<arguments>
            
</arguments>
        
</buildCommand>
        
<buildCommand>
            
<name>com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator</name>
            
<arguments>
            
</arguments>
        
</buildCommand>
        
<buildCommand>
            
<name>org.eclipse.wst.validation.validationbuilder</name>
            
<arguments>
            
</arguments>
        
</buildCommand>
    
</buildSpec>
    
<natures>
        
<nature>com.genuitec.eclipse.jsf.jsfnature</nature>
        
<nature>com.genuitec.eclipse.j2eedt.core.webnature</nature>
        
<nature>org.eclipse.jdt.core.javanature</nature>
    
</natures>
</projectDescription>

2、修改了.classpath文件
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
    
<classpathentry kind="src" path="src"/>
    
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
    
<classpathentry kind="con" path="com.genuitec.eclipse.j2eedt.core.J2EE14_CONTAINER"/>
    
<classpathentry kind="lib" path="lib/richfaces-api-3.1.3.GA.jar"/>
    
<classpathentry kind="lib" path="lib/richfaces-impl-3.1.3.GA.jar"/>
    
<classpathentry kind="lib" path="lib/richfaces-ui-3.1.3.GA.jar"/>
    
<classpathentry kind="con" path="melibrary.com.genuitec.eclipse.jsf.MYECLIPSE_JSF_RI_1_1_01"/>
    
<classpathentry kind="output" path="WebRoot/WEB-INF/classes"/>
</classpath>

3、WEB-INF下添加了4个文件
.faces-config.mex
faces-config.xml
html_basic.tld
jsf_core.tld

4、修改了web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee   http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
  
<context-param>
    
<param-name>org.richfaces.SKIN</param-name>
    
<param-value>blueSky</param-value>
  
</context-param>
  
<context-param>
    
<param-name>javax.faces.CONFIG_FILES</param-name>
    
<param-value>/WEB-INF/faces-config.xml</param-value>
  
</context-param>
  
<filter>
    
<display-name>RichFaces Filter</display-name>
    
<filter-name>richfaces</filter-name>
    
<filter-class>org.ajax4jsf.Filter</filter-class>
  
</filter>
  
<filter-mapping>
    
<filter-name>richfaces</filter-name>
    
<servlet-name>Faces Servlet</servlet-name>
    
<dispatcher>REQUEST</dispatcher>
    
<dispatcher>FORWARD</dispatcher>
    
<dispatcher>INCLUDE</dispatcher>
  
</filter-mapping>
  
<servlet>
    
<servlet-name>Faces Servlet</servlet-name>
    
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    
<load-on-startup>0</load-on-startup>
  
</servlet>
  
<servlet-mapping>
    
<servlet-name>Faces Servlet</servlet-name>
    
<url-pattern>*.faces</url-pattern>
  
</servlet-mapping>
  
<welcome-file-list>
    
<welcome-file>index.jsp</welcome-file>
  
</welcome-file-list>
</web-app>

posted on 2008-01-16 16:23 大卫 阅读(2045) 评论(0)  编辑  收藏 所属分类: Java

只有注册用户登录后才能发表评论。


网站导航: