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

The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
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
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
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
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetEnjoy Anytime
 
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
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
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
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
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
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 

Recently uploaded (20)

The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
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
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
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
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
 
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?
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
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
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
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
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 

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