与清单5惟一的不同之处在于值绑定表达式。
The only difference from Listing 5 is the value binding expression.
在组件框架中,UI事件或解析的值绑定表达式直接导致方法调用。
In a component framework, invocations are a direct result of either UI events or resolved value-binding expressions.
在创建使用JSF - EL绑定的组件属性时,需要创建值绑定表达式。
When you create component properties that are bound with JSF-EL, you need to create a value binding expression.
Seam总是在 #{conversation.id}值绑定表达式下公开当前的对话。
Seam always exposes the current conversation ID under the #{conversation.id} value-binding expression.
在JSF不负责减少它解析一个值绑定表达式的次数的情况下,Seam的工厂特性常常变得非常方便。
Given that JSF does not care to reduce the number of times it resolves a value binding expression, Seam's factory feature often comes in handy.
如果一个值绑定表达式引用的模型数据不再可用,或者在组件树被恢复之前发生了更改,那么组件树的一些部分将被撤销。
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.
表达式由数据结构、绑定的变量(即具有值的变量)、数学操作符和函数调用组成。
The expression is composed of data structures, bound variables (that is, those with a value), mathematical operations and function calls.
copy:transform表达式的copy子句将源xml值绑定到一个变量。
Copy: the copy clause of the transform expression binds the source XML value to a variable.
典型的表达式上下文就是这个组件实例,它是各种绑定值的来源。
The expression context is typically the component instance , which is the source of binding values.
现在,对模板表达式和语句有了一点感觉了吧。除插值表达式外,还有各种各样的数据绑定语法,是学习它们是时候了。
Now that we have a feel for template expressions and statements, we're ready to learn about the varieties of data binding syntax beyond interpolation.
数据绑定的第一种形式——插值表达式——展示了模板的HTML可以有多丰富。
Let's turn to the first form of data binding - interpolation - to see how much richer template HTML can be.
它的意思是,创建了一个名字,然后创建了对于这个名字,和子表达式的值的绑定,实际上这么做,我们是为了,要强调一个点,让我们来说说这个点。
x It says, take the name x and create a binding for that name to the value of the sub-expression and in fact to do this, to stress a point, let's do that.
一个表达不能参考,虽然你可以绑定用一个表达式的结果左值或右值参考。
An expression cannot be a reference, although you can bind the result of an expression with an lvalue or rvalue reference.
而是把按钮绑定到父组件自己的start和stop方法,使用父组件的seconds方法的插值表达式来展示秒数变化。
Instead we bind the buttons to the parent component's own start and stop methods and present the ticking seconds in an interpolation around the parent component's seconds method.
而是把按钮绑定到父组件自己的start和stop方法,使用父组件的seconds方法的插值表达式来展示秒数变化。
Instead we bind the buttons to the parent component's own start and stop methods and present the ticking seconds in an interpolation around the parent component's seconds method.
应用推荐