Package org.apache.tapestry5.annotations

# Annotation Type PageActivationContext

@Target(FIELD) @Documented @Retention(RUNTIME) @UseWith(PAGE) public @interface PageActivationContext
Annotation for a field for which the page activation context handlers (onActivate and onPassivate) should be created. In order to use this annotation you must contribute a `ValueEncoder` for the class of the annotated property. If using this annotation more than once per page class you must specify unique indexes for each. Indexes must start at 0 and increment by 1 (eg. if 3 annotations are present they must have indexes of 0, 1 and 2)

- ## Optional Element Summary

  Optional Elements
  Modifier and Type
  Optional Element
  Description
  `boolean`
  `activate`
  Whether to create an activate event handler.
  `int`
  `index`
  The index of the page activation context parameter (default 0)
  `boolean`
  `passivate`
  Whether to create a passivate event handler

- ## Element Details

  - ### activate

    boolean activate
    Whether to create an activate event handler.
    Default:
      true

  - ### passivate

    boolean passivate
    Whether to create a passivate event handler
    Default:
      true

  - ### index

    int index
    The index of the page activation context parameter (default 0)
    Since:
      5.4
    Default:
      0