站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss Seam 1.0.1 API 英文版文档

DataModel (JBoss Seam API Documentation) - JBoss Seam 1.0.1 API 英文版文档


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 List to the same scope as the owning component (or to the EVENT scope in the case of a stateless component), after wrapping as a ListDataModel. Note that the List 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 List.equals().

Author:
Gavin King

Optional Element Summary
 ScopeType scope
          By default, the DataModel is outjected to the same scope as the owning component, or to the EVENT scope in the case of a stateless component.
 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
By default, the DataModel is outjected to the same scope as the owning component, or to the EVENT scope in the case of a stateless component. If scope=ScopeType.PAGE is explicitly specified, the DataModel will be kept in the PAGE context instead.

Returns:
ScopeType.UNSPECIFIED or ScopeType.PAGE
Default:
UNSPECIFIED