I have many jsf2 web projects that use the same validation constraints.
- Can I put all these constraints in a shared library?
- If yes, can I supply traslations for the validation messages?
- If yes, how can I achieve it in a standard way?
- Is the following package structure correct?
commons.jar library:
commons.jar
|
+ library
| |
| + CustomConstraint1.class
| + CustomConstraint2.class
|
+ ValidationMessages_it.properties
+ ValidationMessages_en.properties
+ ValidationMessages_de.properties