Frame Component Index Hidden

GenericLink
org.apache.tapestry.link.GenericLink
Generic Link
 
Description
Creates a HTML <a> hyperlink for an arbitrary URL.

Although a GenericLink can be accomplished using an Any component, a GenericLink is more flexible: it can be disabled, like a DirectLink or ActionLink and can also wrap around Rollover components. GenericLinks are often used with javascript: URLs to perform client-side scripting.

See Also
ActionLink, DirectLink, ExternalLink, PageLink, Rollover, ServiceLink
Parameters
Name Type Direction Required Default Description
href String in yes   The URL to trigger when the link is clicked. This is often of the form:
<a href="javascript:functionName('param')">
disabled boolean in no false Controls whether the link is produced. If disabled, the portion of the template the link surrounds is still rendered, but not the link itself.
anchor String in no   The name of an anchor or element to link to. The final URL will have '#' and the anchor appended to it.
renderer ILinkRenderer in no   The object which will actually render the link.

Body: rendered
Informal parameters: allowed
Reserved parameters: none

Examples

This example is under construction.


Frame Component Index Hidden