THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
Wiki Markup |
---|
{scrollbar} |
Excerpt | ||
---|---|---|
| ||
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.
...