Nov 5, 2017

Watermark / placeholder in Primefaces

We can use watermark in Primefaces:
<p:inputText id="phrase" required="true" 
 label="phrase" size="40" value="#{bean.phrase}" />

<p:watermark for="phrase" value="Input your phrase:" />