Add icon (e.g. material design or Prime Icons) to a p:inputText

前端 未结 2 1616
小蘑菇
小蘑菇 2021-01-22 20:07

I want to add an icon for an input text element, in a JavaEE project:


    

        
2条回答
  •  青春惊慌失措
    2021-01-22 20:22

    You can make use of Primefaces input group. refer https://www.primefaces.org/showcase/ui/input/inputGroup.xhtml

    But don't forget you do need to add the PrimeIcons by adding this to your h:head

    (like mentioned in https://www.primefaces.org/showcase/ui/misc/primeicons.xhtml)

提交回复
热议问题