Thanks to f:passThroughAttribute (since JSF 2.2) it's possible to specify custom values for HTML attributes that doesn't exist in the tag where it is used.

General Usage

For this example, you will need an HTML5 capable browser. We are using a known HTML5 attribute for input elements, which will let us to render a number spinner using the native feature in browser.

Source Code

Liferay Faces Alloy 4.1.1 + Liferay Faces Bridge Implementation 5.0.0 + Showcase Common 4.0.0 + Liferay Faces Util 3.4.1 + Mojarra 2.2.20