Basic JSF2 HTML5 Components

HTML5 introduced new web form elements to cater to common input types. None of these new elements have JSF equivalents. In this chapter we will look at four of the new HTML5 input types and implement them as composite components. The input types implemented in this chapter are the Input Color, Date Picker, Slider, and Spinner types. The other components are left as an exercise for the reader to implement. A complete list of the new input types can be found in Table 7-1.

Table 7-1. New Input Types in HTML5

Input Color Custom Component

In this section we will implement the HTML5 color input element as a ...

Get Pro JSF and HTML5: Building Rich Internet Components, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.