org.chenillekit.tapestry.core.components.Contains

Conditionally renders its body. If the value object is in the list, then the body of the Contains component is rendered. If not, the body is omitted and the else block is rendered.

[JavaDoc]

Component Parameters

Name Type Flags Default Default Prefix Description
else org.apache.tapestry5.Block NOT Allow Null prop An alternate org.apache.tapestry5.Block to render if the test parameter is false. The default, null, means render nothing in that situation.
list java.util.List Required, NOT Allow Null prop List, which might contain the object.
negate boolean NOT Allow Null prop Optional parameter to invert the test. If true, then the body is rendered when the test parameter is false (not true).
value Object Required, NOT Allow Null prop Value which might be contained in the list.

Back to index