File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Adding Ajax in existing JSF application" Watch "Adding Ajax in existing JSF application" New topic
Author

Adding Ajax in existing JSF application

Jyotsna Chandra
Greenhorn

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 />
<h:selectOneMenu
id="providerSearch"

value="#{tradingPartnerDataBean.searchCriteriaVO.primarySearchType}">

<f:selectItems

value="#{tradingPartnerDataBean.providerSearchList}"/>
</h:selectOneMenu>
<hx:behavior
event="onchange" target="providerSearch"

behaviorAction="get" targetAction="group1"></hx:behavior>
<m:br />
<h:message
for="providerSearch" styleClass="errorMessage" />
</m:div>
<h:panelGroup id="group1"
styleClass="panelGroup">
<m:div
rendered="#{tradingPartnerDataBean.nameFilterSection}">

<h:selectOneRadio id="forLastName"

value="#{tradingPartnerDataBean.searchCriteriaVO.nameFilter}">

<f:selectItem itemValue="Starts with"

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

<f:selectItem itemValue="Contains"

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

</h:selectOneRadio>
</m:div>
</h:panelGroup>
<hx:ajaxRefreshRequest
id="ajaxRefreshRequest1" target="group1" params="providerSearch">
</hx:ajaxRefreshRequest>
Chandra Sekar
Ranch Hand

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


Chandru
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 ibm.com 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
Greenhorn

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

Try my blog:
http://ibm-jsf-ajax.blogspot.com/

Thanks,
Santha


Thanks!<br />Rahul, IOWA
a phil
Greenhorn

Joined: Nov 11, 2008
Posts: 9
a4j tags will do the ajax magic: refer to this: Ajax4Jsf
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Adding Ajax in existing JSF application