Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
WW 2.1.7
-
None
-
None
-
Webwork2.1.7
-
Patch
Description
ExpressionConfigurationSupport provide a strong and convenient solution for webwork's "webwork.custom.i18n.resources" and "webwork.custom.properties" 's config,
it can replace the default impl DefaultConfiguration, it has three strongpoints rather than the default impl :
- Wildcard Charachter Config Support (Later may be add Regex support).
- Resursion Support.
- White Space Support.
1. Designation all propertiy files in some package with a wildcard character
You can define the "webwork.custom.i18n.resources " or "webwork.custom.properties" like this :
webwork.custom.i18n.resources = ApplicationResources, org/summerfragrance/security/web/webwork/*
Then all ".properties" files will be added to webwork's configuration.
2. Resursion Support
If you set the resursion attribute to "true", all property files in the package you specified and all it's sub-package will be added to webwork's configuration.
3. White Space Support
As we know, the default impl DefaultConfiguration doesn't support white space between multi config files, so I add this
Please the zip file from http://www.hibernate.org.cn/download.php?id=1351