JSF 1.2 Anchor Component

See Also

The Anchor component Anchor Component icon creates the equivalent of an HTML anchor, an <a> tag. As with the <a> tag, this component can be a link to a URL, a simple hyperlink that does not submit the page, or a named anchor defining a location in a page. If you want a hyperlink that submits the page or you want a link to another page in your application, use the Hyperlink or the Image Hyperlink component.

To use the component as a named anchor:

Drop the Anchor component at the bottom of a page and set its id property or leave it set to the default value, such as anchor1. Do not set any other properties. You get the HTML equivalent of <a name="anchor1"></a>. You could then add a hyperlink to the top of the page and set the hyperlink's url property to #anchor1 to link it to the anchor.

In general, to use the component as a named anchor, drop it on the page at the location to which you want the page to scroll when the user clicks a link to the anchor. You can rename the anchor by setting its id property.

To use the component as a hyperlink:

Drop the Anchor component on the page and set its text property to the visible text of the link and its url property to the URL to which you want to link. For example, the text could be Sun Web Site and the url could be http://www.sun.com, equivalent to the HTML <a href="http://www.sun.com>Sun Web Site</a>. When the user clicks the link, the page goes to the URL without being submitted.

See Also
Anchor Component Properties Window
Binding Component Properties
Working With Components
Component Tasks: Quick Reference
About the Visual Web Palette

Legal Notices