org.apache.myfaces.extensions.validator.baseval.annotation
Annotation Type Required


@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
@Documented
public @interface Required

Since:
1.x.1
Author:
Gerhard Petracek

Optional Element Summary
 Class<? extends ValidationParameter>[] parameters
           
 String validationErrorMsgKey
          to customize the error message or to override the default jsf required message with the usage of the message resolver mechanism
 

validationErrorMsgKey

public abstract String validationErrorMsgKey
to customize the error message or to override the default jsf required message with the usage of the message resolver mechanism

Returns:
an optional error message key
Default:
"field_required"

parameters

public abstract Class<? extends ValidationParameter>[] parameters
Default:
org.apache.myfaces.extensions.validator.core.validation.parameter.ViolationSeverity.Error.class


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.