| Use
the ui:iconHyperlink
tag to display a clickable icon image from the current theme in the
rendered HTML page. The iconHyperlink
component is
essentially a subclass of the imageHyperlink
component.
The ui:iconHyperlink
tag allows you to use an
icon (a small image) from the current theme. Currently the list of
icons that you can use is not publicly supported, but the icon names
are specified in the /com/sun/rave/web/ui/suntheme/SunTheme.properties
file. The names are listed as resource keys of the format image.ICON_NAME.
Use only the part of the key that follows image.
For
example, if the key is image.ALARM_CRITICAL_SMALL ,
you
should use ALARM_CRITICAL_SMALL
as the specified
icon name in the ui:iconHyperlink
tag. In the near future a
supported list will be published. This tag is based on a ui:hyperlink
tag and functions the same way. The main difference is this
tag will format an image with a surrounding hyperlink. See
the ui:hyperlink
tag for more examples on using a hyperlink
The
iconHyperlink component
can be also be used to submit forms. If the action attribute is used,
the form is submitted. If the
url attribute is used, the link is a normal hyperlink that sends the
browser to a new location.
HTML
Elements and Layout
The
rendered HTML page displays....
Theme
Identifiers
None.
Client-side
JavaScript functions
None.
Examples
Example
1: Create an IconHyperlink using showing
the required
indicator
<ui:iconHyperlink
id="iconhyperlinktest1"
icon="LABEL_REQUIRED_ICON"
action="#{HyperlinkBean.getRequiredHelp}" />
Auto-generated component class.
Do NOT modify; all changes
will be lost!
|