Package org.apache.tapestry5.annotations

# Annotation Type Environmental

@Target(FIELD) @Documented @Retention(RUNTIME) @UseWith({COMPONENT,MIXIN,PAGE}) public @interface Environmental
Defines a field of a component class that is replaced at runtime with a read-only value obtained from the `Environment` service. Most commonly, the field will be of type `JavaScriptSupport`, `Heartbeat` or `FormSupport`, though many other options are possible.

- ## Optional Element Summary

  Optional Elements
  Modifier and Type
  Optional Element
  Description
  `boolean`
  `value`
  The value determines if the environmental service to be injected is required or not.

- ## Element Details

  - ### value

    boolean value
    The value determines if the environmental service to be injected is required or not. In most cases, it is, so the default is true.
    Default:
      true