属性和行为都涉及到在组件视图中获取或设置数据元素的值。
Both properties and actions involve getting or setting the value of data elements in your component view.
我们将描述每个主要的TCF组件,说明它们的角色、功能和相关数据值。
We'll describe each of the major TCF components, explaining its role, function, and related data values.
正如第1部分所介绍的,表单数据必须在JS f验证阶段,即JS f组件的所有值都已经由jsf框架转变和验证之后才保存。
As explained in Part 1, the form data must be saved after the JSF validation phase, when all values of the JSF components have been converted and validated by the JSF framework.
通过将聚合组件作为所有数据交换的交换场所,可保证应用程序对于跟踪的所有值保留最新的上下文。
By using the aggregation component as a clearinghouse for all data exchanges, your application is guaranteed to have the most recent context for all the values that it tracks.
第2部分展示了如何通过遍历jsf组件树并获取输入组件的值来保存当前视图的表单数据。
Part 2 shows how to save the form data of the current view by traversing the JSF component tree and getting the values of the input components.
代码的包装将解析XML输入数据,并将值传递到包装组件中相应的位置。
The wrapper of the code parses the XML input data and moves the values to the appropriate addresses in the wrapped component.
虽然只显示一部分数据元素的属性,但是有些组件可以通过编程访问其他值。
Properties. Although only a subset of the data element's properties is displayed, there can be other components that need programmatic access to the other values.
MyFaces标记允许将数据(包括整个backingbean)存储为组件树的一部分,而仅仅是值绑定。
The MyFaces tag allows you to store data (including entire backing beans) as part of the component tree rather than just the value bindings.
带注解的数据绑定(清单2中的第一行)允许将bean属性声明为组件属性值,这样视图和模型就会自动保持同步。
The Annotated Data Binding (the first line in Listing 2) allows bean properties to be declared as component attribute values so that the view and model are automatically kept in synch.
在幕后,数据绑定器通过调用bean的获取方法或设置方法获取或设置UI组件中的值。
Under the hood, the data binder calls a bean's getter and setter methods to retrieve, or set values in the UI components.
如果在每次模拟组件时厌倦了输入值,或者甚至厌倦了从数据池选取数据,则使用编程式模拟非常有用。
Using programmatic emulation is useful if you are tired of entering values or even picking values from the data pool every time a component is emulated.
如果一个值绑定表达式引用的模型数据不再可用,或者在组件树被恢复之前发生了更改,那么组件树的一些部分将被撤销。
If model data referenced by a value binding expression is no longer available or has changed prior to the component tree being restored, it can result in portions of the tree being dropped.
通过数据绑定可以将特定的组件值映射为一个已有的数据结构,而不必进行额外的编程。
Data binding allows you to map specific component values to an existing data structure, without the need for extra programming.
组件可以消费这个属性并存储它,供以后的操作使用;还可以执行一个面向数据的操作,比如更新一个编辑框的值。
The component may consume this property and just store it, pending a later operation, or it may do a single data-oriented operation, such as updating the value of an edit field.
在后端,数据模型与属性代理连接起来,以将更改传递给数据模型中的值,并监听来自其他组件视图的更改。
On the backend, the data model is coupled with the property broker to broadcast changes to values in the data model and to listen for changes imposed from other component views.
该组件是一个基本的饼形图组件,它用于显示权重值数据。
This component is a basic pie-chart component in which data is consumed as a weighted list of values.
不将值绑定数据存储在组件树中的一个最值得注意的不利方面是虚幻事件效果(见参考资料),这是由UIData家族中的临时父组件导致的。
The most noticeable downside of not storing value binding data in the component tree is the ghost event effect (see Resources), which is caused by transient parent components in the UIData family.
另一种方法是从对应于临时循环变量的值绑定中读取该数据,该变量定义在组件标记的var属性中。
The other way is to read it from the value binding that corresponds to the temporary loop variable, which is defined in the component tag's var attribute.
但是,为了强调它的组件,我们根据清单2中的元数据注释描述的测试序列结构将其分解为它的一些组件,以16进制值显示。
But to highlight its components, it's broken up into its components per the test sequence structure described in the metadata comments in Listing 2, shown as hex values.
一个SCA组件通过参照另一个SCA组件传递一些double值。因此没有出现数据转换或协议转换。
There's an SCA component passing some double values by reference to another SCA component, so no data transformations or protocol translations have to take place.
因此数据表可以通过元素列表进行迭代并且通过var属性定义的变量为子组件提供值。
Thus Datatable iterates through the elements of the list and provides values to the child components via a variable defined by the var attribute.
人们经常把属性绑定描述成单向数据绑定,因为值的流动是单向的,从组件的数据属性流动到目标元素的属性。
People often describe property binding as one-way data binding because it flows a value in one direction, from a component's data property into a target element property.
显示数据展示了数据绑定如何将组件属性值显示到屏幕上。
Displaying data shows how data binding puts component property values on screen.
这类数据地图的每个条目和元素都包含J SF输入组件的值,其ID是数据地图的键。
Each entry and element of such a data map contains the value of a JSF input component whose ID is also the key in the data map.
这类数据地图的每个条目和元素都包含J SF输入组件的值,其ID是数据地图的键。
Each entry and element of such a data map contains the value of a JSF input component whose ID is also the key in the data map.
应用推荐