[jboss-cvs] jboss-seam/src/main/org/jboss/seam/annotations/faces ...
Gavin King
gavin.king at jboss.com
Mon Jun 25 19:19:01 EDT 2007
User: gavin
Date: 07/06/25 19:19:01
Added: src/main/org/jboss/seam/annotations/faces Converter.java
Validator.java package-info.java
Log:
renamed packages
Revision Changes Path
1.1 date: 2007/06/25 23:19:01; author: gavin; state: Exp;jboss-seam/src/main/org/jboss/seam/annotations/faces/Converter.java
Index: Converter.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 converter. The
* annotated class must be a Seam component, and must
* implement javax.faces.convert.Converter.
*
* @author Gavin King
*
*/
@Target(TYPE)
@Retention(RUNTIME)
@Documented
public @interface Converter
{
/**
* The JSF converter id. Default to the component name.
*/
String id() default "";
/**
* If specified, register this component as the default
* converter for a type.
*/
Class forClass() default void.class;
}
1.1 date: 2007/06/25 23:19:01; author: gavin; state: Exp;jboss-seam/src/main/org/jboss/seam/annotations/faces/Validator.java
Index: 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.convert.Validator.
*
* @author Gavin King
*
*/
@Target(TYPE)
@Retention(RUNTIME)
@Documented
public @interface Validator
{
/**
* The JSF validator id. Default to the component name.
*/
String id() default "";
}
1.1 date: 2007/06/25 23:19:01; author: gavin; state: Exp;jboss-seam/src/main/org/jboss/seam/annotations/faces/package-info.java
Index: package-info.java
===================================================================
/**
* Annotations for defining JSF converters and validators.
*/
package org.jboss.seam.annotations.faces;
More information about the jboss-cvs-commits
mailing list