RichFaces CDK Annotations 4.1.0.20111101-M4

org.richfaces.cdk.annotations
Annotation Type JsfBehavior


@Retention(value=CLASS)
@Target(value=TYPE)
public @interface JsfBehavior

This annotation defines concrete class as JSF ClientBehavior, or abstract class as the base for generated Behavior implementation.

Author:
asmirnov@exadel.com

Optional Element Summary
 String[] attributes
          

Defines file names for fragment of faces-config.xml that contain standard attribute definitions.

 Description description
          

Description used by IDE.

 String generate
          

fully qualified class name of the generated Behavior implementation.

 String id
          

behavior-id with which instances of implementation class can be created b JSF Application implementation.

 Class<?>[] interfaces
          

Interfaces that should be implemented in the generated class.

 JsfBehaviorRenderer renderer
          

Renderer associated with generated ClientBehavior

 Tag[] tag
          

Tag description.

 

id

public abstract String id

behavior-id with which instances of implementation class can be created b JSF Application implementation. If this value an empty, behavior-id will be inferred from class name.

Returns:
converter type.
Default:
""

generate

public abstract String generate

fully qualified class name of the generated Behavior implementation. Default value means nothing to genrate from concrete class, or infer name by convention for abstract class.

Returns:
Default:
""

tag

public abstract Tag[] tag

Tag description. If generated tags require special handlers, provide separate description for every type of tag, JSP and Facelets. Otherwise, the only one tag tag description with name and type TagType.All.

Returns:
Default:
{}

renderer

public abstract JsfBehaviorRenderer renderer

Renderer associated with generated ClientBehavior

Returns:
Default:
@org.richfaces.cdk.annotations.JsfBehaviorRenderer

description

public abstract Description description

Description used by IDE.

Returns:
Default:
@org.richfaces.cdk.annotations.Description

attributes

public abstract String[] attributes

Defines file names for fragment of faces-config.xml that contain standard attribute definitions. All names relative to the META-INF/cdk/attributes/ folder in classpath. CDK also tries to read META-INF/cdk/attributes/[classname].xml file for all component superclasses and interfaces. Therefore, it is not necessary to explicitly include definitions for Converter and any other standard JSF classes.

Returns:
Default:
{}

interfaces

public abstract Class<?>[] interfaces

Interfaces that should be implemented in the generated class. CDK processes all Attribute annotations in these interfaces

Returns:
Default:
{}

RichFaces CDK Annotations 4.1.0.20111101-M4

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.