Andrew Robinson wrote:
Found it in my gmail archive...
<f:selectItem ...
style="background-image:url(/images/icons/someIcon.gif);"/>
On 4/20/06, *Andrew Robinson* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Think you want to use CSS styling on the select items. I know
there was a thread on this in the past that discussed how to
assign individual images to each select item (<option>).
I think I found the thread your referring to: "SelectItem style" started
by Emmanual Jay, right? It seems I'll have to also use a custom
renderer correct?
Thanks,
Rich
On 4/20/06, *Richard Wallace* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
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="#{facesContext.externalContext.requestContextPath
}/images/label1.png">"
> />
>
> 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