You see the Properties window for a Link component when you select the component in the Navigator window.
This component has the following properties.
General
id.Type: String
The name of the Link component in the page bean and the JSP file.
Appearance
media. Type: String
Specifies the type of display device for which the referenced document is
designed. The media attribute is useful for specifying different stylesheets for
print and viewing on a screen. The default value is screen. For a complete list of media values see the W3C web page at
rel. Type: String
Specifies the relationship between the current document and the target document.
The default value is stylesheet because the default target document is the project's style sheet. This property is the equivalent of the rel attribute of the HTML <link> tag. The property can take any of the following values:
Alternate. Substitute versions for the document in which the link occurs. When used with the lang attribute, it means that the substitute is a translated version of the document.
Appendix. An appendix in a collection of documents.
Bookmark. A link to an entry point in a document.
Chapter. A chapter in a collection of documents.
Contents. A table of contents.
Copyright. A copyright for the current document.
Glossary. A glossary of terms for the current document.
Help. A help document.
Index. An index for the current document.
Next. The next document in a sequence of documents.
Prev. The previous document in a sequence of documents.
Section. A section in a collection of documents.
Start. The first document in a collection of documents: the starting point of the collection.
Stylesheet. Refers to an external style sheet. Used with the link type Alternate to provide for user-selectable alternate style sheets.
Subsection. A subsection in a collection of documents.
type. The mime type of the reference specified in the url property, such as text/html, image/png, image/gif, video/mpeg, text/css, or audio/basic. This value defaults to text/css because the default reference is the project's style sheet. This property is the equivalent of the type attribute of the HTML <link> tag.
url. An absolute or relative URL specifying the target of the link. This value is set by default to the URL /resources/stylesheet.css. This property is the equivalent of the href attribute of the HTML <link> tag.
Advanced
charset. Type: String
The character encoding of the document or resource to which this link links. Equivalent to the HTML attribute charset of the <a> tag. You can see a list of encodings at the following web page:
.
rendered. Type: boolean
If selected, the link is to be rendered and processed on any subsequent page submission. If not selected, the link is not rendered on the page, not even as a hidden component.
You can bind this property to a JavaBeans property that determines when the link does get rendered. For example, an airline reservation form might use the link to provide a stylesheet for frequent flyers and not provide it for the general public. To bind this property, click the ellipsis button (...) to the right of the property and choose Use Binding in the dialog box.
urlLang. Type: String
Code describing the language used in the generated markup for the component. Equivalent to the 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 Arabic
de - German
en - English
es - Spanish
fr - French
ja - 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 English
ja-JP - Japanese
zh-guoyu - Mandarin or Standard Chinese
zh-Hans - Simplified Chinese script
zh-HanT - Traditional Chinese script
For more information on the HTML <link> tag's attributes, see the W3C web page at: