h
Tag doctype


Render the markup for a <!DOCTYPE> declaration.

Decode Behavior

Encode Behavior

Output an XML Doctype using the provided attributes. Output the literal text <!DOCTYPE. The "rootElement" attribute is required and must be rendered next. If the "public" attribute is defined, render the literal text PUBLIC then render the value of the attribute inside double quotes. If the "system" attribute is defined, render it next, inside double quotes. Close the doctype declaration with the literal text >.

No relocation occurs with the output of this component. It is rendered at whatever position in the view hierarchy it happens to be encountered when traversing the view to render. Therefore, this component must be located in the view hierarchy at the correct location so that the final rendered markup has it in the proper place with respect to the user agent that consumes the rendered markup. In practice this means in front of the <html> or <h:html> element. Furthermore, if multiple <h:doctype> components exist, all of them will be rendered.

If this component is present in a view, any DOCTYPE that would otherwise have been rendered by virtue of being present in the VDL page must be ignored.



Tag Information
Tag Class.OutputDoctypeTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
converterfalsefalsejavax.el.ValueExpression
(must evaluate to javax.faces.convert.Converter)
Converter instance registered with this component.
idfalsetruejava.lang.StringThe component identifier for this component. This value must be unique within the closest parent component that is a naming container.
renderedfalsefalsejavax.el.ValueExpression
(must evaluate to boolean)
Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit. The default value for this property is true.
valuefalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
The current value of this component.
publicfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
Will be output as the public part of the DOCTYPE
rootElementtruefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
The root XML element
systemfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
Will be output as the system part of the DOCTYPE
bindingfalsefalsejavax.el.ValueExpression
(must evaluate to javax.faces.component.UIComponent)
The ValueExpression linking this component to a property in a backing bean

Variables
No Variables Defined.