org.apache.tapestry5.annotations

## Annotation Type InjectComponent

-     @Target(value=FIELD)
       @Documented
       @Retention(value=RUNTIME)
       @UseWith(value={COMPONENT,PAGE})
      public @interface InjectComponent

  Allows components defined in the template to be injected as read-only properties.

- - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `String` | `value` The name of the component to inject.

- - ### Element Detail

    - #### value

          public abstract String value

      The name of the component to inject. Defaults to the name of the annotated field.
      Default:
        ""

5.6.1 - Copyright © 2003-2020 The Apache Software Foundation.