Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## org.apache.tapestry5.annotations
Annotation Type BindParameter

    @Target(value=FIELD)
    @Retention(value=RUNTIME)
    @UseWith(value=MIXIN)
    public @interface BindParameter

Designates a field in a mixin which is bound to the parameter of the containing component corresponding to the value of the annotation. If no value is specified, the bound parameter name is assumed to match the field name of the mixin. For example, a mixin intended to work with form fields would define a field named "value", marked by this annotation. The user-variable bound to the component's value parameter would ultimately be bound in a chain: uservariable <=> mixin.value <=> component.value. Changes to any one value in the chain will be propagated accordingly.

Since:
  5.2.0
See Also:
  `BindParameterWorker`

Optional Element Summary
`java.lang.String` | `name`
`java.lang.String[]` | `value`

### name

    public abstract java.lang.String name

  Returns:
    the name of the mixin bound-parameter, exactly as for the Parameter annotation.
  Default:
    ""

### value

    public abstract java.lang.String[] value

  Returns:
    the name(s) of the parent parameter to bind. Defaults to the name of the mixin field. If more than one name is specified, the first name matching a declared parameter of the core component will be used.
  Default:
    ""

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

Copyright © 2003-2012 The Apache Software Foundation.