org.apache.tapestry.annotations
Annotation Type ComponentClass


@Target(value=TYPE)
@Retention(value=RUNTIME)
@Documented
@Inherited
public @interface ComponentClass

A class-level annotation that identifies a class as a component. Note that values defined by this annotation will override corresponding values in the XML component specification. At this time it is still necessary to have a component specification, even if it is empty (this limitation may be lifted before the final 4.0 release).

Since:
4.0
Author:
Howard Lewis Ship

Optional Element Summary
 boolean allowBody
          If true (the default), then the defined component will allow and use it's body.
 boolean allowInformalParameters
          If true (the default), then the component accepts informal parameters.
 String reservedParameters
          A comma-seperated list of parameter names that can not be bound informally.
 

allowBody

public abstract boolean allowBody
If true (the default), then the defined component will allow and use it's body. Otherwise the body is discarded (which may cause errors if the body contains components).

Default:
true

allowInformalParameters

public abstract boolean allowInformalParameters
If true (the default), then the component accepts informal parameters. Generally, informal parameters become additional attributes of the element rendered by this component.

Default:
true

reservedParameters

public abstract String reservedParameters
A comma-seperated list of parameter names that can not be bound informally. These represent attributes generated internally by the component, and this is used to prevent name conflicts. Comparison of informal parameter name against reserved parameter name is caseless. Note also that all formal parameters are automatically part of the list of reserved parameters.

Default:
""


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.