hst-core-tags
Tag headContribution


A HstComponent can contribute HTML HEAD elements to the page aggregation. Because the output of a HstComponent is usually put in the middle of BODY area, it is not recommended to include some javascripts or style definitions in its view page. If the view page uses this headContribution tag including some head element, then the container will include the head element at the final page aggregation phase.

Example:
<hst:headContribution keyHint="generator"> <meta name="generator" content="Hippo Site Toolkit 2"/> </hst:headContribution>


Tag Information
Tag Classorg.hippoecm.hst.tag.HeadContributionTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
keyHintfalsefalsejava.lang.StringTo avoid multiple inclusion of the same HEAD element like javascript library, this keyHint attribute can be provided to set the key for the HEAD element. If two HstComponents contribute HEAD elements with same keyHint attribute, the container will include the HEAD element only once. If the component does not provide keyHint attribute, the container will make a keyHint automatically by stringifying the included HEAD element by this tag.
elementfalsetrueorg.w3c.dom.ElementFor more optimized way to create and use DOM element, this tag supports setting a DOM element by element attribute. If this attribute is set, then the headContribution tag will not try to parse the body content to create a DOM element. Instead, it will use the passed DOM element by this attribute.
categoryfalsefalsejava.lang.StringCategory name of the contributed head element. The head elements can be filtered in or filtered out by this attribute.

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.