N
N
nubus40002018-02-26 09:37:07
Java
nubus4000, 2018-02-26 09:37:07

How to make a button with a custom image in ICEfaces 3 and above?

Hello. There is code that works with ICEfaces components version 2 and below:

<ice:commandLink partialSubmit="true"
                             title="#{controller.description}"
                             actionListener="#{controller.actionPerformed}"
                             styleClass="toolbarButtonText"
                             immediate="#{controller.action.immediate}"
            >
                <h:graphicImage value="#{controller.icon!=null?(controller.icon):(sessionContext.styleManager.zeroIcon)}"
                                border="0" alt="#{controller.description}"/>
                <h:outputText value="#{controller.title}"
                                rendered="#{controller.icon==null}"/>
            </ice:commandLink>

The essence of the code is that a button with a custom image appears on the page, which, when pressed, does not reload the page.
How to do the same but with ACE components instead of ICE? I tried following the guide, but it didn't work.
According to the guide, it was necessary to replace the ice:commandLink component with ace:linkButton, but this component has a value value in which text is passed, not an image, and this text is the link. Removing text does nothing.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question