• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Adding Ajax in existing JSF application

 
Jyotsna Chandra
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use AJAX4JSF from Richfaces.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oops! I didn't know about this library. I thought he was creating his own library. Thanks for pointing out.
 
Rahul Santha
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like you are using IBM JSF 1.1 in RAD 7.

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

Thanks,
Santha
 
a phil
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a4j tags will do the ajax magic: refer to this: Ajax4Jsf
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic