Your SlideShare is downloading. ×
MyFaces CODI v0.9.0 News
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

MyFaces CODI v0.9.0 News

3,737
views

Published on

These slides give a short overview of the 1st release of MyFaces CODI.

These slides give a short overview of the 1st release of MyFaces CODI.

Published in: Technology

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
3,737
On Slideshare
0
From Embeds
0
Number of Embeds
38
Actions
Shares
0
Downloads
1
Comments
0
Likes
1
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. JSF in der Praxis 12.11.2010 1DI (FH) Gerhard Petracek / MyFaces-CODI
  • 2. 12.11.2010 DI (FH) Gerhard Petracek / MyFaces-CODI 2 MyFaces ExtCDI (COntext and Dependency Injection) - Portable CDI Extensions
  • 3. 12.11.2010 DI (FH) Gerhard Petracek / MyFaces-CODI 3 Agenda • The Mission • Why not v1.0.0? • Main focus of v1.0.0 • Modules • Main-Features • Comparison to Seam-Faces • Compatibility
  • 4. 12.11.2010 DI (FH) Gerhard Petracek / MyFaces-CODI 4 The Mission • MyFaces CODI is your best friend for CDI based projects. It’s the missing link for JEE 5 and 6. • Main focus: Toolbox for CDI based JSF 1.2 & 2+ applications
  • 5. 12.11.2010 DI (FH) Gerhard Petracek / MyFaces-CODI 5 Why not v1.0.0? - 1 • CODI is already quite stable • A version < 1.0.0 allows a public review of a released version. • Why not Alpha or Beta? It would be the wrong signal. The only reason for not calling it v1 is the opportunity to benefit from further community feedback!
  • 6. 12.11.2010 DI (FH) Gerhard Petracek / MyFaces-CODI 6 Why not v1.0.0? - 2 • A migration guide will be available, if v1 will introduce changes. • Use it like you would use any other first version of a framework.
  • 7. 12.11.2010 DI (FH) Gerhard Petracek / MyFaces-CODI 7 v0.9.0 - BUT • MyFaces CODI is already used in productive applications. • We don’t plan to remove or completely change any of the existing features – so just use them! • Most parts of MyFaces CODI are type- safe. If you stick with them, it’s easy to detect and fix minor changes.
  • 8. 12.11.2010 DI (FH) Gerhard Petracek / MyFaces-CODI 8 Main focus of v1.0.0 • Bugfixes • Improved documentation & examples (based on community feedback) • ~Minor changes (based on community feedback)
  • 9. 12.11.2010 DI (FH) Gerhard Petracek / MyFaces-CODI 9 Modules • Several parts of CODI are modularized • Existing moduels: • Core • JEE • JSF (1.2 and 2.0) • Bean-Validation • JPA • JSE • Message (fluent message API and advanced I18N) • Scripting
  • 10. 12.11.2010 DI (FH) Gerhard Petracek / MyFaces-CODI 10 Main-Features - 1 • Useful scopes • Window-Scope • Grouped Conversations (type-safe version of MyFaces Orchestra) • View-Access-Scope • Use JSF 2.0 beans like CDI beans (without changes) – supported scopes: • Application Scope • Session Scope • Request Scope • View-Scope
  • 11. 12.11.2010 DI (FH) Gerhard Petracek / MyFaces-CODI 11 Main-Features - 2 • Events • Request-Lifecycle events • Request events • Navigation events (also allows altering the navigation target) • Optional conversation events • View-Controller • @InitView • @PrePageAction • @PreRenderView
  • 12. 12.11.2010 DI (FH) Gerhard Petracek / MyFaces-CODI 12 Main-Features - 3 • Annotations for Jsf Phase-Listeners • Dependency Injection in JSF- • Validators • Converters • Phase-Listeners • Dependency Injection in constraint validators (Bean-Validation) • Injection of Phase-Information
  • 13. 12.11.2010 DI (FH) Gerhard Petracek / MyFaces-CODI 13 Main-Features - 4 • Type-safe navigation • Type-safe view configs • Type-safe view MetaData • Producers for • JSF • Bean-Validation artifacts • @Transactional as alternative to EJBs • Forwarding of JSF System-Events
  • 14. 12.11.2010 DI (FH) Gerhard Petracek / MyFaces-CODI 14 Main-Features - 5 • Fluent message handling (incl. I18N) • Security Interception framework • Integration of JSR-223 (Scripting) • Rich SPI • ~99 % is type-safe • Type-safe and extensible configuration • Fine grained implementation deactivation • Available Add-ons
  • 15. Comparison to Seam-Faces - 1 12.11.2010 DI (FH) Gerhard Petracek / MyFaces-CODI 15
  • 16. Comparison to Seam-Faces - 2 12.11.2010 DI (FH) Gerhard Petracek / MyFaces-CODI 16
  • 17. Comparison to Seam-Faces - 3 12.11.2010 DI (FH) Gerhard Petracek / MyFaces-CODI 17
  • 18. Comparison to Seam-Faces - 4 12.11.2010 DI (FH) Gerhard Petracek / MyFaces-CODI 18 http://people.apache.org/~gpetracek/myfaces/codi/comparison.html Further details are available at: This is a quick comparison – please inform us if you find any error and we will update the website.
  • 19. 12.11.2010 DI (FH) Gerhard Petracek / MyFaces-CODI 19 Compatibility • MyFaces CODI (v0.9.0) was tested with • Apache OpenWebBeans • Apache MyFaces Core 1.2.x and 2.x • Apache MyFaces Subprojects like ExtVal • Apache Tomcat 6+ • JBoss Weld • Sun/Oracle Mojarra • Sun/Oracle Glassfish v3 • Oracle WebLogic • Please report any issue you might faces!
  • 20. 12.11.2010 DI (FH) Gerhard Petracek / MyFaces-CODI 20 Links • https://cwiki.apache.org/confluence/display/EXT CDI • http://issues.apache.org/jira/browse/EXTCDI • http://svn.apache.org/repos/asf/myfaces/extensi ons/cdi/ • http://github.com/apache/myfaces-extcdi • http://bitbucket.org/os890/ • http://people.apache.org/~gpetracek/myfaces/ codi • http://os890.blogspot.com/search/label/codi