Render the markup for
a <!DOCTYPE>
declaration.
Decode Behavior
No action is required during decode for this renderer.
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.
Info | Value |
---|---|
Component Type | javax.faces.HtmlDoctype |
Handler Class | None |
Renderer Type | javax.faces.Doctype |
Description | None |
Name | Required | Type | Description |
---|---|---|---|
converter | false | javax.el.ValueExpression
(must evaluate to javax.faces.convert.Converter )
| Converter instance registered with this component. |
id | false | javax.el.ValueExpression
(must evaluate to java.lang.Boolean )
| The component identifier for this component. This value must be unique within the closest parent component that is a naming container. |
value | false | javax.el.ValueExpression
(must evaluate to java.lang.Object )
| The current value of this component. |
public | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
|
Will be output as the public part of the DOCTYPE
|
rootElement | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
|
The root XML element
|
system | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
|
Will be output as the system part of the DOCTYPE
|
binding | false | javax.el.ValueExpression
(must evaluate to javax.faces.component.UIComponent )
| The ValueExpression linking this component to a property in a backing bean |