|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=METHOD) @Retention(value=RUNTIME) @Documented public @interface Component
Annotation used within a page or component class to define a contained component (which will typically match up against a component reference in the template). This annotation is attached to an accessor method.
Optional Element Summary | |
---|---|
String[] |
bindings
Bindings for the component. |
String |
copyOf
The name of a previously defined component. |
String |
id
The component's id. |
String[] |
inheritedBindings
Inherited bindings bind a parameter of the component to a parameter of the container. |
boolean |
inheritInformalParameters
If true, then the component inherits informal parameters from its container. |
String |
type
The component type. |
public abstract String id
public abstract String type
public abstract String copyOf
public abstract boolean inheritInformalParameters
public abstract String[] bindings
name=binding reference
, where the binding reference is
the same kind of string (possibly with a prefix such as "ognl:" or "message:" as would appear
in a specification.
public abstract String[] inheritedBindings
parameter-name=container-parameter-name
, where the former is
the name of the component parameter and the latter is the name of the container parameter to bind
the parameter to.
In case both names are the same, it's possible to just use parameter-name
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |