Self updating web page
Updates your Web page with any changes that you save to your map file.Swing already provides a mature way to automatically update the GUI based solely on the internal data status, but JSF does not have good support for refreshing the GUI based on a request from the server side.If you check the standard life cycle of JSF, you will find that the user normally needs to produce an event on the Web page (by clicking a button, for example) to invoke the GUI refresh.At this time, JSF has no good solution to this problem.
Although you may be familiar with Java Swing applications such as "clock," in which data changes prompt GUI updates, or you might have read the implementation details of such applications in some basic Swing development guides, this approach will not work with my scenarios.
The inventory information such as book categories and the number of books in each category is displayed in the Web home page (see Figure 1).
Self updating web page comments