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:selectOneRadio> <h:outputText binding="#{tax.bindParam}" id="param" value="#{tax.typeSearch}"/> <h:inputText id="Search" value="#{tax.searchParam}"/>
public String test(){ bindParam.setValue(this.typeSearch); return null; }
Validation error:Value is not valid