Đang chuẩn bị liên kết để tải về tài liệu:
Ajax in Oracle JDeveloper phần 5

Không đóng trình duyệt đến khi xuất hiện nút TẢI XUỐNG

Sao chép danh sách CatalogForm.java lớp CatalogForm.java 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 RootPanel.get label1 .add labell RootPanel.get label2 .add label2 RootPanel.get label3 .add label3 RootPanel.get label4 .add label4 RootPanel.get label5 .add labels RootPanel.get label6 .add labels RootPanel.get textBox1 .add textBox1 RootPanel.get textBox2 .add textBox2 RootPanel.get textBox3 .add textBox3 RootPanel.get textBox4 .add textBox4 RootPanel.get textBoxS .add textBoxS RootPanel.get textBox6 .add textBox6 RootPanel.get button .add button RootPanel.get label7 .add label Copy the CatalogForm.java listing to the CatalogForm.java 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. 4.16. Fig. 4.16 Setting Run Configuration to Hosted Mode Right-click on the GWT Web Project in the Application Navigator and select Run as shown in Fig. 4.17. 4.5 Creating a Form Validation Ajax Application 83 Fig. 4.17 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. 4.18. Fig. 4.18 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. 4.19. Fig. 4.19 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. .

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