SlideShare una empresa de Scribd logo
1 de 17
MyFaces Extensions-Validator
Advanced metadata based JSF validation

                               Part I




            DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator
11.11.08                                                              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
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
„Hello MyFaces ExtVal“ Showcase




           DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator
11.11.08                                                             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
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
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
Annotation Example - 1.1




           DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator
11.11.08                                                             9
Annotation Example - 1.2




           DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator
11.11.08                                                             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
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
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
Showcase




           Trinidad Support
           (client-side validation)



                       live demonstration


            DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator
11.11.08                                                              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
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
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

Más contenido relacionado

La actualidad más candente

Haj 4328-java ee 7 overview
Haj 4328-java ee 7 overviewHaj 4328-java ee 7 overview
Haj 4328-java ee 7 overviewKevin Sutter
 
Testing Web Apps with Spring Framework 3.2
Testing Web Apps with Spring Framework 3.2Testing Web Apps with Spring Framework 3.2
Testing Web Apps with Spring Framework 3.2Rossen Stoyanchev
 
Declarative input validation with JSR 303 and ExtVal
Declarative input validation with JSR 303 and ExtVal Declarative input validation with JSR 303 and ExtVal
Declarative input validation with JSR 303 and ExtVal Bart Kummel
 
Security Аrchitecture of Тhe Java Platform
Security Аrchitecture of Тhe Java PlatformSecurity Аrchitecture of Тhe Java Platform
Security Аrchitecture of Тhe Java PlatformMartin Toshev
 
Oracle Database 12c Attack Vectors
Oracle Database 12c Attack VectorsOracle Database 12c Attack Vectors
Oracle Database 12c Attack VectorsMartin Toshev
 
SpringOne 2GX 2013 - Spring Testing
SpringOne 2GX 2013 - Spring TestingSpringOne 2GX 2013 - Spring Testing
SpringOne 2GX 2013 - Spring TestingMattias Severson
 
Security Architecture of the Java platform
Security Architecture of the Java platformSecurity Architecture of the Java platform
Security Architecture of the Java platformMartin Toshev
 

La actualidad más candente (8)

Java EE 6
Java EE 6Java EE 6
Java EE 6
 
Haj 4328-java ee 7 overview
Haj 4328-java ee 7 overviewHaj 4328-java ee 7 overview
Haj 4328-java ee 7 overview
 
Testing Web Apps with Spring Framework 3.2
Testing Web Apps with Spring Framework 3.2Testing Web Apps with Spring Framework 3.2
Testing Web Apps with Spring Framework 3.2
 
Declarative input validation with JSR 303 and ExtVal
Declarative input validation with JSR 303 and ExtVal Declarative input validation with JSR 303 and ExtVal
Declarative input validation with JSR 303 and ExtVal
 
Security Аrchitecture of Тhe Java Platform
Security Аrchitecture of Тhe Java PlatformSecurity Аrchitecture of Тhe Java Platform
Security Аrchitecture of Тhe Java Platform
 
Oracle Database 12c Attack Vectors
Oracle Database 12c Attack VectorsOracle Database 12c Attack Vectors
Oracle Database 12c Attack Vectors
 
SpringOne 2GX 2013 - Spring Testing
SpringOne 2GX 2013 - Spring TestingSpringOne 2GX 2013 - Spring Testing
SpringOne 2GX 2013 - Spring Testing
 
Security Architecture of the Java platform
Security Architecture of the Java platformSecurity Architecture of the Java platform
Security Architecture of the Java platform
 

Destacado

Introduction to ZendX jQuery
Introduction to ZendX jQueryIntroduction to ZendX jQuery
Introduction to ZendX jQuerydennisdc
 
Dynamic Adaptive Streaming over HTTP: From Content Creation to Consumption
Dynamic Adaptive Streaming over HTTP: From Content Creation to ConsumptionDynamic Adaptive Streaming over HTTP: From Content Creation to Consumption
Dynamic Adaptive Streaming over HTTP: From Content Creation to ConsumptionAlpen-Adria-Universität
 
Intro to Classification: Logistic Regression & SVM
Intro to Classification: Logistic Regression & SVMIntro to Classification: Logistic Regression & SVM
Intro to Classification: Logistic Regression & SVMNYC Predictive Analytics
 
Dynamic Adaptive Streaming over HTTP (DASH)
Dynamic Adaptive Streaming over HTTP (DASH)Dynamic Adaptive Streaming over HTTP (DASH)
Dynamic Adaptive Streaming over HTTP (DASH)Alpen-Adria-Universität
 

Destacado (6)

Introduction to ZendX jQuery
Introduction to ZendX jQueryIntroduction to ZendX jQuery
Introduction to ZendX jQuery
 
6 Block Modeling
6 Block Modeling6 Block Modeling
6 Block Modeling
 
3 Centrality
3 Centrality3 Centrality
3 Centrality
 
Dynamic Adaptive Streaming over HTTP: From Content Creation to Consumption
Dynamic Adaptive Streaming over HTTP: From Content Creation to ConsumptionDynamic Adaptive Streaming over HTTP: From Content Creation to Consumption
Dynamic Adaptive Streaming over HTTP: From Content Creation to Consumption
 
Intro to Classification: Logistic Regression & SVM
Intro to Classification: Logistic Regression & SVMIntro to Classification: Logistic Regression & SVM
Intro to Classification: Logistic Regression & SVM
 
Dynamic Adaptive Streaming over HTTP (DASH)
Dynamic Adaptive Streaming over HTTP (DASH)Dynamic Adaptive Streaming over HTTP (DASH)
Dynamic Adaptive Streaming over HTTP (DASH)
 

Similar a MyFaces Extensions Validator Part 1 of 3

Forti analyzer vm-v-mware-install-guide-licencia
Forti analyzer vm-v-mware-install-guide-licenciaForti analyzer vm-v-mware-install-guide-licencia
Forti analyzer vm-v-mware-install-guide-licenciaMarco LANDA
 
Thinapp47 packageini reference
Thinapp47 packageini referenceThinapp47 packageini reference
Thinapp47 packageini referenceFirman Indrianto
 
Using Apache Spark for Predicting Degrading and Failing Parts in Aviation
Using Apache Spark for Predicting Degrading and Failing Parts in AviationUsing Apache Spark for Predicting Degrading and Failing Parts in Aviation
Using Apache Spark for Predicting Degrading and Failing Parts in AviationDatabricks
 
FIWARE Wednesday Webinars - How to Debug IoT Agents
FIWARE Wednesday Webinars - How to Debug IoT AgentsFIWARE Wednesday Webinars - How to Debug IoT Agents
FIWARE Wednesday Webinars - How to Debug IoT AgentsFIWARE
 
LF_OVS_17_IPSEC and OVS DPDK
LF_OVS_17_IPSEC and OVS DPDKLF_OVS_17_IPSEC and OVS DPDK
LF_OVS_17_IPSEC and OVS DPDKLF_OpenvSwitch
 
Website Testing Practices
Website Testing PracticesWebsite Testing Practices
Website Testing Practicesdeseomar
 
Introduction to FIWARE Cloud & Context Broker
Introduction to FIWARE Cloud & Context BrokerIntroduction to FIWARE Cloud & Context Broker
Introduction to FIWARE Cloud & Context BrokerFermin Galan
 
Introduction to the DAOS Scale-out object store (HLRS Workshop, April 2017)
Introduction to the DAOS Scale-out object store (HLRS Workshop, April 2017)Introduction to the DAOS Scale-out object store (HLRS Workshop, April 2017)
Introduction to the DAOS Scale-out object store (HLRS Workshop, April 2017)Johann Lombardi
 
FI-Ware Cloud SDC Presentation
FI-Ware Cloud SDC PresentationFI-Ware Cloud SDC Presentation
FI-Ware Cloud SDC PresentationJavier Cerviño
 
Legacy Renewal of Central Framework in the Enterprise
Legacy Renewal of Central Framework in the EnterpriseLegacy Renewal of Central Framework in the Enterprise
Legacy Renewal of Central Framework in the EnterpriseAnatole Tresch
 
Zepplin_Pronko_Magento_Festival Hall 1_Final
Zepplin_Pronko_Magento_Festival Hall 1_FinalZepplin_Pronko_Magento_Festival Hall 1_Final
Zepplin_Pronko_Magento_Festival Hall 1_FinalMax Pronko
 
Fusion Applications Administration Overview
Fusion Applications Administration OverviewFusion Applications Administration Overview
Fusion Applications Administration OverviewVihangAstik
 
BOMs Away - Why everyone needs a BOM (AppSec Cali 2019)
BOMs Away - Why everyone needs a BOM (AppSec Cali 2019)BOMs Away - Why everyone needs a BOM (AppSec Cali 2019)
BOMs Away - Why everyone needs a BOM (AppSec Cali 2019)Steve Springett
 
The New oVirt Extension API: Taking AAA (Authentication Authorization Account...
The New oVirt Extension API: Taking AAA (Authentication Authorization Account...The New oVirt Extension API: Taking AAA (Authentication Authorization Account...
The New oVirt Extension API: Taking AAA (Authentication Authorization Account...Martin Peřina
 
Sonar - the ring to rule them all
Sonar - the ring to rule them allSonar - the ring to rule them all
Sonar - the ring to rule them allSebastian Marek
 

Similar a MyFaces Extensions Validator Part 1 of 3 (20)

Forti analyzer vm-v-mware-install-guide-licencia
Forti analyzer vm-v-mware-install-guide-licenciaForti analyzer vm-v-mware-install-guide-licencia
Forti analyzer vm-v-mware-install-guide-licencia
 
How to debug IoT Agents
How to debug IoT AgentsHow to debug IoT Agents
How to debug IoT Agents
 
Thinapp47 packageini reference
Thinapp47 packageini referenceThinapp47 packageini reference
Thinapp47 packageini reference
 
Improving qa on php projects
Improving qa on php projectsImproving qa on php projects
Improving qa on php projects
 
Using Apache Spark for Predicting Degrading and Failing Parts in Aviation
Using Apache Spark for Predicting Degrading and Failing Parts in AviationUsing Apache Spark for Predicting Degrading and Failing Parts in Aviation
Using Apache Spark for Predicting Degrading and Failing Parts in Aviation
 
SDC presentation (FIWARE Cloud GEi)
SDC presentation (FIWARE Cloud GEi)SDC presentation (FIWARE Cloud GEi)
SDC presentation (FIWARE Cloud GEi)
 
FIWARE Wednesday Webinars - How to Debug IoT Agents
FIWARE Wednesday Webinars - How to Debug IoT AgentsFIWARE Wednesday Webinars - How to Debug IoT Agents
FIWARE Wednesday Webinars - How to Debug IoT Agents
 
LF_OVS_17_IPSEC and OVS DPDK
LF_OVS_17_IPSEC and OVS DPDKLF_OVS_17_IPSEC and OVS DPDK
LF_OVS_17_IPSEC and OVS DPDK
 
Website Testing Practices
Website Testing PracticesWebsite Testing Practices
Website Testing Practices
 
Introduction to FIWARE Cloud & Context Broker
Introduction to FIWARE Cloud & Context BrokerIntroduction to FIWARE Cloud & Context Broker
Introduction to FIWARE Cloud & Context Broker
 
Introduction to the DAOS Scale-out object store (HLRS Workshop, April 2017)
Introduction to the DAOS Scale-out object store (HLRS Workshop, April 2017)Introduction to the DAOS Scale-out object store (HLRS Workshop, April 2017)
Introduction to the DAOS Scale-out object store (HLRS Workshop, April 2017)
 
Enabling NFV features in kubernetes
Enabling NFV features in kubernetesEnabling NFV features in kubernetes
Enabling NFV features in kubernetes
 
FI-Ware Cloud SDC Presentation
FI-Ware Cloud SDC PresentationFI-Ware Cloud SDC Presentation
FI-Ware Cloud SDC Presentation
 
Legacy Renewal of Central Framework in the Enterprise
Legacy Renewal of Central Framework in the EnterpriseLegacy Renewal of Central Framework in the Enterprise
Legacy Renewal of Central Framework in the Enterprise
 
Zepplin_Pronko_Magento_Festival Hall 1_Final
Zepplin_Pronko_Magento_Festival Hall 1_FinalZepplin_Pronko_Magento_Festival Hall 1_Final
Zepplin_Pronko_Magento_Festival Hall 1_Final
 
Fusion Applications Administration Overview
Fusion Applications Administration OverviewFusion Applications Administration Overview
Fusion Applications Administration Overview
 
BOMs Away - Why everyone needs a BOM (AppSec Cali 2019)
BOMs Away - Why everyone needs a BOM (AppSec Cali 2019)BOMs Away - Why everyone needs a BOM (AppSec Cali 2019)
BOMs Away - Why everyone needs a BOM (AppSec Cali 2019)
 
Introduction to vSphere logs
Introduction to vSphere logsIntroduction to vSphere logs
Introduction to vSphere logs
 
The New oVirt Extension API: Taking AAA (Authentication Authorization Account...
The New oVirt Extension API: Taking AAA (Authentication Authorization Account...The New oVirt Extension API: Taking AAA (Authentication Authorization Account...
The New oVirt Extension API: Taking AAA (Authentication Authorization Account...
 
Sonar - the ring to rule them all
Sonar - the ring to rule them allSonar - the ring to rule them all
Sonar - the ring to rule them all
 

Último

Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 

Último (20)

Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 

MyFaces Extensions Validator Part 1 of 3

  • 1.
  • 2. MyFaces Extensions-Validator Advanced metadata based JSF validation Part I DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator 11.11.08 2
  • 3. 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
  • 4. 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
  • 5. „Hello MyFaces ExtVal“ Showcase DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator 11.11.08 5
  • 6. 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
  • 7. 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
  • 8. 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
  • 9. Annotation Example - 1.1 DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator 11.11.08 9
  • 10. Annotation Example - 1.2 DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator 11.11.08 10
  • 11. 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
  • 12. 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
  • 13. 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
  • 14. Showcase Trinidad Support (client-side validation) live demonstration DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator 11.11.08 14
  • 15. 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
  • 16. 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
  • 17. 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