File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Adding Ajax in existing JSF application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Adding Ajax in existing JSF application" Watch "Adding Ajax in existing JSF application" New topic

Adding Ajax in existing JSF application

Jyotsna Chandra

Joined: Feb 17, 2009
Posts: 1
Hello Friends,

This is my jsp code in which i've added Ajax code. I am not able to call method from
controllerBean. How i can do that. please do some needful.

<hutputLabel for="providerSearch"

value="#{tpenrmsg['label-tpappmnt-search-searchBy']}" />
<m:br />



event="onchange" target="providerSearch"

behaviorAction="get" targetAction="group1"></hx:behavior>
<m:br />
for="providerSearch" styleClass="errorMessage" />
<h:panelGroup id="group1"

<h:selectOneRadio id="forLastName"


<f:selectItem itemValue="Starts with"

itemLabel="#{tpenrmsg['label-tpappmnt-search-startsWith']}" />

<f:selectItem itemValue="Contains"

itemLabel="#{tpenrmsg['label-tpappmnt-search-contains']}" />

id="ajaxRefreshRequest1" target="group1" params="providerSearch">
Chandra Sekar
Ranch Hand

Joined: Apr 12, 2006
Posts: 94
Use AJAX4JSF from Richfaces.

Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
He is already using some closed-source Ajaxical component library provided by Big Blue. See those <hx:> components.

Well, you won't find many users here who are also using it. Documentation of this closed-source library is also not public available, so we can't help you by just reading it (which you could in fact also perfectly do yourself, you should already have it in your hands). Try reposting at their own forum over there at if you stucks and you don't get more respons here.
Chandra Sekar
Ranch Hand

Joined: Apr 12, 2006
Posts: 94
Oops! I didn't know about this library. I thought he was creating his own library. Thanks for pointing out.
Rahul Santha

Joined: Apr 17, 2008
Posts: 12
Looks like you are using IBM JSF 1.1 in RAD 7.

Try my blog:


Thanks!<br />Rahul, IOWA
a phil

Joined: Nov 11, 2008
Posts: 9
a4j tags will do the ajax magic: refer to this: Ajax4Jsf
I agree. Here's the link:
subject: Adding Ajax in existing JSF application
It's not a secret anymore!