Design and Implementation of a Pager Based on Facelets Technology

After analyzing the functional requirements, a development model of the pager component based on characteristics of Facelets composite component is proposed. In the model, an auxiliary object and a managed bean are introduced to support the rendering of the pager component and the data table component respectively. Inheritance relationships between the managed bean and the auxiliary object reflect inner relationships between the pager component and the data table component, which can improve independence of the pager component and reduce the difficulty to develop. Finally, the implementation technology and the usage of the pager component are presented. Its effectiveness, applicability and ease of use are demonstrated by practical applications.