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

    h:selectOneRadio> + Seam = possible bug ?

    gabir

      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">
      
      <rich:column>
      <center><h:selectOneRadio value="#{selectedAction}">
      
      <f:converter converterId="actionConverter" />
      <a4j:support id="selectMTa4j" event="onclick"
      action="#{actionJSFAction.selectAction}"
      reRender="actionDefPanel">
      <f:param name="selA" value="#{act.id}" />
      </a4j:support>
      
      <f:selectItem itemValue="#{act}" />
      
      </h:selectOneRadio></center>
      </rich:column>



      The model looks like :


             @DataModel
              private ArrayList<Action> actions;
              
              @DataModelSelection
              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!