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 - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -