|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
@Documented
public @interface ValidateMapAnnotate a method returning a java.util.Map, where the elements in the map require validation. The framework will then validate each element in the map. It is recommended that the Map contains the same type of elements, however this is not a requirement.
| Optional Element Summary | |
|---|---|
java.lang.String[] |
applyToGroups
Specify for which groups this annotation must be applied. |
java.lang.String |
expressionForIndex
This is a special property and is usually not necessary to set. |
boolean |
globalMessage
If this annotation's message must be added as global message instead of real validation path. |
public abstract java.lang.String[] applyToGroups
Defaults to JvGroup.GROUP_APPLY_ALL
public abstract java.lang.String expressionForIndex
As you can see the map called 'mapName' its key is resolved by an expression: anotherBean.specialKey. In this case you should set: anotherBean.specialKey here, to make sure that the path is set correctly if you convert validationmessages to JSF messages.
For #{beanName.mapName['key']} it would NOT be necessary to set this property as it is a direct key.
public abstract boolean globalMessage
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||