Tuesday, December 17, 2013

HTML5 support in <p:inputText /> with "type" attribute

There is a type attribute in <p:inputText /> component.
And there are few options for the type, which is text (default), number, email, color, etc.

Below is the code and screenshot for different type of <p:inputText />

Text: <p:inputText type="text"></p:inputText>

Number: <p:inputText type="number"></p:inputText>

Email: <p:inputText type="email"></p:inputText>

Color: <p:inputText type="color"></p:inputText>

File: <p:inputText type="file"></p:inputText>

Date: <p:inputText type="date"></p:inputText>


No comments:

Post a Comment


Related Posts Plugin for WordPress, Blogger...