jsf - How do I add an image value to h:commandlink? -


this question has answer here:

can please tell me how add image value code instead of text value?

<h:commandlink      action="#{gridhandlerxml.removelinesfromgroups}"     render="quote-table, totalpanel, revisiontabs" execute="@this"     disabled="#{currentquote.convertinprogress}"      onclick="#{rich:component('fcprocessing:processingpopup')}.show()"      oncomplete="#{rich:component('fcprocessing:processingpopup')}.hide()" /> 

quite straightforward: embed an h:graphicimage in command link:

<h:commandlink action="#{gridhandlerxml.removelinesfromgroups}">     <h:graphicimage url="resources/path/to/your/image"/> </h:commandlink> 

Comments

Popular posts from this blog

java - Ebean enhancement ignores a model -

ubuntu - How to disable Kernel Module Signing in linux -

SQL php on different pages to Insert (mysqli) -