Shouldn\'t this line of code render a inputtext field with the placeholder text \"fill me\" when using html5?
It's very easy and browser independent code as BaluSc told, In primefaces, use p:watermark to get the required functionality. Official Demo is HERE
p:watermark