org.apache.tapestry.annotations
Annotation Type Component


@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.

Since:
4.0
Author:
Howard Lewis Ship

Required Element Summary
 java.lang.String type
          The component type.
 
Optional Element Summary
 java.lang.String[] bindings
          Bindings for the component.
 java.lang.String id
          The component's id.
 boolean inheritInformalParameters
          If true, then the component inherits informal parameters from its container.
 

Element Detail

type

public abstract java.lang.String type
The component type.

id

public abstract java.lang.String id
The component's id. Defaults to the property name if left unspecified.

Default:
""

inheritInformalParameters

public abstract boolean inheritInformalParameters
If true, then the component inherits informal parameters from its container.

Default:
false

bindings

public abstract java.lang.String[] bindings
Bindings for the component. Each binding string is of the format name=binding refernce, 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.

Default:
{}