3 Replies Latest reply on Feb 26, 2008 12:59 PM by gabir gabirad

    h:selectOneRadio> + Seam = possible bug ?

    gabir gabirad Newbie

      Hi guys,

      I have a strange problem.I have to list some radio buttons
      in a rich dataTable.I'm puttind the same value for all of them
      and the generated html let me have  multiple choices.

      My code is :

      <rich:dataTable value="#{actions}" var="act" id="actionsId" cellpadding="0" cellspacing="0" width="100%"
      border="0" rows="6" rowClasses="odd,even,odd,even,odd,even">
      <center><h:selectOneRadio value="#{selectedAction}">
      <f:converter converterId="actionConverter" />
      <a4j:support id="selectMTa4j" event="onclick"
      <f:param name="selA" value="#{act.id}" />
      <f:selectItem itemValue="#{act}" />

      The model looks like :

              private ArrayList<Action> actions;
              Action selectedAction;

      The thing is that when I'm in debug, only the last selected radio is submitted, so this is more like a browser thing.

      I do not want to put some javascript (the client disagree with the use of javascript).

      I'm posting this here cause the same code works only with JSF and richFaces(now I'm adding seam and I have this problem).

      Do you have any ideea what to do?

      Thanks guys!