0 Replies Latest reply on Jul 10, 2009 9:46 AM by John Who

    h:selectOneRadio and js

    John Who Newbie


      apperentyl there are a few problems combining a h:selectOneRadio element with ja simple js-function.

      According to the tld of this element there are all js-functions (like onclick) supported. but when I use one this there they don't even get rendered in the html-code.

      For example:

      <script type="text/javascript">
      function test() {
      <h:selectOneRadio value="#{fondsgesellschaft.criteria}" onclick="test()">
       <f:selectItem id="item1" itemLabel="Item1" itemValue="1"/>
       <f:selectItem id="item2" itemLabel="Item2" itemValue="2" />

      If I'm looking for 'test' in the resulting HTML-Code there is only my js-function but no onclick at my radio-buttons...

      I also tried to add the <a4j:support> to the <h:selectOneRadio> but when I switched between the radio buttons I don't reach the method in my bean.

      Can anybody help me?