Package org.apache.tapestry5.annotations

# Annotation Type Id

@Target(FIELD) @Documented @Retention(RUNTIME) @UseWith({COMPONENT,MIXIN,PAGE,SERVICE}) public @interface Id
Optional annotation, used with `Inject`, which exists to provide the id of an object when it can not be determined by other means (such as from the field name). Currently, this is used when injecting a `Block`.

- ## Required Element Summary

  Required Elements
  Modifier and Type
  Required Element
  Description
  `String`
  `value`
  The id.

- ## Element Details

  - ### value

    String value
    The id.