You see the Properties window for a JavaServer Faces Link Action when you select the outer part of the component on a page that you are editing in the Visual Designer or you select the Link Action part of this composite component in the Navigator window.
This standard JavaServer Faces component has the following properties.
Type: text
Type: String
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
Type: String
Set the event properties by right-clicking the component in the Visual Designer and choosing Edit Event Handler > eventname.
CommandHyperlink1_action
, the IDE adds it to the page bean for you and updates the value of the Application Action property to point to that method.
If all you want to do is have the Link Action display another page when the user clicks it, you do not need an action method. The easiest thing to do is open the page in the Navigation Editor, click the page and then click the Link Action, and then drag to the page you want the Link Action to open. See Setting Up Static Page Navigation for more information.
If you want the Link Action to be able to determine which page to open based on certain conditions, then you need an action method. The action method typically processes Link Action clicks and returns a string indicating the name of a page navigation case (the page in your application to display next). You typically define this method by selecting the component in the Visual Designer, then right-clicking the Link Action part of the component in the Navigator window, and then choosing Edit Event Handler > action. The default name for the method is CommandHyperlink-id
_action
, where CommandHyperlink-id is the value of the Link Action's id
property. For more information, see Setting Up Dynamic Page Navigation.
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: String
accesskey
attribute of the HTML <input>
tag. Type: MethodBinding
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. You can type a MethodBinding
expression directly into this actionListener property, for example, if you want to call a method that is not in the page bean.
Type: String
charset
of the <a>
tag. You can see a list of encodings at Type: String
coords
of the <a>
tag. The number and order of values depends on the shape being defined. Possible combinations are:
Coordinates are relative to the top, left corner of the object. All values are lengths. All values are separated by commas.
Type: String
dir
attribute of the HTML <input>
tag.
Values can be:
Type: String
Type: boolean
The most common example of an immediate action is a Cancel button. You make it immediate so that the normal validation and update steps can be skipped, but the action handler can still do whatever is necessary. Typically, the action handler will navigate back to some previous page. In some designs the action handler might also enqueue an informational message like "Transaction cancelled". It is possible to do more: for example, an application might record the fact that the user got partially through a form and then cancelled it.
Type: String
lang
attribute of the HTML <input>
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: String
rel
: a space separated list of types. The types can be any of the following:
Type: boolean
Type: String
rev
, a space-separated list of types. See the Relationship property above for a list of types. Type: String
shape
of the <a>
tag. Possible values are:
Type: String
tabindex
attribute of the HTML <input>
tag. Type: String
type
, which is a MIME type, such as text/html
, image/png
, image/gif
, video/mpeg
, text/css
, or audio/basic
.