Albert Guo
<ul><li>Scenario </li></ul><ul><li>Prerequisites </li></ul><ul><li>Implementation Process </li></ul><ul><ul><li>Config web...
Prerequisites <ul><li>Jar files for presentation tier </li></ul><ul><ul><li>Trinidad-api-1.2.10.jar </li></ul></ul><ul><ul...
 
 
<ul><li><?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?> </li></ul><ul><li><web-app version=&quot;2.5&quot; xmln...
<ul><li><!-- Trinidad --> </li></ul><ul><li><context-param> </li></ul><ul><li><param-name>org.apache.myfaces.trinidad.ALTE...
<ul><li><servlet> </li></ul><ul><li><servlet-name>resources</servlet-name> </li></ul><ul><li><servlet-class>org.apache.myf...
 
<ul><li><?xml version='1.0' encoding='UTF-8'?> </li></ul><ul><li><faces-config version=&quot;1.2&quot;  xmlns=&quot;http:/...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Upcoming SlideShare
Loading in...5
×

Apache Trinidad + Facelets + JPA + JasperReport.ppt

4,633

Published on

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
4,633
On Slideshare
0
From Embeds
0
Number of Embeds
14
Actions
Shares
0
Downloads
155
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Apache Trinidad + Facelets + JPA + JasperReport.ppt

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

    Clipping is a handy way to collect important slides you want to go back to later.

×