Validator.java :  » JBoss » jboss-seam-2.2.0 » org » jboss » seam » annotations » faces » Java Open Source

Java Open Source » JBoss » jboss seam 2.2.0 
jboss seam 2.2.0 » org » jboss » seam » annotations » faces » Validator.java
package org.jboss.seam.annotations.faces;

import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

/**
 * Allows a Seam component to act as a JSF validator. The
 * annotated class must be a Seam component, and must
 * implement javax.faces.validator.Validator.
 * 
 * @author Gavin King
 *
 */
@Target(TYPE)
@Retention(RUNTIME)
@Documented
public @interface Validator
{
   /**
    * The JSF validator id. Default to the component name.
    */
   String id() default "";
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.