selectOneRadio -- Ajax call failing
Hi All,
Need some help, we are trying to utilize out of box functionality of selectOneRadio button, Ajax call not working, if any have sample code or steps please provide me.
onclick="jsf.ajax.request(this, event, {execute: this.id, render: 'out1'}) -- not wroking
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:t="http://myfaces.apache.org/tomahawk"
xmlns:hx="http://www.ibm.com/jsf/html_extended"
xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
>
<h:form id="form1" prependId="false">
<h:outputText value="Counter :-->"/>
<h:outputText id="out1" value="#{count.count}"/>
<br/>
<a4j:region>
<h:selectOneRadio id="count1" layout="pageDirection" value="{count.count}" onclick="jsf.ajax.request(this, event, {execute: this.id, render: 'out1'}); return false;">
<f:selectItem itemLabel="Fruit" itemValue="0" />
<f:selectItem itemLabel="Service" itemValue="1" />
</h:selectOneRadio>
</a4j:region>
<br/>
<!-- Increment the counter on the server, and the client -->
</h:form>
</html>
Thanks
Sri