Hello,
 some time ago there's been a post of somebody struggeling to put jsValueChangeListener to work with radio buttons. Now I have similar problem. I use the snippet:

<x:selectOneRadio id="locationType" layout="spread" value="locationProdvided">
  <f:selectItem itemLabel="#{bun.newTask_location_matters}" itemValue="locationProvided" />
  <f:selectItem itemLabel="#{bun.newTask_location_doesnt_matter}" itemValue="locationNA" />           
  <x:jsValueChangeListener for="" property="value" expressionValue="$srcElem[1].value" />
</x:selectOneRadio>
<x:radio for="" index="0" />
<x:radio for="" index="1" />

  But then I get _javascript_ exception on the client. After some debugging I figured out that the problem seems to be the fact that unlike for other form controls, radio buttons are not accessible via document.getElementById('radioName') call which is used by jsValueChangeListener. document.<formName>.<radioName> seems to work though.
  Any ideas on how to make jsValueChangeListener to work with radio buttons? (ie. make a inputText that will be filled with the id/name/whatever of the choosen radio button).

   Any help greatly appreciated!
    Adam K.

--
=====================================================
[EMAIL PROTECTED], ICQ: 3204612
http://www.win.tue.nl/~akoprows
The difference between impossible and possible
lies in determination (Tommy Lasorda)
=====================================================

Reply via email to