Ajax in Oracle JDeveloper phần 5

Sao chép danh sách lớp trong JDeveloper. Tiếp theo, chúng ta sẽ chạy các ứng dụng GWT ở chế độ lưu trữ trên máy. Chúng ta cần thiết lập cấu hình thời gian chạy để chế độ lưu trữ như thể hiện trong hình. 4,16. | 82 4 Ajax with Java-GWT label1 .add labell label2 .add label2 label3 .add label3 label4 .add label4 label5 .add labels label6 .add labels textBox1 .add textBox1 textBox2 .add textBox2 textBox3 .add textBox3 textBox4 .add textBox4 textBoxS .add textBoxS textBox6 .add textBox6 button .add button label7 .add label Copy the listing to the class in JDeveloper. Next we shall run the GWT application in hosted mode. We need to set the runtime configuration to the hosted mode as shown in Fig. . Fig. Setting Run Configuration to Hosted Mode Right-click on the GWT Web Project in the Application Navigator and select Run as shown in Fig. . Creating a Form Validation Ajax Application 83 Fig. Running Form Validation GWT Application The HTML host page gets displayed. The HTML host page consists of a table containing rows for input values for a catalog entry and a Submit button as shown in Fig. . Fig. Input Form for creating a Catalog Entry 84 4 Ajax with Java-GWT Start to specify a value for the Catalog ID field. An Ajax request gets initiated and the Catalog ID value gets validated with catalog entries in a HashMap. A validation message indicates the validity of the Catalog ID value as shown in Fig. . Fig. Validating Catalog Id An Ajax request is sent as each character is added to the Catalog ID field and the validation message displayed. If a Catalog ID value is specified that is already in the HashMap catalogl for example a validation message Catalog Id is not Valid . The form fields get filled for the catalog entry and the Submit button gets disabled as shown in Fig. .

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
Đã 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.