Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Sức khỏe - Y tế
Văn bản luật
Nông Lâm Ngư
Kỹ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Giới thiệu
Đăng ký
Đăng nhập
Tìm
Danh mục
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Y tế sức khỏe
Văn bản luật
Nông lâm ngư
Kĩ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Thông tin
Điều khoản sử dụng
Quy định bảo mật
Quy chế hoạt động
Chính sách bản quyền
Giới thiệu
Đăng ký
Đăng nhập
0
Trang chủ
Công Nghệ Thông Tin
Đồ họa - Thiết kế - Flash
Mastering JavaServer™ Face phần 5
Đang chuẩn bị liên kết để tải về tài liệu:
Mastering JavaServer™ Face phần 5
Quang Đông
48
49
pdf
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
UIPanel được sử dụng để quản lý bố cục của phần còn lại của các thành phần. Các trẻ em của bảng điều khiển được sắp xếp trong một mạng lưới rộng hai cột và nhiều hàng khi cần thiết để nhường chỗ cho tất cả các thành phần con. Nói cách khác, | 170 Chapter 5 The UlPanel is used to manage the layout of the rest of the components. The children of the panel are arranged in a grid two columns wide and as many rows as needed to make room for all the child components. In other words since the columns attribute is set for this panel two components at a time will be placed into a row then a new row will be created for the next two until there are no more child components. The grid Renderer creates an HTML table element for the UlPanel component. The panel renders its children so that it can manage the layout by rendering the components inside the rows and cells of the table. Here is the code for the opening of the panelGrid tag from Listing 5.4 for quick reference. h panelGrid id registrationPanel columns 2 rowClasses centered footerClass centered border 1 The rowClasses attribute specifies the CSS classes to apply to each row. The Renderer will apply the value specified in this attribute to every row in the table. If you d like to alternate colors or some other aspect of the row you can comma-delimit the different CSS classes in this attribute. For example if you wanted every other row to have a gray background you could specify the value of rowClasses like this h panelGrid id registrationPanel columns 2 rowClasses centered grayCentered footerClass grayCentered border 1 The table will be rendered with every other row having its class set to grayCentered. Figure 5.6 shows the page rendered with every other row in gray. Figure 5.6 Row class example. JSP Integration in JSF 171 The next block of code from Listing 5.4 creates the UlOutput and UlInput components that allow the users to enter their information for registration. There are four UIOutput components that make up the labels and four UIIn-put components that make up the text fields. Let s look in detail at the password entry label and text field component pair to get a better understanding of how these tags work. Here is the code for the components h .
TÀI LIỆU LIÊN QUAN
Mastering Jakarta Struts
Mastering JavaServer™ Face phần 1
Mastering JavaServer™ Face phần 2
Mastering JavaServer™ Face phần 3
Mastering JavaServer™ Face phần 4
Mastering JavaServer™ Face phần 5
Mastering JavaServer™ Face phần 6
Mastering JavaServer™ Face phần 7
Mastering JavaServer™ Face phần 8
Mastering JavaServer™ Face phần 9
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.