Name

Output/Link

Synopsis

This renderer represents an output component as a link.

Component family:

javax.faces.Output

Renderer type:

javax.faces.Link

Renders children:

No

Encode behavior

Renders the component as an HTML <a> element with an href attribute set to the component’s value. If the component has UIParameter component children, their name and value properties are added as query string parameters to the href attribute value, with both the name and value URL-encoded. The component’s children that are not UIParameter components are rendered as the content of the <a> element, i.e., as the link text or image.

Decode behavior

None.

Attributes

[accesskey="accessKey"] [charset="charset"] [coords="coords"]
[dir="ltr|rtl"] [hreflang="lang"] [lang="lang"]
[onblur="code"] [onclick="code"] [ondblclick="code"] [onfocus="code"]
[onkeydown="code"] [onkeypress="code"] [onkeyup="code"]
[onmousedown="code"] [onmousemove="code"] [onmouseout="code"]
[onmouseover="code"] [onmouseup="code"]
[rel="rel"] [rev="rev"] [shape="shape"] [style="style"]
[styleClass="styleClass"] [tabindex="tabIndex"] [target="target"]
[title="title"] [type="contentType"]

Get JavaServer Faces now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.