|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface JsfValidatorExt
Interface that should be implemented by a validator that uses JSF beans to perform validation. Default validator is JsfAnnotationValidatorImpl found in the jsf-dep project. You are free to provide a custom implementation if the default is not sufficient (specify through jv-config.xml in that case)
| Method Summary | |
|---|---|
void |
setJsfLookup(JsfLookupExt jsfLookup)
This method is called by the JV framework (after setJvConfiguration) is called) and sets the lookup interface to use. |
void |
setJvConfigurationWrapper(JvConfigurationWrapper jvConfigWrapper)
Called by the jv framework when initializing a JsfAnnotationValidator implementation (right after constructing an instance). |
java.util.List<ValidationMessage> |
validate(java.lang.Object currentInstance,
java.lang.String prefixPath,
java.lang.String beanNameExpression,
JvMethod jvMethod)
This method is called by the JV framework (JsfAnnotationValidatorImpl) if an object to validate has defined a JSF lookup and thus must be validated through a JSF bean. |
| Method Detail |
|---|
java.util.List<ValidationMessage> validate(java.lang.Object currentInstance,
java.lang.String prefixPath,
java.lang.String beanNameExpression,
JvMethod jvMethod)
currentInstance - The current instance for validationprefixPath - The prefix path for this instancebeanNameExpression - The JSF expression of the (backing) bean to usejvMethod - The method containing the actual call to be performed on the bean with ALL needed parameters.
void setJvConfigurationWrapper(JvConfigurationWrapper jvConfigWrapper)
jvConfigWrapper - The configuration of the framework, allowing you access to
the current configuration.void setJsfLookup(JsfLookupExt jsfLookup)
jsfLookup - The actual lookup implementation to use
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||