How to show water mark in filter in primefaces?

后端 未结 3 522
借酒劲吻你
借酒劲吻你 2021-01-28 03:25

I have filters for columns.

Here i want to show water mark in filter (As Shown in figure in red circle)

I am using prime faces 3.4

I have tred this

3条回答
  •  灰色年华
    2021-01-28 03:53

    There is an attribute forElement of p:watermark for that. The specifications state that forElement should contain jquery selector of the html input component. But according to these threads here and here, the forElement should strictly be only the client ID of the html input component.

    So you can do following:

    
    
        
    
            Name
            
    
            
            
        
        ...............
        ..........
        ................
    
    

提交回复
热议问题