Package org.apache.tapestry5.annotations
Annotation Type InjectComponent
@Target(FIELD)
@Documented
@Retention(RUNTIME)
@UseWith({COMPONENT,PAGE})
public @interface InjectComponent
Allows components defined in the template to be injected as read-only properties.
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
The name of the component to inject. Defaults to the name of the annotated field.- Default:
- ""
-
optional
boolean optionalIf true, allows the component to be missing without throwing an exception.- Since:
- 5.8.2
- Default:
- false
-