The other way is to bind the dynamic elements directly to the Web page.
This method is easier than the first because there is no need to find the parent node in the JSF components tree.
This means that even though dynamic elements can be created and added to a Web page during the run time, the Web page will not be refreshed automatically without interaction from the user.
So, how do you automatically update a Web page with dynamic elements?
You'll understand the Next, I'll talk about the other sub-process, creating dynamic GUI elements.
The dynamic GUI elements in this case are the category links (see Figure 1).
Within this article, I'll describe the following solutions: To better explain my solution, I'll work with a single example throughout the entire article.
The application is a Web site for online book sales.
The poll results and the real-time trading data are dynamic elements that are unknown until run time, but elements that should be added or updated when the server side sends a signal. A previous developer Works article, "Craft Ajax applications using JSF with CSS and Java Script, Part 2: Dynamic JSF forms" explains how to hide and display optional JSF components without refreshing a Web page.
However, you can't use the method described in that article to solve this problem.
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.