@SupportsInformalParameters public class Dynamic extends Object
param:
, the remainder is the name of
a Block parameter. There are no limitations on what can appear inside such a Block: text, components, forms, even the
<t:body/> directive.
Dynamic templates emulate how expansions work in standard Tapestry templates: Expansions (the ${ ... }
syntax) can appear in attribute values or interspersed in element text. This allows container properties, messages,
assets, and so forth to be referenced within the external template. It should be noted that such access is quite a
bit less efficient than putting such expansions inside a referenced Block, but this should not be a big concern
outside of some kind of tight rendering loop.DynamicTemplate
,
DynamicTemplateParser
Name | Type | Flags | Default | Default Prefix |
---|---|---|---|---|
template | org. | Required, Not Null | asset | |
The dynamic template containing the content to be rendered by the component. |
public Dynamic()
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.