SelectOneRadio

o problema é que ao selecionar, consigo selecionar mais de um, não fazendo sentido a questão do radio…
Vejam se isso é o bastante.
A ideia é que no dataTable possa haver um radiobutton, onde através dele pudesse submeter um receptor a um atendimento:

[code]<rich:popupPanel id=“modalPanelReceptor” modal=“false” width=“600”
moveable=“false”>

        &lt;f:facet name="header"&gt;
            &lt;h:outputText value="Defina o Receptor"&gt;&lt;/h:outputText&gt;
        &lt;/f:facet&gt;

        &lt;f:facet name="controls"&gt;
            &lt;h:outputLink value="#" style="text-decoration:none;"
                onclick="#{rich:component('modalPanelReceptor')}.hide(); return false;"&gt;X&lt;/h:outputLink&gt;
        &lt;/f:facet&gt;

        &lt;rich:dataTable value="#{atendimentoBean.listaReceptores}"
            sortMode="single" var="_receptor" style="width: 100%;"
            binding="#{atendimentoBean.uiDataTable}"
            noDataLabel="Não existem receptores cadastrados." rowKeyVar="index"&gt;

            &lt;rich:column width="40%"&gt;
                &lt;f:facet name="header"&gt;
                    &lt;h:outputText value="Selecione" /&gt;
                &lt;/f:facet&gt;
                &lt;h:se
               
                &gt;&lt;h:selectOneRadio onclick="dataTableSelectOneRadio(this);"
                    valueChangeListener="#{atendimentoBean.setReceptorSelecionado}"
                    value="#{atendimentoBean.atendimentoEdicao.receptor}"
                    converter="receptorConverter"&gt;
                    &lt;a4j:ajax&gt;&lt;/a4j:ajax&gt;
                    &lt;f:ajax execute="@this" render="@form"&gt;&lt;/f:ajax&gt;
                    &lt;f:selectItem itemValue="#{_receptor}"&gt;
                    &lt;/f:selectItem&gt;
                &lt;/h:selectOneRadio&gt;
            &lt;/rich:column&gt;
            &lt;rich:column width="40%"&gt;
                &lt;f:facet name="header"&gt;
                    &lt;h:outputText value="Nome do receptor" /&gt;
                &lt;/f:facet&gt;
                &lt;h:outputText value="#{_receptor.nomeReceptor}"&gt;&lt;/h:outputText&gt;
            &lt;/rich:column&gt;

            &lt;rich:column width="25%"&gt;
                &lt;f:facet name="header"&gt;
                    &lt;h:outputText value="Tipo sanguíneo do receptor" /&gt;
                &lt;/f:facet&gt;
                &lt;h:outputText value="#{_receptor.tipoSanguineo}"&gt;&lt;/h:outputText&gt;
            &lt;/rich:column&gt;

            &lt;rich:column width="25%"&gt;
                &lt;f:facet name="header"&gt;
                    &lt;h:outputText value="Tipo Hemoderivado do receptor" /&gt;
                &lt;/f:facet&gt;
                &lt;h:outputText value="#{_receptor.tipoHemo}"&gt;&lt;/h:outputText&gt;
            &lt;/rich:column&gt;



        &lt;/rich:dataTable&gt;
        &lt;a4j:commandButton value="OK"
            onclick="#{rich:component('modalPanelReceptor')}.hide(); return

false;" />
</rich:popupPanel>[/code]

e através disto pudesse obtê-lo:

public void setReceptorSelecionado(ValueChangeEvent event) { receptorSelecionado = (Receptor) uiDataTable.getRowData(); System.out.println(receptorSelecionado); listaReceptores = new ArrayList&lt;Receptor&gt;(); listaReceptores.add(receptorSelecionado); }
é isto que ocorre - selecionar mais de um, onde gostaria que selecionasse apenas um e não mais de um como acontece.
para tentar resolver o problema tentei isso:

&lt;h:outputScript name="modal.js" library="js" target="head" /&gt;

[code]function dataTableSelectOneRadio(radio) {
var radioId = radio.name.substring(radio.name.lastIndexOf(’:’));

for ( var i = 0; i &lt; radio.form.elements.length; i++) {
	var element = radio.form.elements[i];

	if (element.name.substring(element.name.lastIndexOf(':')) == radioId) {
		element.checked = false;
	}
}

radio.checked = true;

}[/code]
mas sem sucesso.
Podem ajudar?