0 Replies Latest reply on Nov 16, 2007 9:09 AM by rafa834

    <a4j:support> is not working

    rafa834

      I have a <h:selectOneRadio> with two buttons,and I need to
      add a onchange event so that when I change the selected radio button
      its value gets printed in a <h:output text>

      Code:

      <h:selectOneRadio binding="#{tax.tpSearch}" value="#{tax.typeSearch}">

      <f:selectItem itemLabel="#{msg.TAX_Code}" itemValue="#{msg.TAX_Code}" />
      <f:selectItem itemLabel="#{msg.TAX_Desc}" itemValue="#{msg.TAX_Desc}"/>
      <a4j:support event="onclick" reRender="param" action="#{tax.test}"/>
      </h:selectOneRadio>

      <h:outputText binding="#{tax.bindParam}" id="param" value="#{tax.typeSearch}"/>
      <h:inputText id="Search" value="#{tax.searchParam}"/>



      Here´s my action method:
      Code:

      public String test(){
      bindParam.setValue(this.typeSearch);
      return null;
      }


      where "bindParam" is a HTMLOutPutText that binds to my<h:outPutText>,
      and typeSearch is the value of the selected radiobutton.
      However,when I perform a change in the radiobutton,I am getting the following:
      Code:

      Validation error:Value is not valid


      This error is triggered by the <h:selectOneRadio> component.
      What am I doing wrong?

      Regards,
      Rafael Roque