Feel free to check out my Tapestry Include component. This component is intended to provide basic functionality of a server-side include. |
You may download the source code here. |
To start using this component immediately, follow these steps:
|
There are a couple of caveats you should keep in mind when using this component:
- The page you are Including should ideally not include any <html> or <body> tags, since the Include component will blindly insert everything
it finds. The target Include page should be created with the intention of being inserted into another page.
- The target Include URI should point to a text source, since again it will blindly insert whatever content it finds. If the URI resolves to
a binary object such an image, the raw (binary) data will be happily inserted into your page.
|
Hopefully you will find this component useful.
|