Changes made in the managed bean.
在受管bean内所做的更改。
The scope of this managed bean should be 'session'.
该管理bean的作用范围应该是‘session’。
Listing 5 shows the Countries application sample managed bean.
清单5展示了Countries应用程序示例托管bean。
Listing 3 shows how to register the managed bean to the Inventory class.
清单3显示了如何将这个受管bean注册到inventory类。
In Listing 2, the value attributes refer to catalog, which is a JSF managed bean.
在清单2中,value属性引用catalog,后者是一个jsf托管bean。
Look at the JSF page shown in Listing 2, which USES a JSF managed bean named catalog.
请看清单2所示的jsf页面,其中使用了一个名为catalog的jsf托管bean。
The following simple example shows how to access a CDI managed bean from a ZUL file.
下面的这个简单例子演示了如何从ZUL文件访问托管CDIbean。
The RepositoryWrapper class has two static methods that return the managed bean instance.
Repository wrapper类有两个静态方法,可以返回受管bean实例。
This aspect also defines helper methods using inter-type declarations on managed bean classes.
这个方面还用受管理bean类上的类型间声明定义了辅助方法。
As you can see from figure 5, you can also populate a table directly from the managed bean.
如图5所示,还可以直接从已管理的bean填充表。
You can use the JSF-EL (expression language) to bind JSF components to managed bean properties.
可以用JSF -EL(表达式语言)把JSF组件绑定到受管理的bean属性。
You can put this managed bean into session or even application scope, so that it is created only once.
您能够将这一受管的bean放入会话或应用范围,以便它只需被创建一次。
When the eager attribute is true, JSF creates the managed bean at startup and places it in application scope.
当eager属性为true时,JSF将在启动时创建托管bean并将其放入应用程序范围。
Developing a managed bean with Seam is almost shockingly easy compared to the typical JSF configuration process.
与典型的JSF配置过程相比,使用Seam开发受管bean非常容易。
According to the CDI specification, having a no-arg default constructor makes this class eligible to be a managed bean.
根据CDI规范,有一个no - arg默认构造函数使得这个类能成为托管bean。
This managed bean exposes a collection of golf course objects and then responds to actions for managing those instances.
该托管bean公开一个高尔夫课程对象集合,然后对管理这些实例的操作做出响应。
The simple HelloWorld example in Listing 1 shows how a managed bean is accessed through EL expression within a ZUL file.
清单1中简单的HelloWorld例子显示了如何通过ZUL文件中的EL表达式来访问托管bean。
which displays the results. A managed bean called CalculatorController serves as the backing bean for calculator.jsp and results.jsp.
一个叫做CalculatorController的托管bean 充当calculator.jsp和results.jsp 的backing bean。
By convention, the name of a managed bean is the same as the class name, with the first letter of the class name converted to lowercase.
按照约定,托管bean的名称与类名相同,类名的第一个字母被转换为小写。
The managed bean creation facility of JSF automatically creates a bean, initializes it, and stores it in the proper scope when referenced.
进行引用时,JSF的受管bean创建工具将自动创建bean,进行初始化,然后将其存储在适当的域。
A managed bean can also rely on a small number of container-provided services, mostly related to lifecycle management and resource injection.
Managed Bean还可以使用容器提供的一些服务,这些服务大多与生命周期管理和资源注入有关。
Using the methods outlined in Listing 1 through Listing 3, you establish a framework for a managed bean to monitor changes of the server-side data.
使用清单1到清单3中所列的这些方法,可以建立一个面向受管bean的框架来监视服务器端数据的变更。
Any interaction that modified a container-managed bean requires synchronization with the data source to insure a consistent view of the entity bean.
任何修改容器管理bean的交互都需要与该数据源保持同步,以确保实体bean的一致视图。
The backing bean gets a handle to the current user session state because the state is injected into the backing bean via the JSF managed bean facility.
支持Bean获得当前用户会话状态的句柄,因为该状态通过jsf托管Bean功能注入到了支持Bean中。
My MBeanDescriptorBasedAssembler ignores the bean key argument and creates the required ModelMBeanInfo instance directly from the managed bean reference.
这个MBeanDescriptorBasedAssembler忽略bean键参数并直接用受管bean引用创建所需的modelmbeaninfo实例。
In a typical JSF application, you use the managed bean facility to register the CourseAction bean and inject it with its delegate objects, or "dependencies."
在典型的JSF应用程序中,使用托管bean工具来注册CourseAction bean,然后借助其委托对象(或“依赖项”)注入该bean。
One of the big pluses of the managed bean facility is the ability to reference beans using JSF's expression language syntax, which you'll see used in most of the XHTML pages.
受管bean创建工具的一个有利因素是能够使用JSF的表达式语言语法来引用bean,您将发现大多数XHTML页面都使用了JSF的表达式语言语法。
This process takes place inside the managed bean (see the Bean layer of Figure 2) and can be divided into two sub-processes: updating the data model and creating GUI elements.
这个过程会在这个受管bean的内部发生(参见图2 的 Bean层),并且能够被分成两个子过程:更新数据模型和创建GUI元素。
Note that you can get this managed bean data from a database or a Web service, but for the case of my demonstration it just holds static information about the different countries.
注意,您可以从数据库或web服务获取该托管bean数据,但在我的演示中,它仅保存有关不同国家的静态信息。
The <managed-bean> tag in Listing 3 defines the catalog bean and its properties.
清单3的 <managed-bean>标签定义了catalogbean和它的属性。
应用推荐