tailieunhanh - Java Persistence with Hibernate 2nd phần 10

ủng hộ các trường hợp đậu. Phạm vi có sẵn cho đậu sao lưu (nơi nó sống) được các yêu cầu HTTP hiện tại bối cảnh, kỳ họp HTTP bối cảnh hiện nay, và ứng dụng bối cảnh toàn cầu. Bạn viết logic ứng dụng bằng cách tạo ra hạt cà phê và để cho JSF quản lý vòng đời của họ trong một hoàn cảnh này. | 750 CHAPTER 17 IntroducingJBoss Seam of backing bean instances. The available scopes for a backing bean where it lives are the current HTTP request context the current HTTP session context and the global application context. You write application logic by creating beans and letting JSF manage their lifecycle in one of these contexts. You can bind model values from a backing bean to a visual component with an expression language. For example you create a page with a text input field and bind it to a named backing bean field or getter setter method pair. This backing bean name is then mapped in JSF configuration to an actual backing bean class along with a declaration of how an instance of that class should be handled by JSF in the request in the HTTP session or in the application context . The JSF engine automatically keeps the backing bean field or property synchronized with the state of the widget as seen or manipulated by the user. JSF is an event-driven presentation framework. If you click a button a JSF ActionEvent is fired and passed to registered listeners. A listener for an action event is again a backing bean you name in your JSF configuration. The backing bean can then react to this event for example by saving the current value of a backing bean field which is bound to a text input widget into the database. This is a simplified explanation of what JSF does. Internally each request from the web browser passes through several phases of processing. A typical request-processing sequence on the server when you click a button on a JSF page is as follows this process is illustrated in figure 1 Restore View of all widgets JSF can store the widget state on the server or on the client . 2 Apply Request Parameters to update the state of widgets. 3 Process Validations that are necessary to validate user input. 4 Update Model Values that back the widget by calling the bound fields and setter methods of a backing bean. 5 Invoke Application and pass the action event

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.