| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| <!-- $Id$ --> |
| <html> |
| <head> |
| <title>contrib:When</title> |
| <link rel="stylesheet" type="text/css" href="Tapestry.css" title="style"> |
| </head> |
| |
| <body> |
| <table border="0" cellpadding="0" cellspacing="0" width="100%"> |
| <tr> |
| <td align="left"><a href="contrib.TableView.html"><img alt="TableView" src="common-images/prev.png"></a></td> |
| <td align="right"><a href="index.html"><img alt="Component Index" src="common-images/home.png" ></a></td> |
| </tr> |
| <tr> |
| <tr> |
| <td colspan="3"><hr></td> |
| </tr> |
| <tr> |
| <td colspan="3"> |
| <table border="0" cellpadding="4" cellspacing="4" width="100%"> |
| |
| <tr valign="top"> |
| <td> |
| <table> |
| <tr> |
| <td><font size="+2"><b>contrib:When</b></font></td> |
| </tr> |
| <tr> |
| <td> |
| <A href="../api/org/apache/tapestry/contrib/components/When.html">org.apache.tapestry.contrib.components.When</a> |
| </td> |
| </tr> |
| </table> |
| </td> |
| <td> |
| <table align="right" valign="middle" bgcolor="#c0c0c0" cellpadding="8"> |
| <tr> |
| <td> Non Visual Component</td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| |
| <tr valign="center"> |
| <td colspan="2"> </td> |
| </tr> |
| |
| <tr> |
| <td colspan="2"> |
| <b>Description</b> |
| <br> |
| Describes one of the alternatives to be chosen by the contrib:Choose |
| component. The default alternative is described by the contrib:Otherwise |
| component. |
| <p>Must have contrib:Choose as an immediate parent and must appear |
| before an contrib:Otherwise that has the same parent.</p> |
| </td> |
| </tr> |
| |
| <tr> |
| <td colspan="2"> |
| <b>See Also</b> |
| <br> |
| <A href="Conditional.html">Conditional</a>, <A href="contrib.Choose.html">contrib:Choose</a>, |
| <A href="contrib.Otherwise.html">contrib:Otherwise</a> </td> |
| </tr> |
| |
| <tr> |
| <td colspan="2"> |
| <b>Parameters</b> |
| <br> |
| <table border="1" cellpadding="4" cellspacing="4" class="parameters"> |
| <tr> |
| <th>Name</th> |
| <th>Type</th> |
| <th>Direction</th> |
| <th>Required</th> |
| <th>Default</th> |
| <th>Description</th> |
| </tr> |
| <tr> |
| <td>condition</td> |
| <td>String</td> |
| <td>in</td> |
| <td>no</td> |
| <td>false</td> |
| <td>The condition to test. If the expression evaluates to true, |
| then its content is rendered.</td> |
| </tr> |
| <tr> |
| <td>element</td> |
| <td>String</td> |
| <td>in</td> |
| <td>no</td> |
| <td> </td> |
| <td>If specified and condition is satisfied, then the component acts like |
| an <a href="Any.html">Any</a>, emitting an open and close tag. |
| Informal parameters are applied to the tag. If no element is |
| specified, informal parameters are ignored.</td> |
| </tr> |
| </table> |
| <p> Body: <strong>rendered</strong><br> |
| Informal parameters: <strong>allowed</strong><br> |
| Reserved parameters: <EM>invert</EM></p> |
| </td> |
| </tr> |
| |
| <tr> |
| <td colspan="2"> <b>Examples</b> |
| <p> Please see the documentation for the <a href="contrib.Choose.html">contrib:Choose</a> |
| component.</p> |
| |
| |
| </td></tr></table> |
| </td></tr> |
| <tr> |
| <td colspan="3"><hr></td> |
| </tr> |
| <tr> |
| <td align="left"><a href="contrib.TableView.html"><img alt="TableView" src="common-images/prev.png"></a></td> |
| <td align="right"><a href="index.html"><img alt="Component Index" src="common-images/home.png" ></a></td> |
| </tr> |
| </table> |
| |
| </body> |
| </html> |