Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Seam Core JSF2 2.3.0.Final
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## org.jboss.seam.annotations.datamodel
Annotation Type DataModel

    @Target(value={FIELD,METHOD})
    @Retention(value=RUNTIME)
    @Documented
    @DataBinderClass(value=DataModelBinder.class)
    public @interface DataModel

Outjects a collection to the same scope as the owning component (or to the EVENT scope in the case of a stateless component), after wrapping as a JSF DataModel (a List as a ListDataModel, a Map as a MapDataModel, a Set as a SetDataModel, an array as an ArrayDataModel). Note that the List, Map, Set or array will be re-wrapped and re-outjected each time the current component value is different to the value held by the context variable as determined by calling equals() on the underlying collection.

Author:
  Gavin King
See Also:
  `ListDataModel`, `MapDataModel`, `SetDataModel`, `ArrayDataModel`

Optional Element Summary
`ScopeType` | `scope` Specifies the scope to outject the DataModel to.
`String` | `value` The context variable name.

### value

    public abstract String value

  The context variable name. Defaults to the name of the annotated field or getter method.

  Default:
    ""

### scope

    public abstract ScopeType scope

  Specifies the scope to outject the DataModel to. If no scope is explicitly specified, the scope of the component with the @DataModel attribute is used. But if the component scope is STATELESS, the EVENT scope is used.

  Returns:
    ScopeType.UNSPECIFIED or ScopeType.PAGE
  Default:
    org.jboss.seam.ScopeType.UNSPECIFIED

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Seam Core JSF2 2.3.0.Final
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

Copyright © 2012 Seam Framework. All Rights Reserved.