Using Ajax in existing JSF application

Discussion in 'Software' started by Jyotsnac, Feb 17, 2009.

  1. Jyotsnac

    Jyotsnac

    Joined:
    Feb 17, 2009
    Messages:
    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. plz do some needful.



    <h:eek:utputLabel 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>
    Jyotsnac, Feb 17, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. hoarse with no name

    UK to get 12-14% of JSF work

    hoarse with no name, Mar 8, 2005, in forum: Computer Support
    Replies:
    1
    Views:
    460
    Old Gringo
    Mar 9, 2005
  2. faiq
    Replies:
    0
    Views:
    1,133
  3. freepdfforjobs@yahoo.co.in
    Replies:
    0
    Views:
    554
    freepdfforjobs@yahoo.co.in
    Jan 2, 2007
  4. gogaterpn

    JSF Datatable rowindex issue

    gogaterpn, Mar 11, 2009, in forum: Software
    Replies:
    0
    Views:
    1,684
    gogaterpn
    Mar 11, 2009
  5. EVS
    Replies:
    0
    Views:
    1,600
Loading...

Share This Page