(Quick Reference)
p:callTag
Purpose
Enables you to call another named tag, so that the tag called can be determined at runtime.
Example
<p:callTag tag="p:button" text="OK"/>
<p:callTag tag="p:button" bodyContent="OK"/>
<p:callTag tag="p:button">OK</p:callTag>
All three of the above invocations achieve the same thing.
Attributes
Name | Purpose |
---|
tag | Required - The name of the tag, optionally including colon-separated namespace |
bodyContent | Optional - A body to use for the tag when it is called. You can set this or use the body of the callTag itself, to pass a body to the tag you delegate to. |
Any other attributes specified are passed through to the tag called.