OverviewSince 4.0 The ace:graphicImage component displays an image by specifying either a URL, a byte array, or an instance of org.icefaces.ace.util.IceOutputResource.
Getting StartedTo use the GraphicImage component, specify a URL where the image is located or specify a byte array value that contains the encoded image or an instance of org.icefaces.ace.util.IceOutputResource. <!-- Image loaded via URL --> <ace:graphicImage url="http://path.to/image.png" /> <!-- Image loaded via byte array --> <ace:graphicImage value="#{bean.byteArrayImage}" /> <!-- Image loaded via IceOutputResource --> <ace:graphicImage value="#{bean.resourceImage}" /> Attributes
The value of the url attribute is directly rendered as the value of the src attribute in the <img> element, which should be the location of the image to display. The value attribute is used to specify a byte array in a backing bean or an instance of IceOutputResource as the image to be displayed. The style and styleClass attributes work just as in other components, and they are applied to the <img> element. Event ListenersNone. Client Behavior EventsNone. JavaScript APINot applicable. Keyboard SupportNone. CSS ClassesThis component doesn't use any default CSS class names. The custom class names and styling specified in styleClass and style are applied on the img element. Known IssuesNone. Additional ResourcesTutorialsThis component appears in the following ICEfaces tutorials: None |
GraphicImage
© Copyright 2021 ICEsoft Technologies Canada Corp.