public class Html5RenderKit extends RenderKitWrapper
This HTML5 render kit adds support for HTML5 specific attributes which are unsupported by the JSF UIForm
and
UIInput
components. So far in JSF 2.0 and 2.1 only the autocomplete
attribute is supported in
UIInput
components. All other attributes are by design ignored by the JSF standard HTML render kit. This
HTML5 render kit supports the following HTML5 specific attributes:
UIForm
: autocomplete
UISelectBoolean
, UISelectOne
and UISelectMany
:
autofocus
HtmlInputTextarea
: autofocus
maxlength
placeholder
wrap
HtmlInputText
: type
(supported values are
text
(default), search
, email
, url
, tel
,
range
, number
and date
)autofocus
list
pattern
placeholder
min
max
step
type
of
range
, number
and date
)
Note: the list
attribute expects a <datalist>
element which needs to be coded in
"plain vanilla" HTML (and is currently, June 2012, only supported in Firefox 4 and Opera 11). See also
HTML5 tutorial.
Refer the documentation of Html5RenderKitFactory
how to setup it.
Constructor and Description |
---|
Html5RenderKit(RenderKit wrapped)
Construct a new HTML5 render kit around the given wrapped render kit.
|
Modifier and Type | Method and Description |
---|---|
ResponseWriter |
createResponseWriter(Writer writer,
String contentTypeList,
String characterEncoding)
Returns a new HTML5 response writer which in turn wraps the default response writer.
|
RenderKit |
getWrapped() |
addClientBehaviorRenderer, addRenderer, createResponseStream, getClientBehaviorRenderer, getClientBehaviorRendererTypes, getComponentFamilies, getRenderer, getRendererTypes, getResponseStateManager
public Html5RenderKit(RenderKit wrapped)
wrapped
- The wrapped render kit.public ResponseWriter createResponseWriter(Writer writer, String contentTypeList, String characterEncoding)
createResponseWriter
in class RenderKitWrapper
public RenderKit getWrapped()
getWrapped
in interface FacesWrapper<RenderKit>
getWrapped
in class RenderKitWrapper