• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

Adding Ajax in existing JSF application

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.



<h:outputLabel 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>
 
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Use AJAX4JSF from Richfaces.
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
a4j tags will do the ajax magic: refer to this: Ajax4Jsf
 
reply
    Bookmark Topic Watch Topic
  • New Topic