File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes h:selectOneRadio question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "h:selectOneRadio question" Watch "h:selectOneRadio question" New topic

h:selectOneRadio question

John Yatchak

Joined: Mar 19, 2008
Posts: 1
Is there a way with to get images or links to appear along side your radio options? I have tried several options, two shown below. Either the help image(s) would be moved directly above the radio component(<h:graphicImage) or when I tried to embed with java like you would with struts or html, it moved the help image outside the top of the data table structure.

In addition I have also tried embedding html directly into the JSF itemLabel.

This seems like a very simple thing to do in html or struts... quite frustrating.

<h:selectOneRadio layout="pageDirection" id="personConfirm" >

<f:selectItem itemValue="no" itemLabel="No; okay to delete this record"/>
<h:graphicImage url="whatever" value="help.gif"></h:graphicImage>

<f:selectItem itemValue="yes" itemLabel="Yes "/>
<%out.println("<A name='blah'><img border='0' src='help.gif' width='17' height='19'></A>");%>

Thanks in advance for any response provided.
I agree. Here's the link:
subject: h:selectOneRadio question
It's not a secret anymore!