Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Moved "Parameter Bindings" header up to a more reasonable place

...

Within a component class, parameters are declared by using the @Parameter annotation on a private field.

Anchor
bindingparameters
bindingparameters

Parameter Bindings

In Tapestry, a parameter is not a slot into which data is pushed: it is a connection between a field of the component (marked with the @Parameter annotation) and a property or resource of the component's container. In most simple examples, the component's container is the page, but since components can be nested, often the container of a component is another component.

...

The name of the parameter is the same as field name (except with leading "_" and "$" characters, if any, removed). Here, the parameter names are "start", "end" and "result". Anchorbindingparametersbindingparameters

...

The component above can be referenced in another component or page template, and its parameters bound:

...