org.apache.tapestry5.corelib.components.If.xdoc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tapestry-core Show documentation
Show all versions of tapestry-core Show documentation
Central module for Tapestry, containing interfaces to the Java
Servlet API and all core services and components.
Here, the main text is rendered if the user is logged in (the user property will
be non-null after the user logs in). Otherwise, links to a login and register
page are rendered.
Note the use of the
p:
namespace (new in Tapestry 5.1). In 5.0, this would be
<t:parameter name="else">
.
Tapestry has many built in coercions to boolean:
- String
- True if non-blank and not the literal string "false" (case insensitive)
- Number
- True if non-zero
- Collection
- True if non-empty
- Object
- True (as long as its not null)