HTML and CSS Reference
We've now implemented the component model, the custom component, the custom component renderer, and
the TLD for the component. See Figure 6-5 for a class diagram of the final component. Finally, we must implement a
simple application to test if the component works as expected.
Figure 6-5. UML diagram of the classes and file that make up the RandomText custom component
Example of using the RandomText component
To demonstrate the RandomText component, we will create an application where the component attributes can be
controlled through input controls; see Figure 6-6 .
Figure 6-6. Input controls for testing the RandomText component
Search WWH ::