|
RichFaces CDK Annotations 4.1.0.20111101-M4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=SOURCE) @Target(value=TYPE) public @interface JsfComponent
That annotation marks class as JSF component. The difference with JSF 2.0 @ FacesComponent
annotation is what this one could marks abstract class from which a real UI-component implementation will be generated.
| Optional Element Summary | |
|---|---|
String[] |
attributes
Defines file names for fragment of faces-config.xml that contain standard attribute definitions. |
RendererSpecificComponent[] |
components
Defines third-level renderer specific components. |
Description |
description
Component description to include into generated faces-config and taglib. |
Facet[] |
facets
Component facets. |
String |
family
Component family. |
Event[] |
fires
|
String |
generate
Name of the generated component implementation class. |
Class<?>[] |
interfaces
Interfaces that should be implemented by the generated component class. |
JsfRenderer |
renderer
JsfRenderer associated with this component. |
Tag[] |
tag
Tag description. |
Test |
test
Junit test description. |
String |
type
Type of the JSF component. |
public abstract String type
Type of the JSF component.
if this value is an empty, component type would be inferred from class name.
public abstract String family
Component family. For default value, it could be got from the COMPONENT_FAMILY constant or by inferred naming conventions.
public abstract String generate
Name of the generated component implementation class. Default value means nothing to genrate from concrete class, or infer name by convention for abstract class.
public abstract Description description
Component description to include into generated faces-config and taglib.
public abstract Test test
Junit test description. Isn't used in RichFaces 4.0, reserved for future releases.
public abstract JsfRenderer renderer
JsfRenderer associated with this component.
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.
public abstract Event[] fires
public abstract Facet[] facets
Component facets.
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 UIComponent and any other standard JSF classes.
public abstract Class<?>[] interfaces
Interfaces that should be implemented by the generated component class. CDK processes all Attribute and
Facet annotations in these interfaces
public abstract RendererSpecificComponent[] components
Defines third-level renderer specific components. Used to generate a whole family of similar components. For example,
UIComponentBase provides UICommand subclass for all command
components, and javax.faces.component.html.HtmlCommandLink with javax.faces.component.HtmlCommandButton
are renderer-specific components for links and buttons.
|
RichFaces CDK Annotations 4.1.0.20111101-M4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||