How to add placeholder attribute to JSF input component?

后端 未结 9 946
耶瑟儿~
耶瑟儿~ 2020-11-28 09:19

Shouldn\'t this line of code render a inputtext field with the placeholder text \"fill me\" when using html5?


         


        
9条回答
  •  不知归路
    2020-11-28 09:45

    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

提交回复
热议问题