Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Minor formatting

...

In our example, we'll use "happy" as the folder name. That means the application will can include the HappyIcon component in the template asusing any of the following, which are all equivalent:

  • <t:happy.happyicon/>
  • or <t:happy.icon/>
  • <img t:type="happy.happyicon"/> or
  • <img t:type="happy/icon"/">

Why "icon" vs. "happyicon"? Tapestry notices that the folder name, "happy" is a prefix or suffix of the class name ("HappyIcon") and creates an alias that strips off the prefix (or suffix). To Tapestry, they are completely identical: two different aliases for the same component class name.

...