Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

selectOneRadio -- Ajax call failing

843844Aug 12 2009
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 9 2009
Added on Aug 12 2009
0 comments
261 views