public class Unless extends AbstractConditional
If
component that inverts the meaning of its
test. This is easier than an If
component with the negate parameter set to true
.Name | Type | Flags | Default | Default Prefix |
---|---|---|---|---|
else | org. | literal | ||
An alternate org.apache.tapestry5.Block to render if org.apache.tapestry5.corelib.base.AbstractConditional#test() is false. The default, null, means render nothing in that situation. | ||||
test | boolean | Required | prop | |
If true, then the body of the component is omitted. If false, the body is rendered. | ||||
then | org. | literal | ||
The org.apache.tapestry5.Block to render if org.apache.tapestry5.corelib.base.AbstractConditional#test() is true. The default, null, means render the component body in that situation.. |
Constructor and Description |
---|
Unless() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
test()
Performs the test via the parameters; return true to render the body of the component, false to render the else
block (or nothing).
|
public Unless()
protected boolean test()
AbstractConditional
test
in class AbstractConditional
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.