MyFaces CODI Demo
Notice: Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
Steps to run the example
Build and start the demo:
mvn clean package tomee:run
This example shows how to improve JSF2/CDI/BV/JPA applications with features provided by Apache MyFaces CODI and ExtVal.
Intro of MyFaces CODI and ExtVal
The Apache MyFaces Extensions CDI project (aka CODI) hosts portable extensions for Contexts and Dependency Injection (CDI - JSR 299). CODI is a toolbox for your CDI application. Like CDI itself CODI is focused on type-safety. It is a modularized and extensible framework. So it's easy to choose the needed parts to facilitate the daily work in your project.
MyFaces Extensions Validator (aka ExtVal) is a JSF centric validation framework which is compatible with JSF 1.x and JSF 2.x. This example shows how it improves the default integration of Bean-Validation (JSR-303) with JSF2 as well as meta-data based cross-field validation.
Apache MyFaces CODI
- Type-safe view-config
- Type-safe (custom) view-meta-data
- Type-safe navigation
- Type-safe (specialized) config
- Type-safe custom project-stage
- Controlling CODI scopes with WindowContext
- Manual conversation handling
- Secured pages (AccessDecisionVoter)
- I18n (fluent API)
- Dependency-Injection for JSR303 (BV) constraint-validators
- Dependency-Injection for JSF phase-listeners