Ajax in Oracle JDeveloper phần 7

Ajax là một kỹ thuật trang web dựa trên JavaScript. Khi người đọc đã học được, DWR có thể được sử dụng để tạo JavaScript tương ứng với các phương thức lớp Java cung cấp một tính năng gọi lại hữu ích, có lợi thế của Ajax để trả lại dữ liệu từ máy chủ và cập nhật các trang web với phản ứng của máy chủ. | 7 Ajax with JSF-Ajax4jsf Introduction JavaServer Faces JSF provides a set of components to develop user interfaces UIs for J2EE applications. We have used HTML components in the previous chapters. Ajax may also be used with JSF UI components using JBoss Ajax4jsf. Ajax4jsf is an open source framework that adds Ajax functionality to JSF applications without requiring any JavaScript. JDeveloper provides a Component Palette for JSF Core and JSF HTML components from which components may be added to a JSF page. In this chapter we shall create an input form for a catalog entry using JSF Components provided in JDeveloper and add Ajax to the input form using Ajax4jsf. Overview of Ajax4jsf Ajax4jsf provides a component library that may be used in a JSF page for page-wide Ajax functionality. Ajax4jsf supports action and value change listeners and server-side validation and conversion facilities of the JSF framework. Ajax4jsf also supports management of static and dynamic resources such as images and CSS stylesheets. Ajax4jsf also supports the Facelets framework. To use Ajax4jsf one would need the following JDK JSF or a J2EE application server such as WebSphere or WebLogic or OC4J and browser that supports XMLHttpRequest such as Internet Explorer 6 or Netscape Navigator 6 . An event on the page invokes an Ajax request and specified regions of the page are updated with the Ajax response. Next we shall discuss some of the elements of the Ajax4jsf framework. 130 7 Ajax with JSF-Ajax4jsf Filter The Ajax filter is registered in the file and distinguishes between a JSF request and an Ajax request. In a JSF request the complete JSF page is synchronized with the JSF component tree. While in an Ajax request only the Ajax region specified by a4j region is updated with the Ajax response. Ajax Action Components These are the components that are used to send an Ajax request from the browser to the server. Ajax action .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
182    5    1    16-06-2024
42    545    21    16-06-2024
Đã 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.