How to add placeholder attribute to JSF input component?

后端 未结 9 912
耶瑟儿~
耶瑟儿~ 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:47

    In case you are using RichFaces, starting in version 4.3, you can use the tag "rich:placeholder" for this purpose as shown here. Basically:

    
        
    
    

提交回复
热议问题