How to put image instead of text in h:commandLink value

后端 未结 1 758
陌清茗
陌清茗 2021-01-22 14:17

I have a command link as below.



This is working fine, but I nee

相关标签:
1条回答
  • 2021-01-22 15:13

    You should remove value attribute and put <h:graphicImage> inside <h:commandLink>.

    <h:commandLink action="homePage">
        <h:graphicImage value="resources/images/img.png" />
    </h:commandLink>
    
    0 讨论(0)
提交回复
热议问题