General

General
Which Tapestry version does TapFX support?

Up to v0.26 of TapFX, the library has been tested on Tapestry 3.0.1 and 3.0.3. I don't think that earlier Tapestry versions are in use nowadays (but if you use one, you can always try the library).

If you're using Tapestry 4, check out tap4fx-components.

Installation

Installation
How do I install TapFX?

Two ways:

  • Download the jar(or zip) and add the jar to your project. In your .application file, add <library id="tapfx" specification-path="/net/sf/tapfx/tapfx.library"/>
  • Using the useful TapestryPalette eclipse plugin, add a Remote Library (Window->Preferences->Tapestry Palette->Remote Libraries) using the following url: http://tapfx.sourceforge.net/supplier-tapfx.xml . Then, from the Palette view, drag'n'drop TapFX into your .application file.

Using

Using
Why does Cache underperform (or I'm using Cache to surround a tapestry component that displays data from the DB, and the DB is always accessed)?

The Cache component only interacts with your page template. It does NOT alter the execution of your page's pageBeginRender or other such initialization methods. So, if you fetch all the DB data in that method, you aren't really gaining anything.

If, however, DB access is done lazily (i.e. not in pageBeginRender, but only when the enclosed component needs them) or within the component, then Cache will 100% work. This means that in order to make good use of the Cache component, you may have to alter a bit your page's code.