apache trinidad + facelets + jpa + jasperreport.ppt

Download Apache Trinidad + Facelets + JPA + JasperReport.ppt

Post on 17-May-2015

4.618 views

Category:

Technology

4 download

Embed Size (px)

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.

  • com.sun.faces.verifyObjects
  • true
  • com.sun.faces.validateXml
  • true
  • javax.faces.DEFAULT_SUFFIX
  • .xhtml
  • facelets.DEVELOPMENT
  • false
  • facelets.SKIP_COMMENTS
  • true

8.

  • org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER
  • com.sun.facelets.FaceletViewHandler
  • javax.faces.STATE_SAVING_METHOD
  • client
  • org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE
  • false
  • org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION
  • false
  • org.apache.myfaces.trinidad.CHANGE_PERSISTENCE
  • session
  • trinidad
  • org.apache.myfaces.trinidad.webapp.TrinidadFilter
  • trinidad
  • faces

9.

  • resources
  • org.apache.myfaces.trinidad.webapp.ResourceServlet
  • resources
  • /adf/*
  • Faces Servlet
  • javax.faces.webapp.FacesServlet
  • 1
  • Faces Servlet
  • *.jsf
  • forward.jsp

10. 11.

  • xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  • xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
  • org.apache.myfaces.trinidad.core

12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28.