0 Replies Latest reply on Nov 16, 2007 8:55 AM by rafael roque

    <a4j:support> is not working

    rafael roque Newbie

      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>

       <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:outputText binding="#{tax.bindParam}" id="param" value="#{tax.typeSearch}"/>
       <h:inputText id="Search" value="#{tax.searchParam}"/>

      Here´s my action method:
       public String test(){
       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:
       Validation error:Value is not valid

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

      Rafael Roque