Richard Wallace wrote:
I'd like to use images as the labels for the selectItems in selectOneRadio component. Since itemLabel is an attribute of the selectItem component, I can't just use a graphicImage. Am I going to have to hack together some funky text label to do it? Something like

<f:selectItem itemValue="1" itemLabel="<img src=&quot;#{facesContext.externalContext.requestContextPath}/images/label1.png&quot;>" />

Or is there a better way of accomplishing this?

Thanks,
Rich
Well, the above idea doesn't work. Not that that surprises me too much. It just displays the text rather than the image. So is there any way to accomplish this with things as they are, or would it require a custom selectItem component to be written? And if so, does anyone know of one out there already?

Thanks,
Rich

Reply via email to