You can drag the Standard JavaServer Faces Hyperlink component
from the Palette's Standard category to the Visual Designer to create a standard hyperlink to a URL.
When the web page is generated, the Hyperlink becomes an HTML <a>
element.
After dragging the component to the Visual Designer, you can do a number of things with it:
HtmlOutputHyperlink
and an embedded HtmlOutputText
component. Depending
on where you click this component in the Visual Designer, you
get different Properties windows. You use the HtmlOutputHyperlink
to set the link part of the component, and the HtmlOutputText
part to set the text of the link.
When this composite component is selected in the Visual Designer, you see it in the Navigator window, and you can
see which part of the component you have selected. The hyperlink
is
the main node of the component, and the hyperlinkText
is
a subnode. You can also use the Navigator window to select either part of the component and work
with the selected component part's properties.
id
attribute. In
the page bean, this property's value is the name of the
HtmlOutputHyperlink
object.value
property to an object or a data provider, as described in the topic Bind to Data Dialog Box. vlaue
property to other objects or bean properties that update this component's properties automatically.