Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added {scrollbar} for navigation and {excerpt} text
Wiki Markup
{scrollbar}

Excerpt
hiddentrue

Performing the equivalent of a "switch" statement in your component template using blocks and a delegate

Switching Cases

With Tapestry's If component you can only test one condition at a time. In order to distinguish multiple cases, you'd have to write complex nested if/else constructs in your page template and have a checker method for each test inside your page class.

...