-
Book Overview & Buying
-
Table Of Contents
Tapestry 5: Building Web Applications
There are a few different reasons why one might want to create a custom component. Quite often there are pieces of interface or functionality that are replicated on different pages, so we have to write the same code again and again until we package the repeating pattern into a custom component.
Also, every framework is necessarily limited in terms of the number of components that come pre-packaged with it. Now and again we shall find that the component we need wasn't created by anyone. Or maybe the existing component just doesn't fit our needs, or the requirements of our clients. A developer friendly framework should provide an opportunity to easily extend it by being able to creating custom components. Tapestry does just this.
In particular, we are going to learn:
What it takes to create a Tapestry 5 component.
How to create a Border component that will contain all the elements common for all the pages and that will provide an easy way to ensure a common...
Change the font size
Change margin width
Change background colour