aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "h:selectOneRadio question" Watch "h:selectOneRadio question" New topic
Author

h:selectOneRadio question

John Yatchak
Greenhorn

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>");%>
</h:selectOneRadio>


Thanks in advance for any response provided.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: h:selectOneRadio question
 
Similar Threads
A formatting question with radio buttons
Want to have h:inputText element after every radio button
Message after SelectOneRadio moved to next line
Radio
Display value of 'checked' radio button