Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

h:selectOneRadio question

 
John Yatchak
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>");%>
</h:selectOneRadio>


Thanks in advance for any response provided.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic