Your SlideShare is downloading. ×
0
MyFaces Extensions Validator Part 1 of 3
MyFaces Extensions Validator Part 1 of 3
MyFaces Extensions Validator Part 1 of 3
MyFaces Extensions Validator Part 1 of 3
MyFaces Extensions Validator Part 1 of 3
MyFaces Extensions Validator Part 1 of 3
MyFaces Extensions Validator Part 1 of 3
MyFaces Extensions Validator Part 1 of 3
MyFaces Extensions Validator Part 1 of 3
MyFaces Extensions Validator Part 1 of 3
MyFaces Extensions Validator Part 1 of 3
MyFaces Extensions Validator Part 1 of 3
MyFaces Extensions Validator Part 1 of 3
MyFaces Extensions Validator Part 1 of 3
MyFaces Extensions Validator Part 1 of 3
MyFaces Extensions Validator Part 1 of 3
MyFaces Extensions Validator Part 1 of 3
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 Extensions Validator Part 1 of 3

3,079

Published on

These slides introduce MyFaces Extensions Validator. This first part is a short overview. To get more details about MyFaces Extensions Validator we also offer slides with all important details. Do not …

These slides introduce MyFaces Extensions Validator. This first part is a short overview. To get more details about MyFaces Extensions Validator we also offer slides with all important details. Do not hesitate to contact us!

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

  • Be the first to like this

No Downloads
Views
Total Views
3,079
On Slideshare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
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. MyFaces Extensions-Validator Advanced metadata based JSF validation Part I DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator 11.11.08 2
  2. Agenda • History • Hello MyFaces ExtVal • Basic Feature-Overview • Requirements & Dependencies • Examples • External Extensions • Showcase (Client-Side Validation) DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator 11.11.08 3
  3. History • Q1 2008 Private feasibility study for – Transparent JPA 1.0 based validation (including required fields) – Cross-Component validation via annotations – Pure metadata based validation • Q2 2008 Integration in MyFaces • Q3 2008 Validation platform • 12.12.08 1. Release DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator 11.11.08 4
  4. „Hello MyFaces ExtVal“ Showcase DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator 11.11.08 5
  5. Features - 1 • Transparent JPA 1.0 based validation • Cross-component validation • Zero configuration (configuration is just an alternative) • Client-side validation support – Possible integration of 3rd party mechanisms – MyFaces Trinidad support • Generic support of 3rd party component libraries • Validation exception interception • Component initialization based on annotations DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator 11.11.08 6
  6. Features - 2 • Validation platform (Core is independent of specific annotations and concrete validation) – Custom annotations – Extensible and customizable – Basis for other extensions (e.g.: secure required) • Dependency injection support (including Spring) • and more!!! DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator 11.11.08 7
  7. Requirements & Dependencies • Minimal requirements: – myfaces-extval-core-*.jar – commons-logging*.jar • Optional: – myfaces-extval-property-validation-*.jar – myfaces-extval-trinidad-support-*.jar – myfaces-extval-generic-support-*.jar – myfaces-extval-bean-validation-*.jar (planned) – Custom validation modules DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator 11.11.08 8
  8. Annotation Example - 1.1 DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator 11.11.08 9
  9. Annotation Example - 1.2 DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator 11.11.08 10
  10. Validation of ExtVal Annotations • MyFaces ExtVal jars in the classpath – myfaces-extval-core-*.jar – myfaces-extval-property-validation-*.jar • Using MyFaces ExtVal annotations – Field – Properties DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator 11.11.08 11
  11. Validation of JPA Annotations • MyFaces ExtVal jars in the classpath – myfaces-extval-core-*.jar – myfaces-extval-property-validation-*.jar • Using JPA annotations – Field – Properties DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator 11.11.08 12
  12. Optional External Extensions • Secure required • Annotation based configuration – @StartupListener – @ValidationStrategy – @MessageResolver – @MetaDataTransformer – @ComponentInitializer – @ProcessedInformationRecorder – @RendererInterceptor – and more!!! DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator 11.11.08 13
  13. Showcase Trinidad Support (client-side validation) live demonstration DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator 11.11.08 14
  14. Agenda of Part II • Advanced Annotation Based Validation • Custom Validation Error Messages (Message Resolving) • Validation Exception Interception • Component Initialization Based on Metadata • Name Conventions + Alternatives • Client-Side Validation Based on Annotations • Dependency Injection Support Part 2 and 3 are part of our JSF training! Do not hesitate to contact us at info@irian.at DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator 11.11.08 15
  15. Agenda of Part III • ExtVal Architecture - The Big Picture • Customize Central ExtVal Mechanisms • Customized Conventions • Custom Validation Infrastructure • 3rd Party Component Library Integration • JSR 303 Integration • ExtVal vs. JSR 303 Concepts Part 2 and 3 are part of our JSF training! Do not hesitate to contact us at info@irian.at DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator 11.11.08 16
  16. Links • http://svn.apache.org/repos/asf/myfaces/extensi ons/validator • http://wiki.apache.org/myfaces/Extensions/Valid ator • http://issues.apache.org/jira/browse/EXTVAL • http://os890.blogspot.com • http://code.google.com/p/os890/source/browse/tr unk/java/web/jsf/extval • http://people.apache.org/~gpetracek/myfaces/ex tval DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator 11.11.08 17

×