A Tapestry component template file is an HTML file that defines the layout of a Web view component.

The name of the Tapestry component template file must match the name of the component specification JWC file.

Web View Template Access.html File

The following example shows a component template file that displays the user's username and adds a Logout link to a Web view page.

<vco jwcid="@Insert" value="ognl:page.user.displayName" />
<vco jwcid="@Insert" value="ognl:' (' + page.getUsername() + ')'" />
<a jwcid="@Any" href="ognl:page.webviewUrl + '?logout'">Logout</a>