You see the Properties window for an Image Hyperlink component when you select the outer part of the component on a page that you are editing in the Visual Designer or you select the Image Hyperlink part of this composite component in the Navigator window.
This component has the following properties.
Type: String
Type: String
Type: int
Type: int
height
attribute of the <img>
tag. Not all browsers respond to this setting. Type: String
imageURL
property is not set. Type: String
icon
property if both properties have values set for them. If you click the ellipsis button (...), you can type in a URL for an image file on the Web, or you can navigate to an image file and import it into the project, or you can bind this property to a JavaBeans property that determines the URL, as described in imageURL Property Editor. Type: String
position: absolute; left: 288px; top: 312px
You can enter values directly or click the ellipsis (...) button to use the Style Editor.
For a list of CSS2 style attributes, see the web page at
Type: String
style
property description for an explanation of why a class added to this property might appear to have no effect on the component. Type: String
<a href="url">text</a>
. You can have both text and image visible for an image hyperlink. Type: String
Type: int
width
attribute of the <img>
tag. Not all browsers respond to this setting. Type: MethodBinding
action
property, the page is submitted when this component is activated.
The JSP tag for this property is actionExpression
.
url
property, the action will not take place. The url
property takes precedence over the action
property.If you right-click the component, you can choose Edit Event Handler to define an action method for the hyperlink and set this property's value automatically to this method. The action method determines which page to open based on certain conditions. The action method typically processes mouse clicks and returns a String
indicating the name of a page navigation case (the page in your application to display next). The default name for the method is hyperlink-id
_action
, where hyperlink-id is the value of the hyperllink's id
property.
Type: boolean
Type: String
_blank
- renders the response in a new, unnamed window _self
- renders the response in the current frame_parent
- renders the response in the immediate frameset parent _top
- renders the response in the full, unframed window Type: String
title
attribute of the component, which is readable by a screen reader and can be displayed as a tool tip.
Type: String
href
. If the value of this property is set, there are two consequences:
action
property is ignored. If you do not set this property, clicking the hyperlink submits the page. Typically, if you do not set this property, you use the action method to define what happens when the user clicks the hyperlink. See the action
property above for more information.
Type: boolean
rendered
property. Type: String
alt
of the <img>
tag. Type: String
Type: String
Type: String
Type: String
Type: String
Type: String
Type: String
Type: String
Type: String
Type: String
Type: String
Type: String
Type: MethodBinding
#{Page1.action_method}
, and it must evaluate to the name of a public method that takes an ActionEvent
parameter with a return type of void. Type: int
Type: boolean
Type: boolean
Type: String
type
, which is a MIME type, such as text/html
, image/png
, image/gif
, video/mpeg
, text/css
, or audio/basic
. Type: String
url
property. Equivalent to the hreflang
attribute of the HTML <a>
tag. To choose a language code, you can click the ellipsis button (...) to open the property editor. Some examples:
ar
- Traditional Arabicde
- Germanen
- Englishes
- Spanishfr
- Frenchja
- Japanese In addition to the codes available in the property editor, you can also enter additional codes using ISO standard names. Some examples:
en-US
- United States Englishja-JP
- Japanesezh-guoyu
- Mandarin or Standard Chinese zh-Hans
- Simplified Chinese scriptzh-HanT
- Traditional Chinese script Type: int