• Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
4,571
On Slideshare
0
From Embeds
0
Number of Embeds
12

Actions

Shares
Downloads
153
Comments
0
Likes
2

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Albert Guo
  • 2.
    • Scenario
    • Prerequisites
    • Implementation Process
      • Config web.xml
      • Config faces-config.xml
      • Create entities and DAOs by MyEclipse
      • Create PDMCarBean
      • Register PDMCarBean to faces-confg.xml
      • Create xhtml page
      • Testing
  • 3.
  • 4. Prerequisites
    • Jar files for presentation tier
      • Trinidad-api-1.2.10.jar
      • Trinidad-impl-1.2.10.jar
      • JSF 1.1/1.2 Support (NetBeans Build-in)
      • JSF 1.2 (NetBeans Build-in)
      • Facelets 1.1.14 (NetBeans Build-in)
    • J ar files for persistence tier
      • TopLink Essentials (NetBeans Build-in)
    • J ar files for jasper report
      • iText-2.1.3.jar
      • iText-rtf-2.1.3.jar
      • iText-rups-2.1.3.jar
      • itextasian-1.5.2.jar
      • jasperreports-3.1.0.jar
      • jasperreports-3.1.0-javaflow.jar
      • jasperreports-3.1.0-applet.jar
    • J ar files for utility classes
      • commons-javaflows.jar
      • commons-beanutils.jar
      • commons-collections.jar
      • commons-digester.jar
      • commons-lang.jar
      • commons-logging.jar
      • joda-time-1.5.2.jar
      • log4j.jar
  • 5.  
  • 6.  
  • 7.
    • <?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>
    • <web-app version=&quot;2.5&quot; xmlns=&quot;http://java.sun.com/xml/ns/javaee&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&quot;>
    • <context-param>
    • <param-name>com.sun.faces.verifyObjects</param-name>
    • <param-value>true</param-value>
    • </context-param>
    • <context-param>
    • <param-name>com.sun.faces.validateXml</param-name>
    • <param-value>true</param-value>
    • </context-param>
    • <context-param>
    • <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
    • <param-value>.xhtml</param-value>
    • </context-param>
    • <context-param>
    • <param-name>facelets.DEVELOPMENT</param-name>
    • <param-value>false</param-value>
    • </context-param>
    • <context-param>
    • <param-name>facelets.SKIP_COMMENTS</param-name>
    • <param-value>true</param-value>
    • </context-param>
  • 8.
    • <!-- Trinidad -->
    • <context-param>
    • <param-name>org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER</param-name>
    • <param-value>com.sun.facelets.FaceletViewHandler</param-value>
    • </context-param>
    • <context-param>
    • <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    • <param-value>client</param-value>
    • </context-param>
    • <context-param>
    • <param-name>org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE</param-name>
    • <param-value>false</param-value>
    • </context-param>
    • <context-param>
    • <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
    • <param-value>false</param-value>
    • </context-param>
    • <context-param>
    • <param-name>org.apache.myfaces.trinidad.CHANGE_PERSISTENCE</param-name>
    • <param-value>session</param-value>
    • </context-param>
    • <!-- Trinidad -->
    • <filter>
    • <filter-name>trinidad</filter-name>
    • <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
    • </filter>
    • <filter-mapping>
    • <filter-name>trinidad</filter-name>
    • <servlet-name>faces</servlet-name>
    • </filter-mapping>
  • 9.
    • <servlet>
    • <servlet-name>resources</servlet-name>
    • <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
    • </servlet>
    • <servlet-mapping>
    • <servlet-name>resources</servlet-name>
    • <url-pattern>/adf/*</url-pattern>
    • </servlet-mapping>
    • <servlet>
    • <servlet-name>Faces Servlet</servlet-name>
    • <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    • <load-on-startup>1</load-on-startup>
    • </servlet>
    • <servlet-mapping>
    • <servlet-name>Faces Servlet</servlet-name>
    • <url-pattern>*.jsf</url-pattern>
    • </servlet-mapping>
    • <welcome-file-list>
    • <welcome-file>forward.jsp</welcome-file>
    • </welcome-file-list>
    • </web-app>
  • 10.  
  • 11.
    • <?xml version='1.0' encoding='UTF-8'?>
    • <faces-config version=&quot;1.2&quot; xmlns=&quot;http://java.sun.com/xml/ns/javaee&quot;
    • xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
    • xsi:schemaLocation=&quot;http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd&quot;>
    • <application>
    • <!-- Use the Trinidad RenderKit -->
    • <default-render-kit-id>
    • org.apache.myfaces.trinidad.core
    • </default-render-kit-id>
    • </application>
    • </faces-config>
  • 12.  
  • 13.  
  • 14.  
  • 15.  
  • 16.  
  • 17.  
  • 18.  
  • 19.  
  • 20.  
  • 21.  
  • 22.  
  • 23.  
  • 24.  
  • 25.  
  • 26.  
  • 27.  
  • 28.