webuijsf
Tag head


Use the webuijsf:head tag to provide information about the document, to be used in the <head> element of the rendered HTML page.  The webuijsf:head tag must be placed immediately after the webuijsf:html tag, within the webuijsf:page tag.  The following tags can be used as children of the webuijsf:head tag:

HTML Elements and Layout

The <head> element is rendered in the HTML page, and can include information that is valid for inclusion in the HTML <head> element. For example, if you use the webuijsf:link tag in the webuijsf:head tag, you can provide the URL to a style sheet. The style sheet link  will be rendered as a <link> element in the <head> element of the HTML page.  In addition this tag will output the appropriate stylesheets for the included components on the page.

The browser does not display the information in the <head> element to the user, with the exception of the title that is used in the browser's title bar.  

Facets

The Head component supports the following facet
title

Specify customized title that needs to rendered

Client Side Javascript Functions

None.

Example

Example 1: Create a head tag

<webuijsf:page>
    <webuijsf:html>
       
<webuijsf:head title="Name of the page..title is required">
           <webuijsf:link url="/relativepath/x.css" />
               <webuijsf:script url="/relativepath/x.js" />
       
</webuijsf:head>
       
<webuijsf:body>
           
....your page content....
       
</webuijsf:body>
   
</webuijsf:html></webuijsf:page>  


Tag Information
Tag Classcom.sun.webui.jsf.component.HeadTag
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.
dijitAllfalsefalsejava.lang.String Flag (true or false) indicating to include all dijit functionality.

For better performance, only the most commonly used features are included by default. Dojo will continue to function, but JavaScript may be retrieved using separate requests.

To limit the number of JavaScript requests, set dijitAll to true when this functionality is needed. The default is false.

@deprecated Dojo is no longer included in the page.
titlefalsefalsejava.lang.String

Title of the document to be displayed in the browser title bar.

styleSheetfalsefalsejava.lang.String

If set to true, a link element with a reference to the theme stylesheet resource is rendered.

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.
javaScriptfalsefalsejava.lang.String Flag (true or false) indicating that component and third party JavaScript should be output in page. The default value is true.
profilefalsefalsejava.lang.String

A space separated list of URL's that contains meta data information about the page

idfalsetruejava.lang.StringNo Description
jsfxfalsefalsejava.lang.String Flag (true or false) indicating to include JSF Extensions.

For better performance, JSF Extensions may be lazily loaded only when Ajax functionality is needed. When referencing DynaFaces or Prototype APIs directly, use the JSF Extensions tag to include these resources when the page is loaded. For example:

 <%@ taglib prefix="jsfx" uri="http://java.sun.com/jsf/extensions/dynafaces" %>
 
 
   
     
   
     
 
 
 

In this case, set the jsfx property to false to prevent Woodstock from including JSF Extension resources.

metafalsefalsejava.lang.String Flag (true or false) indicating if meta data should be rendered. The default value is true. @deprecated Using meta tags and pragma headers are not very effective for broswer caching. In fact, they are only honored by a few browser caches. For more information, see http://www.mnot.net/cache_docs.
debugfalsefalsejava.lang.String Flag (true or false) indicating that debugging is enabled. This will output uncompressed JavaScript and enable debugging. The default is false.
parseOnLoadfalsefalsejava.lang.String Flag (true or false) indicating to parse HTML markup.

For better performance, HTML markup is parsed in order to create widgets more efficiently. Performance testing shows this approach is quicker than using the document.getElementById() function or Level 0 DOM syntax, especially for large HTML tables. The underlying problem appears to be the extra step taken to convert HTML element IDs to a UTF-16 character encoding.

The parseOnLoad approach allows for progressive HTML rendering. However, partially rendered HTML may be displayed before widgets have been created. If this behavior is undesirable, set the parseOnLoad property to false and widgets shall be rendered inline.

webuiAllfalsefalsejava.lang.String Flag (true or false) indicating to include all tag library functionality.

For better performance, Javascript is included in the page for only the most commonly used tags (default). Other tags will continue to function, but additional requests may be generated to include more resources. Set the webuiAll property to true to include JavaScript resources when the page is loaded, using a single request. Use this feature in combination with the webuiJsfx property to include default Ajax functionality based on JSF Extensions.

webuiJsfxfalsefalsejava.lang.String Flag (true or false) indicating to include default Ajax functionality based on JSF Extensions.

For better performance, Ajax functionality is not included in the page by default. Ajax features will continue to function, but additional requests are lazily generated to retrieve JavaScript resources as needed, including JSF Extensions. Set the webuiJsfx property to true to include JavaScript resources when the page is loaded, using a single request. Use this feature in combination with the webuiAll property to include all tag library functionality.

webuiOnLoadfalsefalsejava.lang.String Flag (true or false) indicating to initialize tag library functionality on load.

The document.getElementById() function and Level 0 DOM syntax can be expensive calls, especially for large HTML tables. For better performance, initialization is deferred until the page has loaded. This allows for progressive HTML rendering. However, partially rendered HTML may be displayed before JavaScript widgets have been created. Set the webuiOnLoad property to false to initialize tags as the page is read by the browser.

defaultBasefalsefalsejava.lang.String

Flag (true or false) indicating that a default html base tag should be shown or not. Changing this attribute could cause webuijsf:anchor to not work properly. The default value is false.


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.