HTML5 support was added in JSF2.2 . From then on, you can add Passthrough attributes to JSF-Components:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://java.sun.com/jsf/passthrough">
<h:form>
<h:inputText p:type="email" />
</h:form>
</html>
Attributes that are unknown will be ignored by JSF (2.0 and 2.2). If you need to render HTML5 attributes using JSF2.0, you can use Omnifaces HTML5 Renderkit .
Pure HTML tags are just pure HTML tags. They are not JSF components. This way they will appear in the view, but JSF does not care about them and will not update your model.
JSF2.2 Passthrough Elements. HTML- JSF-:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:jsf="http://java.sun.com/jsf"
xmlns:f="http://java.sun.com/jsf/core">
<input jsf:id="foo" type="text" jsf:value="#{bean.bar}">
</html>
JSF , UIComponent HTML- h: inputText. UIComponent JSF , ajax.
: JSF 2.2: HTML5