selectOneMenu -> Radio how to change compliation?

Hi!

I have component like this:

<h:selectOneRadio value="#{registerAction.sex}" required="false">

<f:selectItem itemValue="Women" itemLabel="Women"/>

<f:selectItem itemValue="Man" itemLabel="Man"/>

</h:selectOneRadio>

Why server complies me this stuff to those ****!?

<table id="optional:myForm" style="">

<tr>

<td>

<input id="optional:myForm:_1" name="optional:myForm" type="radio" value="Women"></input>

<label>Women</label>

</td>

<td>

<input id="optional:myForm:_2" name="optional:myForm" type="radio" value="Man"></input>

<label>Man</label>

</td>

</tr>

</table>

how to force server to compile those radio to normal HTML radio?

I need to get selected element by Id in js, but this **** can't let me do that!

Regards!

P.S. Or maybe someone tell me how to get selected element by js?

[1444 byte] By [Gabciaa] at [2007-11-26 13:09:56]
# 1
var el = document.getElementsByName('optional:myForm');for (var i=0;i<el.length;i++) { if (el.checked) {.......... }}Something like this. Not 100% sure>
amitteva at 2007-7-7 17:23:19 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

I really don't understand what's the problem?

If you want to change the generated HTML output, then you have to write your own component. But if you only want to be able to get the selected item using JS .. This is just possible .. I don't see any problem. It's a better idea to clarify the problem you're occurring when you're trying to get the selected item.

BalusCa at 2007-7-7 17:23:19 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...