|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.render.RenderKit
javax.faces.render.RenderKitWrapper
org.omnifaces.renderkit.Html5RenderKit
public class Html5RenderKit
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 Summary | |
---|---|
Html5RenderKit(javax.faces.render.RenderKit wrapped)
Construct a new HTML5 render kit around the given wrapped render kit. |
Method Summary | |
---|---|
javax.faces.context.ResponseWriter |
createResponseWriter(java.io.Writer writer,
java.lang.String contentTypeList,
java.lang.String characterEncoding)
Returns a new HTML5 response writer which in turn wraps the default response writer. |
javax.faces.render.RenderKit |
getWrapped()
|
Methods inherited from class javax.faces.render.RenderKitWrapper |
---|
addClientBehaviorRenderer, addRenderer, createResponseStream, getClientBehaviorRenderer, getClientBehaviorRendererTypes, getComponentFamilies, getRenderer, getRendererTypes, getResponseStateManager |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Html5RenderKit(javax.faces.render.RenderKit wrapped)
wrapped
- The wrapped render kit.Method Detail |
---|
public javax.faces.context.ResponseWriter createResponseWriter(java.io.Writer writer, java.lang.String contentTypeList, java.lang.String characterEncoding)
createResponseWriter
in class javax.faces.render.RenderKitWrapper
public javax.faces.render.RenderKit getWrapped()
getWrapped
in interface javax.faces.FacesWrapper<javax.faces.render.RenderKit>
getWrapped
in class javax.faces.render.RenderKitWrapper
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |