Hi Stefan,

you can use the Tomahawk Buffer to create the label and than reference the buffer in your itemLabel.

<t:buffer into="#{myBuffer}">
        <h:outputText>My Text</h:outputText>
        <h:outputLink value="/thePath">MyLink</h:outputLink>
</t:buffer>

<h:selectOneRadio value="#{theValue}">
<f:selectItem itemValue="theItemValue" itemLabel="#{myBuffer}" escape="false"/>
</h:selectOneRadio>

bb, Jörg

Glase, Stefan schrieb:
Hi,

in plain HTML I am able to define a hyperlink within a label of a radio-button and it is treated in the following way. When I click the label-text the radio-button will be selected but when I click the hyperlink in the label the link is called in my browser.

<table>

  <tr>

<td><label><input type="radio" name="demo" value="1"/>simple label</label></td>

<td><label><input type="radio" name="demo" value="2"/>label with <a href="#" target="_blank">link</a></label></td>

  </tr>

</table>

How can I get the same result with <h:selectOneRadio />? As far as I understand I would need to set the hyperlink into the property itemLabel of the <f:selectItem />. Any solutions or ideas? Thanks.

Stefan



Reply via email to