webuijsf
Tag link


Use the webuijsf:link tag to insert header references to other documents related to this HTML page. The webuijsf:link tag must be used inside the webuijsf:head tag, and can be used multiple times for references to multiple documents. A common use for the webuijsf:link tag is to link to an external stylesheet, but it can also be used to provide information about the document's relationship to other documents.  There are a number of useful defaults making it simpler to specify an HTML link using this tag.

HTML Elements and Layout

The rendered HTML page contains <link> element, along with any attributes specified through the webuijsf:link tag attributes. 

Theme Identifiers

None.

Client Side Javascript Functions

None.

Example

Example 1: Create a context relative link to a stylesheet

<webuijsf:page>
    <webuijsf:html>
       <webuijsf:head id="blah" title="hyperlink test page">
          <webuijsf:link url="/context-relative-path/tomyfile/stylesheet.css">
       </webuijsf:head>
       <webuijsf:body>
       </webuijsf:body>
    </webuijsf:html>
</webuijsf:page>


Tag Information
Tag Classcom.sun.webui.jsf.component.LinkTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
bindingfalsefalsejava.lang.String A ValueExpression that resolves to the UIComponent that corresponds to this tag. This attribute allows the Java bean that contains the UIComponent to manipulate the UIComponent, its properties, and its children.
typefalsefalsejava.lang.String

Specifies the MIME type of the target URL. Default is: "text/css"

relfalsefalsejava.lang.String

Defines the relationship between the current document and the targeted document. Default is "stylesheet". Other possible values are described at w3.org.

mediafalsefalsejava.lang.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".

urlfalsefalsejava.lang.String

The absolute or relative target URL of the resource.

renderedfalsefalsejava.lang.String Use the rendered attribute to indicate whether the HTML code for the component should be included in the rendered HTML page. If set to false, the rendered HTML page does not include the HTML for the component. If the component is not rendered, it is also not processed on any subsequent form submission.
charsetfalsefalsejava.lang.String

Defines the character (charset) encoding of the target URL. Default value is "ISO-8859-1".

urlLangfalsefalsejava.lang.String

Defines the ISO language code of the human language used in the target URL file. For example, valid values might be en, fr, es.

idfalsetruejava.lang.StringNo Description

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.