Allows to execute one among of a number of possible alternatives.
Syntax:
<p:choose>
<p:when test="...">
[... any publisher instruction ...]
</p:when>
[... more p:when's ...]
<p:otherwise>
[... any publisher instruction ...]
</p:otherwise>
</p:choose>
There should be at least one p:when, the p:otherwise is optional.
The test attributes contains an expression as in the where-clause of the query language. Since it always contains an expression, no ${...} should be used.
p:choose itself doesn't generate any response, only the response from the executed alternative will be present in the output.