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:" />

Featured Post

Setup Chinese Input Method in Ubuntu 17.10 Artful

sudo apt install ibus-sunpinyin After either of those commands do not forget to restart the IBus daemon ibus restart You might need t...