org.apache.tapestry5.annotations

## Annotation Type PageActivationContext

-     @Target(value=FIELD)
       @Documented
       @Retention(value=RUNTIME)
       @UseWith(value=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 and 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 Detail

    - #### activate

          public abstract boolean activate

      Whether to create an activate event handler.
      Default:
        true

  - - #### passivate

          public abstract boolean passivate

      Whether to create a passivate event handler
      Default:
        true

  - - #### index

          public abstract int index

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

5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.