SlideShare a Scribd company logo
1 of 14
JSF in der Praxis
MyFaces Extensions-Validator
           What’s new in version 1.x.2




               DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator
20.04.09                                                                 2
Agenda
• Improved Trinidad Support
• Cross-validation vs.
  Model-Aware Cross-validation
• Reverse Violation Messages
• MetaDataExtractionInterceptors
• Optional Custom Skip-Validation Markers
• Pluggable Name-Mappers
• Improved EL-Map-Syntax Support
• New Add-ons
            DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator
20.04.09                                                              3
Improved Trinidad Support
• Improved client-side validation
• Support for
      • CoreOutputLabel
      • LabeledFacesMessage




               DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator
20.04.09                                                                 4
Cross-validation vs. Model-
 Aware Cross-validation
• Cross-validation now detects the target
  automatically
• That means:
  If the validation target isn’t available in the
  current request, validation is performed
  with the model value




              DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator
20.04.09                                                                5
Reverse Violation Messages
• Model aware cross-validation might lead to
      • Inconsistent validation messages
      • Missing target to display validation error msg
• Solution: reverse validation message
      • Optional possibility to provide a meaningful
        validation error message
      • Displayed at the source component




                  DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator
20.04.09                                                                    6
MetaDataExtractionInterceptors
• Interceptor which is called after the
  metadata extraction and before the
  validation process
• Possibility to add/change/remove
  constraints of the target property
• Global mechanism
      • ExtValContext.getContext()
         .addMetaDataExtractionInterceptor(...)
      • @MetaDataExtractionInterceptor
           (available at the os890 ExtVal-Add-ons)
                     DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator
20.04.09                                                                       7
Optional Custom Skip-Validation
 Markers
• Default marker for skipable validation
  strategies is: @SkipValidationSupport
• Now it’s possible to provide
      • Custom marker annotation(s)
      • Directly the validation strategy which is skipable
        e.g. via:
           //optional: direct usage of validation strategies
           StaticInMemoryConfiguration config =
              new StaticInMemoryConfiguration();
             config.addMapping(CommonMetaDataKeys.SKIP_VALIDATION,
              RequiredStrategy.class.getName());
           ExtValContext.getContext()
             .addStaticConfiguration(StaticConfigurationNames
               .SKIP_VALIDATION_SUPPORT_CONFIG, config);
                       DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator
20.04.09                                                                         8
Pluggable Name-Mappers
• Name-Mappers were located within
  factories
• Now it’s possible to register
  name-mappers via ExtVal-Java-API – e.g.:
     ExtValContext.getContext().getFactoryFinder()
       .getFactory(FactoryNames.VALIDATION_STRATEGY_FACTORY,
         NameMapperAwareFactory.class))
          .register(metaDataToValidationStrategyNameMapper)

• Convenience methods are available at:
  ExtValUtils
• @NameMapper
     (available at the os890 ExtVal-Add-ons)
                    DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator
20.04.09                                                                      9
Improved EL-Map-Syntax
 Support
• Improved support for nested map el-
  syntax in view of cross-validation
• Bugfixes for ExtVal 1.1.1
  (improved support of custom facelets
  components)




             DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator
20.04.09                                                               10
New Add-ons
• Bypass validation
      • Bypass validation for action methods
      • Bypass validation via Validation-Controller
• Secure action methods




                  DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator
20.04.09                                                                    11
Bypass Validation - Details
• Bypass validation for action methods
  3 example
  usages:



• Bypass validation via Validation-Controller
  2 example
  usages:

             DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator
20.04.09                                                               12
Secure action methods - Details
• Available attributes
      •    viewIds
      •    permittedIf
      •    secureAction
      •    secureOutcome
      •    securityErrorMsgKey
      •    regularLifecycleExecution
• Further details at:
  http://os890.blogspot.com/2009/04/myface
  s-extval-add-on-securedaction.html
                     DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator
20.04.09                                                                       13
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
20.04.09                                                                14

More Related Content

What's hot

Make JSF more type-safe with CDI and MyFaces CODI
Make JSF more type-safe with CDI and MyFaces CODIMake JSF more type-safe with CDI and MyFaces CODI
Make JSF more type-safe with CDI and MyFaces CODIos890
 
Declarative Input Validation with JSR 303 and ExtVal
Declarative Input Validation with JSR 303 and ExtValDeclarative Input Validation with JSR 303 and ExtVal
Declarative Input Validation with JSR 303 and ExtValBart Kummel
 
BenchFlow: A Platform for End-to-end Automation of Performance Testing and An...
BenchFlow: A Platform for End-to-end Automation of Performance Testing and An...BenchFlow: A Platform for End-to-end Automation of Performance Testing and An...
BenchFlow: A Platform for End-to-end Automation of Performance Testing and An...Vincenzo Ferme
 
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
 
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
 
Introduction to java servlet 3.0 api javaone 2009
Introduction to java servlet 3.0 api javaone 2009Introduction to java servlet 3.0 api javaone 2009
Introduction to java servlet 3.0 api javaone 2009JavaEE Trainers
 
Arquillian in a nutshell
Arquillian in a nutshellArquillian in a nutshell
Arquillian in a nutshellBrockhaus Group
 

What's hot (11)

Make JSF more type-safe with CDI and MyFaces CODI
Make JSF more type-safe with CDI and MyFaces CODIMake JSF more type-safe with CDI and MyFaces CODI
Make JSF more type-safe with CDI and MyFaces CODI
 
Declarative Input Validation with JSR 303 and ExtVal
Declarative Input Validation with JSR 303 and ExtValDeclarative Input Validation with JSR 303 and ExtVal
Declarative Input Validation with JSR 303 and ExtVal
 
BenchFlow: A Platform for End-to-end Automation of Performance Testing and An...
BenchFlow: A Platform for End-to-end Automation of Performance Testing and An...BenchFlow: A Platform for End-to-end Automation of Performance Testing and An...
BenchFlow: A Platform for End-to-end Automation of Performance Testing and An...
 
Java EE 6
Java EE 6Java EE 6
Java EE 6
 
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
 
Security Аrchitecture of Тhe Java Platform
Security Аrchitecture of Тhe Java PlatformSecurity Аrchitecture of Тhe Java Platform
Security Аrchitecture of Тhe Java Platform
 
Readme
ReadmeReadme
Readme
 
Oracle Database 12c Attack Vectors
Oracle Database 12c Attack VectorsOracle Database 12c Attack Vectors
Oracle Database 12c Attack Vectors
 
Introduction to java servlet 3.0 api javaone 2009
Introduction to java servlet 3.0 api javaone 2009Introduction to java servlet 3.0 api javaone 2009
Introduction to java servlet 3.0 api javaone 2009
 
Arquillian in a nutshell
Arquillian in a nutshellArquillian in a nutshell
Arquillian in a nutshell
 

Viewers also liked

[Segmedtrab] empresa como parte da sociedade a empresa como parte da sociedade
[Segmedtrab] empresa como parte da sociedade a empresa como parte da sociedade[Segmedtrab] empresa como parte da sociedade a empresa como parte da sociedade
[Segmedtrab] empresa como parte da sociedade a empresa como parte da sociedadeNilton Goulart
 
CURRICULUM VITAE
CURRICULUM VITAECURRICULUM VITAE
CURRICULUM VITAELinhkie
 
강남카지노 인터넷블랙잭
강남카지노 인터넷블랙잭강남카지노 인터넷블랙잭
강남카지노 인터넷블랙잭gjaksjd
 
강원랜드카지노 복권룰
강원랜드카지노 복권룰강원랜드카지노 복권룰
강원랜드카지노 복권룰gjaksjd
 
Такая вот штука для презентаций
Такая вот штука для презентацийТакая вот штука для презентаций
Такая вот штука для презентацийAlexander Polivanov
 
3 Neuropsychology Of Human Behaviour
3 Neuropsychology Of Human Behaviour3 Neuropsychology Of Human Behaviour
3 Neuropsychology Of Human Behaviourkiranba
 
Tympanometry & Clinical Applications
Tympanometry & Clinical Applications Tympanometry & Clinical Applications
Tympanometry & Clinical Applications Dr.Mahmoud Abbas
 

Viewers also liked (14)

Louisa rabanal,
Louisa rabanal, Louisa rabanal,
Louisa rabanal,
 
Persija jakarta
Persija jakartaPersija jakarta
Persija jakarta
 
Persija jakarta
Persija jakartaPersija jakarta
Persija jakarta
 
Taller 1 cálculo integral
Taller 1 cálculo integralTaller 1 cálculo integral
Taller 1 cálculo integral
 
[Segmedtrab] empresa como parte da sociedade a empresa como parte da sociedade
[Segmedtrab] empresa como parte da sociedade a empresa como parte da sociedade[Segmedtrab] empresa como parte da sociedade a empresa como parte da sociedade
[Segmedtrab] empresa como parte da sociedade a empresa como parte da sociedade
 
CURRICULUM VITAE
CURRICULUM VITAECURRICULUM VITAE
CURRICULUM VITAE
 
강남카지노 인터넷블랙잭
강남카지노 인터넷블랙잭강남카지노 인터넷블랙잭
강남카지노 인터넷블랙잭
 
Preparing occupational therapy students to address clients mental health need...
Preparing occupational therapy students to address clients mental health need...Preparing occupational therapy students to address clients mental health need...
Preparing occupational therapy students to address clients mental health need...
 
100474
100474100474
100474
 
강원랜드카지노 복권룰
강원랜드카지노 복권룰강원랜드카지노 복권룰
강원랜드카지노 복권룰
 
Такая вот штука для презентаций
Такая вот штука для презентацийТакая вот штука для презентаций
Такая вот штука для презентаций
 
100490
100490100490
100490
 
3 Neuropsychology Of Human Behaviour
3 Neuropsychology Of Human Behaviour3 Neuropsychology Of Human Behaviour
3 Neuropsychology Of Human Behaviour
 
Tympanometry & Clinical Applications
Tympanometry & Clinical Applications Tympanometry & Clinical Applications
Tympanometry & Clinical Applications
 

Similar to MyFaces Extensions Validator 1.x.2 News

Magento 2 integration tests
Magento 2 integration testsMagento 2 integration tests
Magento 2 integration testsDusan Lukic
 
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
 
Thinapp47 packageini reference
Thinapp47 packageini referenceThinapp47 packageini reference
Thinapp47 packageini referenceFirman Indrianto
 
Testing your application on Google App Engine
Testing your application on Google App EngineTesting your application on Google App Engine
Testing your application on Google App EngineInphina Technologies
 
Testing Your Application On Google App Engine
Testing Your Application On Google App EngineTesting Your Application On Google App Engine
Testing Your Application On Google App EngineIndicThreads
 
The Windows Runtime and the Web
The Windows Runtime and the WebThe Windows Runtime and the Web
The Windows Runtime and the WebJeremy Likness
 
3V0-32.21 Exam Guide by Exams4sure 2022
3V0-32.21 Exam Guide by Exams4sure 20223V0-32.21 Exam Guide by Exams4sure 2022
3V0-32.21 Exam Guide by Exams4sure 2022bronxfugly43
 
Whatever it takes - Fixing SQLIA and XSS in the process
Whatever it takes - Fixing SQLIA and XSS in the processWhatever it takes - Fixing SQLIA and XSS in the process
Whatever it takes - Fixing SQLIA and XSS in the processguest3379bd
 
TechDays 2010 Portugal - Scaling your data tier with app fabric 16x9
TechDays 2010 Portugal - Scaling your data tier with app fabric 16x9TechDays 2010 Portugal - Scaling your data tier with app fabric 16x9
TechDays 2010 Portugal - Scaling your data tier with app fabric 16x9Nuno Godinho
 
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
 
Workshop quality assurance for php projects tek12
Workshop quality assurance for php projects tek12Workshop quality assurance for php projects tek12
Workshop quality assurance for php projects tek12Michelangelo van Dam
 
Building functional Quality Gates with ReportPortal
Building functional Quality Gates with ReportPortalBuilding functional Quality Gates with ReportPortal
Building functional Quality Gates with ReportPortalDmitriy Gumeniuk
 
Resume_sindhu
Resume_sindhu Resume_sindhu
Resume_sindhu Sindhu B
 
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
 
Virtualising Tier 1 Apps
Virtualising Tier 1 AppsVirtualising Tier 1 Apps
Virtualising Tier 1 AppsIwan Rahabok
 
CA Performance Management Deep Dive
CA Performance Management Deep DiveCA Performance Management Deep Dive
CA Performance Management Deep DiveCA Technologies
 
[2019.1] 하이퍼레저 패브릭 v1.3, v1.4 새로운 기능
[2019.1] 하이퍼레저 패브릭 v1.3, v1.4 새로운 기능[2019.1] 하이퍼레저 패브릭 v1.3, v1.4 새로운 기능
[2019.1] 하이퍼레저 패브릭 v1.3, v1.4 새로운 기능Hyperledger Korea User Group
 
multi-mechanize testing certification
multi-mechanize testing certificationmulti-mechanize testing certification
multi-mechanize testing certificationVskills
 

Similar to MyFaces Extensions Validator 1.x.2 News (20)

Magento 2 integration tests
Magento 2 integration testsMagento 2 integration tests
Magento 2 integration tests
 
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
 
Thinapp47 packageini reference
Thinapp47 packageini referenceThinapp47 packageini reference
Thinapp47 packageini reference
 
Testing your application on Google App Engine
Testing your application on Google App EngineTesting your application on Google App Engine
Testing your application on Google App Engine
 
Testing Your Application On Google App Engine
Testing Your Application On Google App EngineTesting Your Application On Google App Engine
Testing Your Application On Google App Engine
 
The Windows Runtime and the Web
The Windows Runtime and the WebThe Windows Runtime and the Web
The Windows Runtime and the Web
 
3V0-32.21 Exam Guide by Exams4sure 2022
3V0-32.21 Exam Guide by Exams4sure 20223V0-32.21 Exam Guide by Exams4sure 2022
3V0-32.21 Exam Guide by Exams4sure 2022
 
Whatever it takes - Fixing SQLIA and XSS in the process
Whatever it takes - Fixing SQLIA and XSS in the processWhatever it takes - Fixing SQLIA and XSS in the process
Whatever it takes - Fixing SQLIA and XSS in the process
 
TechDays 2010 Portugal - Scaling your data tier with app fabric 16x9
TechDays 2010 Portugal - Scaling your data tier with app fabric 16x9TechDays 2010 Portugal - Scaling your data tier with app fabric 16x9
TechDays 2010 Portugal - Scaling your data tier with app fabric 16x9
 
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
 
Workshop quality assurance for php projects tek12
Workshop quality assurance for php projects tek12Workshop quality assurance for php projects tek12
Workshop quality assurance for php projects tek12
 
Building functional Quality Gates with ReportPortal
Building functional Quality Gates with ReportPortalBuilding functional Quality Gates with ReportPortal
Building functional Quality Gates with ReportPortal
 
Resume_sindhu
Resume_sindhu Resume_sindhu
Resume_sindhu
 
Hot sos em12c_metric_extensions
Hot sos em12c_metric_extensionsHot sos em12c_metric_extensions
Hot sos em12c_metric_extensions
 
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
 
Virtualising Tier 1 Apps
Virtualising Tier 1 AppsVirtualising Tier 1 Apps
Virtualising Tier 1 Apps
 
CA Performance Management Deep Dive
CA Performance Management Deep DiveCA Performance Management Deep Dive
CA Performance Management Deep Dive
 
[2019.1] 하이퍼레저 패브릭 v1.3, v1.4 새로운 기능
[2019.1] 하이퍼레저 패브릭 v1.3, v1.4 새로운 기능[2019.1] 하이퍼레저 패브릭 v1.3, v1.4 새로운 기능
[2019.1] 하이퍼레저 패브릭 v1.3, v1.4 새로운 기능
 
multi-mechanize testing certification
multi-mechanize testing certificationmulti-mechanize testing certification
multi-mechanize testing certification
 
FV04_MostoviczT_RAD
FV04_MostoviczT_RADFV04_MostoviczT_RAD
FV04_MostoviczT_RAD
 

Recently uploaded

Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 

Recently uploaded (20)

Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 

MyFaces Extensions Validator 1.x.2 News

  • 1. JSF in der Praxis
  • 2. MyFaces Extensions-Validator What’s new in version 1.x.2 DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator 20.04.09 2
  • 3. Agenda • Improved Trinidad Support • Cross-validation vs. Model-Aware Cross-validation • Reverse Violation Messages • MetaDataExtractionInterceptors • Optional Custom Skip-Validation Markers • Pluggable Name-Mappers • Improved EL-Map-Syntax Support • New Add-ons DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator 20.04.09 3
  • 4. Improved Trinidad Support • Improved client-side validation • Support for • CoreOutputLabel • LabeledFacesMessage DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator 20.04.09 4
  • 5. Cross-validation vs. Model- Aware Cross-validation • Cross-validation now detects the target automatically • That means: If the validation target isn’t available in the current request, validation is performed with the model value DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator 20.04.09 5
  • 6. Reverse Violation Messages • Model aware cross-validation might lead to • Inconsistent validation messages • Missing target to display validation error msg • Solution: reverse validation message • Optional possibility to provide a meaningful validation error message • Displayed at the source component DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator 20.04.09 6
  • 7. MetaDataExtractionInterceptors • Interceptor which is called after the metadata extraction and before the validation process • Possibility to add/change/remove constraints of the target property • Global mechanism • ExtValContext.getContext() .addMetaDataExtractionInterceptor(...) • @MetaDataExtractionInterceptor (available at the os890 ExtVal-Add-ons) DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator 20.04.09 7
  • 8. Optional Custom Skip-Validation Markers • Default marker for skipable validation strategies is: @SkipValidationSupport • Now it’s possible to provide • Custom marker annotation(s) • Directly the validation strategy which is skipable e.g. via: //optional: direct usage of validation strategies StaticInMemoryConfiguration config = new StaticInMemoryConfiguration(); config.addMapping(CommonMetaDataKeys.SKIP_VALIDATION, RequiredStrategy.class.getName()); ExtValContext.getContext() .addStaticConfiguration(StaticConfigurationNames .SKIP_VALIDATION_SUPPORT_CONFIG, config); DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator 20.04.09 8
  • 9. Pluggable Name-Mappers • Name-Mappers were located within factories • Now it’s possible to register name-mappers via ExtVal-Java-API – e.g.: ExtValContext.getContext().getFactoryFinder() .getFactory(FactoryNames.VALIDATION_STRATEGY_FACTORY, NameMapperAwareFactory.class)) .register(metaDataToValidationStrategyNameMapper) • Convenience methods are available at: ExtValUtils • @NameMapper (available at the os890 ExtVal-Add-ons) DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator 20.04.09 9
  • 10. Improved EL-Map-Syntax Support • Improved support for nested map el- syntax in view of cross-validation • Bugfixes for ExtVal 1.1.1 (improved support of custom facelets components) DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator 20.04.09 10
  • 11. New Add-ons • Bypass validation • Bypass validation for action methods • Bypass validation via Validation-Controller • Secure action methods DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator 20.04.09 11
  • 12. Bypass Validation - Details • Bypass validation for action methods 3 example usages: • Bypass validation via Validation-Controller 2 example usages: DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator 20.04.09 12
  • 13. Secure action methods - Details • Available attributes • viewIds • permittedIf • secureAction • secureOutcome • securityErrorMsgKey • regularLifecycleExecution • Further details at: http://os890.blogspot.com/2009/04/myface s-extval-add-on-securedaction.html DI (FH) Gerhard Petracek / MyFaces-Extensions-Validator 20.04.09 13
  • 14. 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 20.04.09 14