CHAPTER 7

image

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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.